test_class.declarator: TESTVALUE = 42
test_class.modifier: private static final
test_class.original_string: private static final byte TESTVALUE = 42;
test_class.type: byte
test_class.var_name: TESTVALUE
test_class.file: json-cbor/src/test/java/org/eclipse/ditto/json/cbor/ByteBufferInputStreamTest.java
test_class.identifier: ByteBufferInputStreamTest
test_case.body: @Test
      public void factoryMethodAccessesBackingArrayDirectlyIfAvailable(){
          final InputStream inputStream = ByteBufferInputStream.of(ByteBuffer.wrap(new byte[16]));
          Assertions.assertThat(inputStream).isInstanceOf(ByteArrayInputStream.class);
      }
test_case.class_method_signature: ByteBufferInputStreamTest.factoryMethodAccessesBackingArrayDirectlyIfAvailable()
test_case.full_signature: @Test public void factoryMethodAccessesBackingArrayDirectlyIfAvailable()
test_case.identifier: factoryMethodAccessesBackingArrayDirectlyIfAvailable
test_case.invocations: of wrap isInstanceOf assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void factoryMethodAccessesBackingArrayDirectlyIfAvailable()
focal_class.declarator: byteBuffer
focal_class.modifier: private final
focal_class.original_string: private final ByteBuffer byteBuffer;
focal_class.type: ByteBuffer
focal_class.var_name: byteBuffer
focal_class.file: json-cbor/src/main/java/org/eclipse/ditto/json/cbor/ByteBufferInputStream.java
focal_class.identifier: ByteBufferInputStream
focal_class.class_method_signature: ByteBufferInputStream.ByteBufferInputStream(final ByteBuffer byteBuffer)
focal_class.full_signature: private  ByteBufferInputStream(final ByteBuffer byteBuffer)
focal_class.identifier: ByteBufferInputStream
focal_class.modifiers: private
focal_class.parameters: (final ByteBuffer byteBuffer)
focal_class.signature:  ByteBufferInputStream(final ByteBuffer byteBuffer)
focal_class.class_method_signature: ByteBufferInputStream.of(final ByteBuffer byteBuffer)
focal_class.full_signature: static InputStream of(final ByteBuffer byteBuffer)
focal_class.identifier: of
focal_class.modifiers: static
focal_class.parameters: (final ByteBuffer byteBuffer)
focal_class.return: InputStream
focal_class.signature: InputStream of(final ByteBuffer byteBuffer)
focal_class.class_method_signature: ByteBufferInputStream.read()
focal_class.full_signature: @Override public int read()
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int read()
focal_class.class_method_signature: ByteBufferInputStream.read(final byte[] b, final int off, final int len)
focal_class.full_signature: @Override public int read(final byte[] b, final int off, final int len)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (final byte[] b, final int off, final int len)
focal_class.return: int
focal_class.signature: int read(final byte[] b, final int off, final int len)
focal_class.superclass: extends InputStream
focal_method.body: static InputStream of(final ByteBuffer byteBuffer) {
          if (byteBuffer.hasArray()) {
              return new ByteArrayInputStream(
                      byteBuffer.array(),
                      byteBuffer.arrayOffset() + byteBuffer.position(),
                      byteBuffer.limit());
          }
          return new ByteBufferInputStream(byteBuffer);
      }
focal_method.class_method_signature: ByteBufferInputStream.of(final ByteBuffer byteBuffer)
focal_method.full_signature: static InputStream of(final ByteBuffer byteBuffer)
focal_method.identifier: of
focal_method.invocations: hasArray array arrayOffset position limit
focal_method.modifiers: static
focal_method.parameters: (final ByteBuffer byteBuffer)
focal_method.return: InputStream
focal_method.signature: InputStream of(final ByteBuffer byteBuffer)