Class ReaderResource

java.lang.Object
org.apache.juneau.http.classic.resource.BasicResource<ReaderResource>
org.apache.juneau.http.classic.resource.ReaderResource
All Implemented Interfaces:
HttpEntity, HttpResource
Direct Known Subclasses:
ReaderResource.Unmodifiable

A streamed, non-repeatable resource that obtains its content from an Reader.
See Also:
  • Constructor Details

    • ReaderResource

      public ReaderResource()
      Constructor.
    • ReaderResource

      public ReaderResource(ContentType contentType, Reader contents)
      Constructor.
      Parameters:
      contentType - The entity content type. Can be null to omit an explicit Content-Type header.
      contents - The entity contents. Can be null, in which case a NullPointerException is thrown when the resource's content is read.
    • ReaderResource

      protected ReaderResource(ReaderResource copyFrom)
      Copy constructor.
      Parameters:
      copyFrom - The bean being copied. Must not be null.
  • Method Details