Package org.restlet.engine.header
Class EncodingWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Encoding header writer.
- Author:
- Jerome Louvel
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.restlet.engine.header.MetadataWriter
appendMethods inherited from class org.restlet.engine.header.HeaderWriter
append, append, append, append, append, append, appendComment, appendExtension, appendExtension, appendParameterSeparator, appendProduct, appendQuotedPair, appendQuotedString, appendSpace, appendToken, appendUriEncoded, appendValueSeparatorMethods 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
-
EncodingWriter
public EncodingWriter()
-
-
Method Details
-
write
Writes a list of encodings.- Parameters:
encodings- The encodings to write.- Returns:
- This writer.
-
canWrite
Description copied from class:HeaderWriterIndicates if the value can be written to the header. Useful to prevent the writing ofEncoding.IDENTITYconstants for example. By default it returns true for non null values.- Overrides:
canWritein classHeaderWriter<Encoding>- Parameters:
encoding- The value to add.- Returns:
- True if the value can be added.
-