public class EncodingWriter extends MetadataWriter<Encoding>
Constructor and Description |
---|
EncodingWriter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canWrite(Encoding encoding)
Indicates if the value can be written to the header.
|
static java.lang.String |
write(java.util.List<Encoding> encodings)
Writes a list of encodings.
|
append
append, append, append, append, append, append, appendComment, appendExtension, appendExtension, appendParameterSeparator, appendProduct, appendQuotedPair, appendQuotedString, appendSpace, appendToken, appendUriEncoded, appendValueSeparator
public static java.lang.String write(java.util.List<Encoding> encodings)
encodings
- The encodings to write.protected boolean canWrite(Encoding encoding)
HeaderWriter
Encoding.IDENTITY
constants for example. By
default it returns true for non null values.canWrite
in class HeaderWriter<Encoding>
encoding
- The value to add.Copyright © 2005-2024 Restlet.