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.Object
This 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 theParseBuffer
which 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 private
Token()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
In order to represent theToken
as a value that can be used this converts it to aString
.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
In order to represent theToken
as 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:
toString
in classjava.lang.Object
- Returns:
- this returns a value representing the token
-
-