public abstract class BaseOutputRepresentation
extends org.restlet.resource.OutputRepresentation
getStream()
method uses TempOutputStream instead of the restlet impl
which uses a Pipe and a separate thread!Constructor and Description |
---|
BaseOutputRepresentation(org.restlet.data.MediaType mediaType) |
BaseOutputRepresentation(org.restlet.data.MediaType mediaType,
long expectedSize) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getStream() |
getText, isAvailable, isTransient, setAvailable, setTransient
getCharacterSet, getEncodings, getExpirationDate, getIdentifier, getLanguages, getMediaType, getModificationDate, getSize, getTag, setCharacterSet, setExpirationDate, setIdentifier, setIdentifier, setMediaType, setModificationDate, setSize, setTag
public BaseOutputRepresentation(org.restlet.data.MediaType mediaType)
public BaseOutputRepresentation(org.restlet.data.MediaType mediaType, long expectedSize)
public InputStream getStream() throws IOException
getStream
in class org.restlet.resource.OutputRepresentation
IOException