Package org.restlet.engine.header
Class DimensionReader
- java.lang.Object
-
- org.restlet.engine.header.HeaderReader<Dimension>
-
- org.restlet.engine.header.DimensionReader
-
public class DimensionReader extends HeaderReader<Dimension>
Dimension header reader.
-
-
Constructor Summary
Constructors Constructor Description DimensionReader(java.lang.String header)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddValues(Header header, java.util.Collection<Dimension> collection)Adds values to the given collection.DimensionreadValue()Read the next value.-
Methods inherited from class org.restlet.engine.header.HeaderReader
addValues, canAdd, 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
-
addValues
public static void addValues(Header header, java.util.Collection<Dimension> collection)
Adds values to the given collection.- Parameters:
header- The header to read.collection- The collection to update.
-
readValue
public Dimension 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<Dimension>- Returns:
- The next value.
- Throws:
java.io.IOException
-
-