public abstract class StreamRepresentation extends Representation
UNKNOWN_SIZE| Constructor and Description |
|---|
StreamRepresentation(MediaType mediaType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ReadableByteChannel |
getChannel()
Deprecated.
|
Reader |
getReader()
Returns a characters reader with the representation's content.
|
void |
write(WritableByteChannel writableChannel)
Deprecated.
|
void |
write(Writer writer)
Writes the representation to a characters writer.
|
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getStream, 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 StreamRepresentation(MediaType mediaType)
mediaType - The media type.@Deprecated public ReadableByteChannel getChannel() throws IOException
RepresentationgetChannel in class RepresentationIOExceptionpublic Reader getReader() throws IOException
RepresentationgetReader in class RepresentationIOException@Deprecated public void write(WritableByteChannel writableChannel) throws IOException
Representationwrite in class RepresentationwritableChannel - A writable byte channel.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.