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 |
---|---|
Reader |
getReader()
Returns a characters reader with the representation's content.
|
getChannel, getStream, write, write
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient, write
getModificationDate, getTag, setModificationDate, setTag
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public 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 Reader getReader() throws IOException
Representation
getReader
in class Representation
IOException
Copyright © 2005–2016. All rights reserved.