Class Ascii

java.lang.Object
org.apache.tomcat.util.buf.Ascii

public final class Ascii extends Object
This class implements some basic ASCII character handling functions.
Author:
dac@eng.sun.com, James Todd [gonzo@eng.sun.com]
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    static long
    parseLong(byte[] b, int off, int len)
    Parses an unsigned long from the specified sub array of bytes.
    static int
    toLower(int c)
    Returns the lower case equivalent of the specified ASCII character.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • Ascii Link icon

      public Ascii()
  • Method Details Link icon

    • toLower Link icon

      public static int toLower(int c)
      Returns the lower case equivalent of the specified ASCII character.
      Parameters:
      c - The char
      Returns:
      the lower case equivalent char
    • parseLong Link icon

      public static long parseLong(byte[] b, int off, int len) throws NumberFormatException
      Parses an unsigned long from the specified sub array of bytes.
      Parameters:
      b - the bytes to parse
      off - the start offset of the bytes
      len - the length of the bytes
      Returns:
      the long value
      Throws:
      NumberFormatException - if the long format was invalid