Package org.restlet.engine.header
Class RangeWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Range header writer.
- Author:
- Jerome Louvel
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.restlet.engine.header.HeaderWriter
append, append, append, append, append, append, appendComment, appendExtension, appendExtension, appendParameterSeparator, appendProduct, appendQuotedPair, appendQuotedString, appendSpace, appendToken, appendUriEncoded, appendValueSeparator, canWriteMethods inherited from class java.io.StringWriter
append, close, flush, getBuffer, toString, write, write, write, writeMethods inherited from class java.io.Writer
nullWriter, write
-
Constructor Details
-
RangeWriter
public RangeWriter()
-
-
Method Details
-
write
Formatsrangesas a Range header value- Parameters:
ranges- List of ranges to format- Returns:
rangesformatted or null if the list is null or empty.
-
write
Formatsrangeas a Content-Range header value.- Parameters:
range- Range to formatsize- Total size of the entity- Returns:
rangeformatted
-
append
Formatsrangesas a Range header value- Parameters:
ranges- List of ranges to format- Returns:
- This writer.
-
append
Description copied from class:HeaderWriterAppends a value.- Specified by:
appendin classHeaderWriter<Range>- Parameters:
range- The value.- Returns:
- This writer.
-