Class OutputResource

All Implemented Interfaces:
Broadcaster, Listener, Repeater, Transceiver, CreatedAt, Modifiable, ModifiedAt, ByteSized, Receiver, Transmitter, NamedObject, StringSource, Deletable, Readable, ReadableResource, Resource, Resourceful, ResourcePathed, UriIdentified, Writable, WritableResource

public class OutputResource extends BaseWritableResource
An OutputStream stream wrapper that turns the output stream into a WritableResource.
Author:
jonathanl (shibo)
  • Constructor Details

  • Method Details

    • isWritable

      public Boolean isWritable()
      Returns:
      True if this write-open-able object can be written to, false if it cannot and null if it cannot be determined if this object can be written to.
    • onOpenForReading

      public InputStream onOpenForReading()
      Description copied from interface: Readable
      Opens the input stream to this readable
    • onOpenForWriting

      public OutputStream onOpenForWriting()
      Description copied from interface: Writable
      Opens the output stream to this writable
    • sizeInBytes

      public Bytes sizeInBytes()
      Returns:
      The number of bytes in this object