Method Summary |
|
public Appendable | appendComment(CharSequence source, Appendable destination) Appends a source string as an HTTP comment. |
public static Appendable | appendQuote(CharSequence source, Appendable destination) Appends a source string as an HTTP quoted string. |
public static Appendable | appendUriEncoded(CharSequence source, Appendable destination, CharacterSet characterSet) Appends a source string as an URI encoded string. |
public static Parameter | createParameter(CharSequence name, CharSequence value) Creates a parameter.
Parameters: name - The parameter name buffer. Parameters: value - The parameter value buffer (can be null). |
public static void | formatProduct(CharSequence nameToken, CharSequence versionToken, Appendable destination) Formats a product description. |
public static boolean | isAlpha(int character) Indicates if the given character is alphabetical (a-z or A-Z).
Parameters: character - The character to test. |
public static boolean | isAsciiChar(int character) Indicates if the given character is in ASCII range.
Parameters: character - The character to test. |
public static boolean | isCarriageReturn(int character) Indicates if the given character is a carriage return.
Parameters: character - The character to test. |
public static boolean | isControlChar(int character) Indicates if the given character is a control character.
Parameters: character - The character to test. |
public static boolean | isDigit(int character) Indicates if the given character is a digit (0-9).
Parameters: character - The character to test. |
public static boolean | isDoubleQuote(int character) Indicates if the given character is a double quote.
Parameters: character - The character to test. |
public static boolean | isHorizontalTab(int character) Indicates if the given character is an horizontal tab.
Parameters: character - The character to test. |
public static boolean | isLineFeed(int character) Indicates if the given character is a line feed.
Parameters: character - The character to test. |
public static boolean | isLowerCase(int character) Indicates if the given character is lower case (a-z).
Parameters: character - The character to test. |
public static boolean | isSeparator(int character) Indicates if the given character is a separator.
Parameters: character - The character to test. |
public static boolean | isSpace(int character) Indicates if the given character is a space.
Parameters: character - The character to test. |
public static boolean | isText(int character) Indicates if the given character is textual (ASCII and not a control
character).
Parameters: character - The character to test. |
public static boolean | isToken(CharSequence token) Indicates if the token is valid. Only contains valid token
characters. |
public static boolean | isTokenChar(int character) Indicates if the given character is a token character (text and not a
separator).
Parameters: character - The character to test. |
public static boolean | isUpperCase(int character) Indicates if the given character is upper case (A-Z).
Parameters: character - The character to test. |
public static Parameter | readHeader(InputStream is, StringBuilder sb) Read a header. |
public static void | writeHeader(Parameter header, OutputStream os) Writes a header line. |