Method Summary |
|
public void | consume() Advances the current pointer to the saved peek pointer
to consume the characters that were pending parsing
completion. |
public void | consume(int k) Consume the specified number of characters from the input
buffer. |
public static String | convertNewLines(String s) According to the RFC 3261, section 7.3.1:
Header fields can be extended over multiple lines by preceding each
extra line with at least one SP or horizontal tab (HT). |
public String | getLine() Gets the next line of text. |
public Vector | getLines() Gets a Vector of the buffer tokenized by lines. |
public char | getNextChar() Gets one character in the input buffer
and consumes the character. |
public String | getNextToken(char delim) Gets the next token from the buffer. |
public static String | getSDPFieldName(String line) Gets the SDP field name of the line. |
public boolean | hasMoreChars() Checks if more characters are available. |
public static boolean | isAlpha(char ch) Checks if the character is an alphabetic character.
Parameters: ch - the character to be checked. |
public static boolean | isDigit(char ch) Checks if the character is a numeric character.
Parameters: ch - the character to be checked. |
public static boolean | isDigitString(String str) Checks if the string contains numeric characters only.
Parameters: str - the string to be checked. |
public static boolean | isEscaped(String name, int index) Checks if the given symbol belongs to the escaped group. |
public static boolean | isHexDigit(char ch) Checks if character is part of a hexadecimal number. |
public static boolean | isQuotedPair(String name, int offset) Checks if the given sequence is quoted pair. |
public static boolean | isValidChar(char ch) Checks if the given character is allowed in method/header/parameter name. |
public char | lookAhead() Looks ahead one character in the input buffer
without consuming the character. |
public char | lookAhead(int k) Looks ahead a specified number of characters in the input buffer
without consuming the character. |
public String | nextToken() Gets the next token. |
public String | peekLine() Peeks at the next line without consuming the
characters. |