Package org.restlet.engine.header
Class EncodingReader
- java.lang.Object
-
- org.restlet.engine.header.HeaderReader<Encoding>
-
- org.restlet.engine.header.EncodingReader
-
public class EncodingReader extends HeaderReader<Encoding>
Encoding header reader.
-
-
Constructor Summary
Constructors Constructor Description EncodingReader(java.lang.String header)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanAdd(Encoding value, java.util.Collection<Encoding> values)Indicates if the value can be added the the list.EncodingreadValue()Read the next value.-
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
-
-
-
-
Method Detail
-
canAdd
protected boolean canAdd(Encoding value, java.util.Collection<Encoding> values)
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
public Encoding readValue() throws java.io.IOException
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:
java.io.IOException
-
-