Package sop

Class Ready

java.lang.Object
sop.Ready
Direct Known Subclasses:
Signatures

public abstract class Ready extends Object
  • Constructor Details

    • Ready

      public Ready()
  • Method Details

    • writeTo

      public abstract void writeTo(OutputStream outputStream) throws IOException
      Write the data to the provided output stream.
      Parameters:
      outputStream - output stream
      Throws:
      IOException - in case of an IO error
    • getBytes

      public byte[] getBytes() throws IOException
      Return the data as a byte array by writing it to a ByteArrayOutputStream first and then returning the array.
      Returns:
      data as byte array
      Throws:
      IOException - in case of an IO error
    • getInputStream

      public InputStream getInputStream() throws IOException
      Return an input stream containing the data.
      Returns:
      input stream
      Throws:
      IOException - in case of an IO error