test_class.declarator: channel
test_class.modifier: private
test_class.original_string: private BitChannel channel;
test_class.type: BitChannel
test_class.var_name: channel
test_class.declarator: boundedChannel
test_class.modifier: private
test_class.original_string: private BoundedBitChannel boundedChannel;
test_class.type: BoundedBitChannel
test_class.var_name: boundedChannel
test_class.file: preon-io/src/test/java/org/codehaus/preon/channel/BoundedBitChannelTest.java
test_class.identifier: BoundedBitChannelTest
test_case.body: @Test
      public void shouldReportRelativeBitPosCorrectly() throws IOException {
          when(channel.getRelativeBitPos()).thenReturn(4);
          assertThat(boundedChannel.getRelativeBitPos(), is(4));
          verify(channel).getRelativeBitPos();
      }
test_case.class_method_signature: BoundedBitChannelTest.shouldReportRelativeBitPosCorrectly()
test_case.full_signature: @Test public void shouldReportRelativeBitPosCorrectly()
test_case.identifier: shouldReportRelativeBitPosCorrectly
test_case.invocations: thenReturn when getRelativeBitPos assertThat getRelativeBitPos is getRelativeBitPos verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReportRelativeBitPosCorrectly()
focal_class.declarator: channel
focal_class.modifier: private final
focal_class.original_string: private final BitChannel channel;
focal_class.type: BitChannel
focal_class.var_name: channel
focal_class.declarator: maxBits
focal_class.modifier: private final
focal_class.original_string: private final long maxBits;
focal_class.type: long
focal_class.var_name: maxBits
focal_class.declarator: written
focal_class.modifier: private
focal_class.original_string: private long written;
focal_class.type: long
focal_class.var_name: written
focal_class.declarator: OVERRUN_MESSAGE = "Attempt to write beyond maximum number of bits allowed."
focal_class.modifier: private static final
focal_class.original_string: private static final String OVERRUN_MESSAGE = "Attempt to write beyond maximum number of bits allowed.";
focal_class.type: String
focal_class.var_name: OVERRUN_MESSAGE
focal_class.file: preon-io/src/main/java/org/codehaus/preon/channel/BoundedBitChannel.java
focal_class.identifier: BoundedBitChannel
focal_class.interfaces: implements BitChannel
focal_class.class_method_signature: BoundedBitChannel.BoundedBitChannel(@Nonnull BitChannel channel, @Nonnegative long maxBits)
focal_class.full_signature: public  BoundedBitChannel(@Nonnull BitChannel channel, @Nonnegative long maxBits)
focal_class.identifier: BoundedBitChannel
focal_class.modifiers: public
focal_class.parameters: (@Nonnull BitChannel channel, @Nonnegative long maxBits)
focal_class.signature:  BoundedBitChannel(@Nonnull BitChannel channel, @Nonnegative long maxBits)
focal_class.class_method_signature: BoundedBitChannel.write(boolean value)
focal_class.full_signature: public void write(boolean value)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void write(boolean value)
focal_class.class_method_signature: BoundedBitChannel.write(int nrbits, byte value)
focal_class.full_signature: public void write(int nrbits, byte value)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (int nrbits, byte value)
focal_class.return: void
focal_class.signature: void write(int nrbits, byte value)
focal_class.class_method_signature: BoundedBitChannel.write(int nrbits, int value, ByteOrder byteOrder)
focal_class.full_signature: public void write(int nrbits, int value, ByteOrder byteOrder)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (int nrbits, int value, ByteOrder byteOrder)
focal_class.return: void
focal_class.signature: void write(int nrbits, int value, ByteOrder byteOrder)
focal_class.class_method_signature: BoundedBitChannel.write(int nrbits, long value, ByteOrder byteOrder)
focal_class.full_signature: public void write(int nrbits, long value, ByteOrder byteOrder)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (int nrbits, long value, ByteOrder byteOrder)
focal_class.return: void
focal_class.signature: void write(int nrbits, long value, ByteOrder byteOrder)
focal_class.class_method_signature: BoundedBitChannel.write(int nrbits, short value, ByteOrder byteOrder)
focal_class.full_signature: public void write(int nrbits, short value, ByteOrder byteOrder)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (int nrbits, short value, ByteOrder byteOrder)
focal_class.return: void
focal_class.signature: void write(int nrbits, short value, ByteOrder byteOrder)
focal_class.class_method_signature: BoundedBitChannel.write(byte[] src, int offset, int length)
focal_class.full_signature: public void write(byte[] src, int offset, int length)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (byte[] src, int offset, int length)
focal_class.return: void
focal_class.signature: void write(byte[] src, int offset, int length)
focal_class.class_method_signature: BoundedBitChannel.write(ByteBuffer buffer)
focal_class.full_signature: public long write(ByteBuffer buffer)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (ByteBuffer buffer)
focal_class.return: long
focal_class.signature: long write(ByteBuffer buffer)
focal_class.class_method_signature: BoundedBitChannel.getRelativeBitPos()
focal_class.full_signature: public int getRelativeBitPos()
focal_class.identifier: getRelativeBitPos
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getRelativeBitPos()
focal_class.class_method_signature: BoundedBitChannel.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: public int getRelativeBitPos() {
          return channel.getRelativeBitPos();
      }
focal_method.class_method_signature: BoundedBitChannel.getRelativeBitPos()
focal_method.full_signature: public int getRelativeBitPos()
focal_method.identifier: getRelativeBitPos
focal_method.invocations: getRelativeBitPos
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getRelativeBitPos()