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 |
|---|---|
java.io.InputStream |
getStream()
Returns a stream with the representation's content.
|
getChannel, getReader, write, writecheckDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDisposition, getDownloadName, getExpirationDate, getRange, getSize, getText, isAvailable, isDownloadable, isTransient, release, setAvailable, setDigest, setDisposition, setDownloadable, setDownloadName, setExpirationDate, setRange, setSize, setTransient, writegetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getIdentifier, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setIdentifier, setIdentifier, 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.public java.io.InputStream getStream()
throws java.io.IOException
getStream in class Representationjava.io.IOExceptionCopyright © 2005-2012. All Rights Reserved.