Package sop
Class Ready
java.lang.Object
sop.Ready
- Direct Known Subclasses:
Signatures
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()Return the data as a byte array by writing it to aByteArrayOutputStreamfirst and then returning the array.Return an input stream containing the data.abstract voidwriteTo(OutputStream outputStream) Write the data to the provided output stream.
-
Constructor Details
-
Ready
public Ready()
-
-
Method Details
-
writeTo
Write the data to the provided output stream.- Parameters:
outputStream- output stream- Throws:
IOException- in case of an IO error
-
getBytes
Return the data as a byte array by writing it to aByteArrayOutputStreamfirst and then returning the array.- Returns:
- data as byte array
- Throws:
IOException- in case of an IO error
-
getInputStream
Return an input stream containing the data.- Returns:
- input stream
- Throws:
IOException- in case of an IO error
-