Package org.restlet.engine.header
Class EncodingReader
Encoding header reader.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.restlet.engine.header.HeaderReader
addValues, createParameter, createParameter, mark, peek, read, readActualNamedValue, readComment, readDate, readDigits, readHeader, readHeader, readNamedValue, readParameter, readQuotedString, readRawText, readRawValue, readToken, readValues, reset, skipParameterSeparator, skipSpaces, skipValueSeparator, unread
-
Constructor Details
-
EncodingReader
Constructor.- Parameters:
header- The header to read.
-
-
Method Details
-
canAdd
Description copied from class:HeaderReaderIndicates if the value can be added the the list. Useful to prevent the addition ofEncoding.IDENTITYconstants for example. By default it returns true for non null values.- Overrides:
canAddin classHeaderReader<Encoding>- Parameters:
value- The value to add.values- The target collection.- Returns:
- True if the value can be added.
-
readValue
Description copied from class:HeaderReaderRead the next value. There can be multiple values for a single header. Returns null by default.- Overrides:
readValuein classHeaderReader<Encoding>- Returns:
- The next value.
- Throws:
IOException
-