org.restlet.engine.application
Class RangeRepresentation
java.lang.Object
org.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.util.WrapperRepresentation
org.restlet.engine.application.RangeRepresentation
public class RangeRepresentation
- extends WrapperRepresentation
Representation that exposes only a range of the content of a wrapped
representation.
- Author:
- Jerome Louvel
Methods inherited from class org.restlet.util.WrapperRepresentation |
checkDigest, checkDigest, computeDigest, exhaust, getAvailableSize, getChannel, getCharacterSet, getDigest, getDisposition, getDownloadName, getEncodings, getExpirationDate, getIdentifier, getLanguages, getLocationRef, getMediaType, getModificationDate, getRange, getReader, getSize, getTag, getText, getWrappedRepresentation, isAvailable, isDownloadable, isTransient, release, setAvailable, setCharacterSet, setDigest, setDisposition, setDownloadable, setDownloadName, setEncodings, setExpirationDate, setIdentifier, setIdentifier, setLanguages, setLocationRef, setLocationRef, setMediaType, setModificationDate, setRange, setSize, setTag, setTransient, write |
RangeRepresentation
public RangeRepresentation(Representation wrappedRepresentation)
- Constructor.
- Parameters:
wrappedRepresentation
- The wrapped representation with a complete content.
RangeRepresentation
public RangeRepresentation(Representation wrappedRepresentation,
Range range)
- Constructor.
- Parameters:
wrappedRepresentation
- The wrapped representation with a complete content.range
- The range to expose.
getStream
public InputStream getStream()
throws IOException
- Overrides:
getStream
in class WrapperRepresentation
- Throws:
IOException
write
public void write(OutputStream outputStream)
throws IOException
- Overrides:
write
in class WrapperRepresentation
- Throws:
IOException
write
public void write(WritableByteChannel writableChannel)
throws IOException
- Overrides:
write
in class WrapperRepresentation
- Throws:
IOException
Copyright © 2005-2010 Noelios Technologies.