test_class.declarator: testContent
test_class.modifier: private
test_class.original_string: private byte[] testContent;
test_class.type: byte[]
test_class.var_name: testContent
test_class.declarator: byteEntityProvider
test_class.modifier: private
test_class.original_string: private ByteEntityProvider byteEntityProvider;
test_class.type: ByteEntityProvider
test_class.var_name: byteEntityProvider
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/provider/ByteEntityProviderTest.java
test_class.identifier: ByteEntityProviderTest
test_case.body: @Test
      public void readsContentOfEntityStreamAsByteArray() throws Exception {
          byte[] result = byteEntityProvider.readFrom(byte[].class, null, null, MediaType.WILDCARD_TYPE, new MultivaluedMapImpl(),
                                                      new ByteArrayInputStream(testContent));
          assertArrayEquals(testContent, result);
      }
test_case.class_method_signature: ByteEntityProviderTest.readsContentOfEntityStreamAsByteArray()
test_case.full_signature: @Test public void readsContentOfEntityStreamAsByteArray()
test_case.identifier: readsContentOfEntityStreamAsByteArray
test_case.invocations: readFrom assertArrayEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void readsContentOfEntityStreamAsByteArray()
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/provider/ByteEntityProvider.java
focal_class.identifier: ByteEntityProvider
focal_class.interfaces: implements EntityProvider<byte[]>
focal_class.class_method_signature: ByteEntityProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: isReadable
focal_class.modifiers: @Override public
focal_class.parameters: (Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: ByteEntityProvider.readFrom(Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.full_signature: @Override public byte[] readFrom(Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.identifier: readFrom
focal_class.modifiers: @Override public
focal_class.parameters: (Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.return: byte[]
focal_class.signature: byte[] readFrom(Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.class_method_signature: ByteEntityProvider.getContentLength(MultivaluedMap<String, String> httpHeaders)
focal_class.full_signature: private int getContentLength(MultivaluedMap<String, String> httpHeaders)
focal_class.identifier: getContentLength
focal_class.modifiers: private
focal_class.parameters: (MultivaluedMap<String, String> httpHeaders)
focal_class.return: int
focal_class.signature: int getContentLength(MultivaluedMap<String, String> httpHeaders)
focal_class.class_method_signature: ByteEntityProvider.getSize(byte[] bytes, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public long getSize(byte[] bytes, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: getSize
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: long
focal_class.signature: long getSize(byte[] bytes, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: ByteEntityProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: isWriteable
focal_class.modifiers: @Override public
focal_class.parameters: (Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: ByteEntityProvider.writeTo(byte[] bytes,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.full_signature: @Override public void writeTo(byte[] bytes,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.identifier: writeTo
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.return: void
focal_class.signature: void writeTo(byte[] bytes,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_method.body: @Override
      public byte[] readFrom(Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream) throws IOException {
          int length = getContentLength(httpHeaders);
          ByteArrayOutputStream out = length > 0 ? new NoSyncByteArrayOutputStream(length) : new NoSyncByteArrayOutputStream();
          ByteStreams.copy(entityStream, out);
          return out.toByteArray();
      }
focal_method.class_method_signature: ByteEntityProvider.readFrom(Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_method.full_signature: @Override public byte[] readFrom(Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_method.identifier: readFrom
focal_method.invocations: getContentLength copy toByteArray
focal_method.modifiers: @Override public
focal_method.parameters: (Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_method.return: byte[]
focal_method.signature: byte[] readFrom(Class<byte[]> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)