Package sop

Class Ready

  • Direct Known Subclasses:
    Signatures

    public abstract class Ready
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Ready()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBytes()
      Return the data as a byte array by writing it to a ByteArrayOutputStream first and then returning the array.
      java.io.InputStream getInputStream()
      Return an input stream containing the data.
      abstract void writeTo​(java.io.OutputStream outputStream)
      Write the data to the provided output stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ready

        public Ready()
    • Method Detail

      • writeTo

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

        public byte[] getBytes()
                        throws java.io.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:
        java.io.IOException - in case of an IO error
      • getInputStream

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