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: inputStreamEntityProvider = new InputStreamEntityProvider()
test_class.modifier: private
test_class.original_string: private InputStreamEntityProvider inputStreamEntityProvider = new InputStreamEntityProvider();
test_class.type: InputStreamEntityProvider
test_class.var_name: inputStreamEntityProvider
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/provider/InputStreamEntityProviderTest.java
test_class.identifier: InputStreamEntityProviderTest
test_case.body: @Test
      public void readsContentOfEntityStreamAsInputStream() throws Exception {
          InputStream in = new ByteArrayInputStream(testContent);
          InputStream result = inputStreamEntityProvider.readFrom(InputStream.class, null, null, null, null, in);
          assertArrayEquals(testContent, ByteStreams.toByteArray(result));
      }
test_case.class_method_signature: InputStreamEntityProviderTest.readsContentOfEntityStreamAsInputStream()
test_case.full_signature: @Test public void readsContentOfEntityStreamAsInputStream()
test_case.identifier: readsContentOfEntityStreamAsInputStream
test_case.invocations: readFrom assertArrayEquals toByteArray
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void readsContentOfEntityStreamAsInputStream()
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/provider/InputStreamEntityProvider.java
focal_class.identifier: InputStreamEntityProvider
focal_class.interfaces: implements EntityProvider<InputStream>
focal_class.class_method_signature: InputStreamEntityProvider.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: InputStreamEntityProvider.readFrom(Class<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream)
focal_class.full_signature: @Override public InputStream readFrom(Class<InputStream> 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<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream)
focal_class.return: InputStream
focal_class.signature: InputStream readFrom(Class<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream)
focal_class.class_method_signature: InputStreamEntityProvider.getSize(InputStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public long getSize(InputStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: getSize
focal_class.modifiers: @Override public
focal_class.parameters: (InputStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: long
focal_class.signature: long getSize(InputStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: InputStreamEntityProvider.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: InputStreamEntityProvider.writeTo(InputStream in,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.full_signature: @Override public void writeTo(InputStream in,
                          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: (InputStream in,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.return: void
focal_class.signature: void writeTo(InputStream in,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_method.body: @Override
      public InputStream readFrom(Class<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream) throws IOException {
          ApplicationContext context = ApplicationContext.getCurrent();
          if (context.isAsynchronous()) {
              int bufferSize = context.getEverrestConfiguration().getMaxBufferSize();
              return IOHelper.bufferStream(entityStream, bufferSize);
          }
          return entityStream;
      }
focal_method.class_method_signature: InputStreamEntityProvider.readFrom(Class<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream)
focal_method.full_signature: @Override public InputStream readFrom(Class<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream)
focal_method.identifier: readFrom
focal_method.invocations: getCurrent isAsynchronous getMaxBufferSize getEverrestConfiguration bufferStream
focal_method.modifiers: @Override public
focal_method.parameters: (Class<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream)
focal_method.return: InputStream
focal_method.signature: InputStream readFrom(Class<InputStream> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  MediaType mediaType,
                                  MultivaluedMap<String, String> httpHeaders,
                                  InputStream entityStream)