public abstract class WriterRepresentation extends CharacterRepresentation
UNKNOWN_SIZE| Constructor and Description |
|---|
WriterRepresentation(MediaType mediaType)
Constructor.
|
WriterRepresentation(MediaType mediaType,
long expectedSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Reader |
getReader()
Returns a characters reader with the representation's content.
|
getChannel, getStream, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getSize, getText, hasKnownSize, isAvailable, isEmpty, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setRange, setSize, setTransient, writegetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic WriterRepresentation(MediaType mediaType)
mediaType - The representation's mediaType.public WriterRepresentation(MediaType mediaType, long expectedSize)
mediaType - The representation's mediaType.expectedSize - The expected writer size in bytes.public java.io.Reader getReader()
throws java.io.IOException
RepresentationgetReader in class Representationjava.io.IOExceptionCopyright © 2005-2024 Restlet.