|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TStreamable
TStreamable defines operations for the reading from and writing to streams.
Method Summary | |
---|---|
java.lang.String |
getContentType()
Gets the content type of the streamable content if one is given. |
void |
readFrom(java.io.InputStream inputStream)
Reads data from the given inputStream. |
void |
readFrom(java.io.Reader reader)
Reads data from the given reader. |
void |
writeTo(java.io.OutputStream outputStream)
Writes data to the given outputStream. |
void |
writeTo(java.io.Writer writer)
Writes data to the given writer. |
Method Detail |
---|
void readFrom(java.io.InputStream inputStream) throws TStreamReadException
inputStream
- a byte input stream.
TStreamReadException
- signals an error while attempting to read the stream.void readFrom(java.io.Reader reader) throws TStreamReadException
reader
- a character input stream .
TStreamReadException
- signals an error while attempting to read the stream.void writeTo(java.io.OutputStream outputStream) throws TStreamWriteException
outputStream
- the byte output stream.
TStreamWriteException
- signals an error while attempting to write the stream.void writeTo(java.io.Writer writer) throws TStreamWriteException
outputStream
- the character output stream.
TStreamWriteException
- signals an error while attempting to write the stream.java.lang.String getContentType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |