Class CookieParser.Token

  • Enclosing class:
    CookieParser

    private class CookieParser.Token
    extends java.lang.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 len
      The numer of characters that were consumed by this token.
      int off
      The offset within the buffer that this token starts from.
    • 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()
      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 Detail

      • 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 Detail

      • Token

        private Token()
    • Method Detail

      • toString

        public java.lang.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 java.lang.Object
        Returns:
        the String value of the region