Package org.simpleframework.http.parse
Class QueryParser.Token
- java.lang.Object
-
- org.simpleframework.http.parse.QueryParser.Token
-
- Enclosing class:
- QueryParser
private class QueryParser.Token extends java.lang.ObjectThis is used to mark regions within the buffer that represent a valid token for either the name of a parameter or its value. This is used as an alternative to theParseBufferwhich requires memory to be allocated for storing the data read from the buffer. This requires only two integer values.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()In order to represent theTokenas a value that can be used this converts it to aString.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
In order to represent theTokenas a value that can be used this converts it to aString. If the length of the token is less than or equal to zero this will return and empty string for the value.- Overrides:
toStringin classjava.lang.Object- Returns:
- this returns a value representing the token
-
-