Java Doc for Lexer.java in  » 6.0-JDK-Modules » j2me » gov » nist » siplite » parser » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » gov.nist.siplite.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gov.nist.core.StringTokenizer
      gov.nist.core.LexerCore
         gov.nist.siplite.parser.Lexer

Lexer
public class Lexer extends LexerCore (Code)
Lexer class for the parser.
version:
   JAIN-SIP-1.1
version:
   This code is in the public domain.



Constructor Summary
public  Lexer(String lexerName, String buffer)
     Constructor with initial lecername and buffer to process.

Method Summary
public static  StringgetHeaderName(String line)
     Gets the header name of the line.
public static  StringgetHeaderValue(String line)
     Gets the header value of the line.
public static  booleanisValidDisplayName(String displayName)
     Checks if the given string is valid display name.
public static  booleanisValidHeaderValue(String value)
     Checks if the given string is a valid header value.
public static  booleanisValidHostname(String address)
    
public static  booleanisValidIpv4Address(String address)
     Checks if the given string is valid IPv4Address. BNF (RFC3261, p.
public static  booleanisValidIpv6Address(String address)
     Checks if the given string is valid IPv6Address. BNF (RFC3261, p.
public static  booleanisValidName(String name)
     Checks if the given string is a valid method/header/parameter name.
public static  booleanisValidParameterValue(String value)
     Checks if the given string is a valid parameter value.
public static  booleanisValidScheme(String scheme)
     Checks if the given string is valid scheme name.
public static  booleanisValidUserName(String name)
     Checks if the given string is valid as user part of a SIP(S)-URI.
protected static  booleanisValidValue(String value, boolean isParameter)
     Checks if the given string is a valid header/parameter value.
public  voidselectLexer(String lexerName)
     Selects the lexer to used based on the current parsing context.


Constructor Detail
Lexer
public Lexer(String lexerName, String buffer)(Code)
Constructor with initial lecername and buffer to process.
Parameters:
  lexerName - lexer for processing
Parameters:
  buffer - data to be parsed




Method Detail
getHeaderName
public static String getHeaderName(String line)(Code)
Gets the header name of the line.
Parameters:
  line - the text to be parsed the header name



getHeaderValue
public static String getHeaderValue(String line)(Code)
Gets the header value of the line.
Parameters:
  line - the text to be parsed the header value



isValidDisplayName
public static boolean isValidDisplayName(String displayName)(Code)
Checks if the given string is valid display name.
Parameters:
  displayName - the text to be parsed true if the string is a valid display name, false otherwise



isValidHeaderValue
public static boolean isValidHeaderValue(String value)(Code)
Checks if the given string is a valid header value.
Parameters:
  value - the text to be parsed true if the string is a valid value, false otherwise



isValidHostname
public static boolean isValidHostname(String address)(Code)
Checks if the given string is valid hostname BNF(RFC3261 p.222) hostname = *( domainlabel "." ) toplabel [ "." ] domainlabel = alphanum / alphanum *( alphanum / "-" ) alphanum toplabel = ALPHA / ALPHA *( alphanum / "-" ) alphanum
Parameters:
  address - the text to be parsed true if the string is a valid hostname,false otherwise



isValidIpv4Address
public static boolean isValidIpv4Address(String address)(Code)
Checks if the given string is valid IPv4Address. BNF (RFC3261, p. 223, 232): IPv4address = 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT
Parameters:
  address - the text to be parsed true if the string is a valid IPv4Address, false otherwise



isValidIpv6Address
public static boolean isValidIpv6Address(String address)(Code)
Checks if the given string is valid IPv6Address. BNF (RFC3261, p. 223, 232): IPv4address = 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT IPv6address = hexpart [ ":" IPv4address ] hexpart = hexseq / hexseq "::" [ hexseq ] / "::" [ hexseq ] hexseq = hex4 *( ":" hex4) hex4 = 1*4HEXDIG
Parameters:
  address - the text to be parsed true if the string is a valid IPv6Address, false otherwise



isValidName
public static boolean isValidName(String name)(Code)
Checks if the given string is a valid method/header/parameter name.
Parameters:
  name - the text to be parsed true if the string is a valid name, false otherwise



isValidParameterValue
public static boolean isValidParameterValue(String value)(Code)
Checks if the given string is a valid parameter value.
Parameters:
  value - the text to be parsed true if the string is a valid value, false otherwise



isValidScheme
public static boolean isValidScheme(String scheme)(Code)
Checks if the given string is valid scheme name.
Parameters:
  scheme - the text to be parsed true if the string is a valid scheme name, false otherwise



isValidUserName
public static boolean isValidUserName(String name)(Code)
Checks if the given string is valid as user part of a SIP(S)-URI.
Parameters:
  name - the text to be parsed true if the string is a valid name, false otherwise



isValidValue
protected static boolean isValidValue(String value, boolean isParameter)(Code)
Checks if the given string is a valid header/parameter value.
Parameters:
  value - the text to be parsed
Parameters:
  isParameter - true if the value to be checked is a parametervalue, false otherwise true if the string is a valid value, false otherwise



selectLexer
public void selectLexer(String lexerName)(Code)
Selects the lexer to used based on the current parsing context.
Parameters:
  lexerName - the lexer engine



Fields inherited from gov.nist.core.LexerCore
final public static int ALPHA(Code)(Java Doc)
final public static int AND(Code)(Java Doc)
final public static int AT(Code)(Java Doc)
final public static int BACKSLASH(Code)(Java Doc)
final public static int BACK_QUOTE(Code)(Java Doc)
final public static int BAR(Code)(Java Doc)
final public static int COLON(Code)(Java Doc)
final public static int DIGIT(Code)(Java Doc)
final public static int DOLLAR(Code)(Java Doc)
final public static int DOT(Code)(Java Doc)
final public static int DOUBLEQUOTE(Code)(Java Doc)
final public static int END(Code)(Java Doc)
final public static int EQUALS(Code)(Java Doc)
final public static int EXCLAMATION(Code)(Java Doc)
final public static int GREATER_THAN(Code)(Java Doc)
final public static int HAT(Code)(Java Doc)
final public static int HT(Code)(Java Doc)
final public static int ID(Code)(Java Doc)
final public static int LESS_THAN(Code)(Java Doc)
final public static int LPAREN(Code)(Java Doc)
final public static int L_CURLY(Code)(Java Doc)
final public static int L_SQUARE_BRACKET(Code)(Java Doc)
final public static int MINUS(Code)(Java Doc)
final public static int NULL(Code)(Java Doc)
final public static int PERCENT(Code)(Java Doc)
final public static int PLUS(Code)(Java Doc)
final public static int POUND(Code)(Java Doc)
final public static int QUESTION(Code)(Java Doc)
final public static int QUOTE(Code)(Java Doc)
final public static int RPAREN(Code)(Java Doc)
final public static int R_CURLY(Code)(Java Doc)
final public static int R_SQUARE_BRACKET(Code)(Java Doc)
final public static int SEMICOLON(Code)(Java Doc)
final public static int SLASH(Code)(Java Doc)
final public static int SP(Code)(Java Doc)
final public static int STAR(Code)(Java Doc)
final public static int START(Code)(Java Doc)
final public static int TILDE(Code)(Java Doc)
final public static int UNDERSCORE(Code)(Java Doc)
final public static int WHITESPACE(Code)(Java Doc)
protected Hashtable currentLexer(Code)(Java Doc)
protected String currentLexerName(Code)(Java Doc)
protected Token currentMatch(Code)(Java Doc)
protected static Hashtable globalSymbolTable(Code)(Java Doc)
protected static Hashtable lexerTables(Code)(Java Doc)

Methods inherited from gov.nist.core.LexerCore
public void SPorHT()(Code)(Java Doc)
protected void addKeyword(String name, int value)(Code)(Java Doc)
protected Hashtable addLexer(String lexerName)(Code)(Java Doc)
public String byteStringNoComma()(Code)(Java Doc)
public String byteStringNoSemicolon()(Code)(Java Doc)
public static String charAsString(char ch)(Code)(Java Doc)
public String charAsString(int nchars)(Code)(Java Doc)
public String comment() throws ParseException(Code)(Java Doc)
public ParseException createParseException()(Code)(Java Doc)
public String getBuffer()(Code)(Java Doc)
public String getNextId()(Code)(Java Doc)
public Token getNextToken()(Code)(Java Doc)
public int getPtr()(Code)(Java Doc)
public String getRest()(Code)(Java Doc)
public String getString(char c) throws ParseException(Code)(Java Doc)
public String lookupToken(int value)(Code)(Java Doc)
public int markInputPosition()(Code)(Java Doc)
public Token match(int tok) throws ParseException(Code)(Java Doc)
public String number() throws ParseException(Code)(Java Doc)
public String peekNextId()(Code)(Java Doc)
public Token peekNextToken() throws ParseException(Code)(Java Doc)
public Vector peekNextToken(int ntokens) throws ParseException(Code)(Java Doc)
public String quotedString() throws ParseException(Code)(Java Doc)
public void rewindInputPosition(int position)(Code)(Java Doc)
abstract public void selectLexer(String lexerName)(Code)(Java Doc)
public boolean startsId()(Code)(Java Doc)
public String ttoken()(Code)(Java Doc)
public String ttokenAllowSpace()(Code)(Java Doc)

Fields inherited from gov.nist.core.StringTokenizer
protected String buffer(Code)(Java Doc)
protected int ptr(Code)(Java Doc)
protected int savedPtr(Code)(Java Doc)

Methods inherited from gov.nist.core.StringTokenizer
public void consume()(Code)(Java Doc)
public void consume(int k)(Code)(Java Doc)
public static String convertNewLines(String s)(Code)(Java Doc)
public String getLine()(Code)(Java Doc)
public Vector getLines()(Code)(Java Doc)
public char getNextChar() throws ParseException(Code)(Java Doc)
public String getNextToken(char delim) throws ParseException(Code)(Java Doc)
public static String getSDPFieldName(String line)(Code)(Java Doc)
public boolean hasMoreChars()(Code)(Java Doc)
public static boolean isAlpha(char ch)(Code)(Java Doc)
public static boolean isDigit(char ch)(Code)(Java Doc)
public static boolean isDigitString(String str)(Code)(Java Doc)
public static boolean isEscaped(String name, int index)(Code)(Java Doc)
public static boolean isHexDigit(char ch)(Code)(Java Doc)
public static boolean isQuotedPair(String name, int offset)(Code)(Java Doc)
public static boolean isValidChar(char ch)(Code)(Java Doc)
public char lookAhead() throws ParseException(Code)(Java Doc)
public char lookAhead(int k) throws ParseException(Code)(Java Doc)
public String nextToken()(Code)(Java Doc)
public String peekLine()(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.