public abstract class OutputRepresentation extends StreamRepresentation
UNKNOWN_SIZE| Constructor and Description |
|---|
OutputRepresentation(MediaType mediaType)
Constructor.
|
OutputRepresentation(MediaType mediaType,
long expectedSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ReadableByteChannel |
getChannel()
Deprecated.
|
InputStream |
getStream()
Returns a stream with the representation's content.
|
getReader, write, writeappend, exhaust, getAvailableSize, 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 OutputRepresentation(MediaType mediaType)
mediaType - The representation's mediaType.public OutputRepresentation(MediaType mediaType, long expectedSize)
mediaType - The representation's mediaType.expectedSize - The expected input stream size.@Deprecated public ReadableByteChannel getChannel() throws IOException
RepresentationgetChannel in class StreamRepresentationIOExceptionpublic InputStream getStream() throws IOException
getStream in class RepresentationIOExceptionCopyright © 2005–2025. All rights reserved.