Class QueryParser.Token

java.lang.Object
org.simpleframework.http.parse.QueryParser.Token
Enclosing class:
QueryParser

private class QueryParser.Token extends 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 the ParseBuffer which requires memory to be allocated for storing the data read from the buffer. This requires only two integer values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    This represents the number of characters in the token.
    int
    This represents the start offset within the buffer.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    In order to represent the Token as a value that can be used this converts it to a String.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • len

      public int len
      This represents the number of characters in the token.
    • off

      public int off
      This represents the start offset within the buffer.
  • Constructor Details

    • Token

      private Token()
  • Method Details

    • toString

      public String toString()
      In order to represent the Token as a value that can be used this converts it to a String. 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 class Object
      Returns:
      this returns a value representing the token