Class CookieParser.Token

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

private class CookieParser.Token extends Object
This is a token object that is used to store the offset and length of a region of chars in the CookieParser.buf array. The toString method of this token will produce the String value of the region it represents.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The numer of characters that were consumed by this token.
    int
    The offset within the buffer that this token starts from.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    This converts region within the buffer 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
      The numer of characters that were consumed by this token.
    • off

      public int off
      The offset within the buffer that this token starts from.
  • Constructor Details

    • Token

      private Token()
  • Method Details

    • toString

      public String toString()
      This converts region within the buffer to a String. This converts the region only if there is a sufficient length.
      Overrides:
      toString in class Object
      Returns:
      the String value of the region