@Deprecated public abstract class ChannelRepresentation extends Representation
UNKNOWN_SIZE| Constructor and Description |
|---|
ChannelRepresentation(MediaType mediaType)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Reader |
getReader()
Deprecated.
Returns a characters reader with the representation's content.
|
InputStream |
getStream()
Deprecated.
Returns a stream with the representation's content.
|
void |
write(OutputStream outputStream)
Deprecated.
Writes the representation to a byte stream.
|
void |
write(Writer writer)
Deprecated.
Writes the representation to a characters writer.
|
append, exhaust, getAvailableSize, getChannel, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient, writegetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic ChannelRepresentation(MediaType mediaType)
mediaType - The media type.public Reader getReader() throws IOException
RepresentationgetReader in class RepresentationIOExceptionpublic InputStream getStream() throws IOException
RepresentationgetStream in class RepresentationIOExceptionpublic void write(OutputStream outputStream) throws IOException
RepresentationOutputStream after writing to it as this will be handled by the
Restlet connectors automatically.write in class RepresentationoutputStream - The output stream.IOExceptionpublic void write(Writer writer) throws IOException
RepresentationWriter after writing to it as this will be handled by
the Restlet connectors automatically.write in class Representationwriter - The characters writer.IOExceptionCopyright © 2005–2025. All rights reserved.