public interface TStreamable
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright (c) 2017 Software AG. All Rights Reserved.