Java Doc for Scanner.java in  » IDE-Netbeans » visualweb.api.designer » org » apache » batik » css » 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 » IDE Netbeans » visualweb.api.designer » org.apache.batik.css.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.css.parser.Scanner

Scanner
public class Scanner (Code)
This class represents a CSS scanner - an object which decodes CSS lexical units.
author:
   Stephane Hillion
version:
   $Id$


Field Summary
protected  intblankCharacters
     The characters to skip to create the string which represents the current token.
protected  char[]buffer
     The recording buffer.
protected  intcurrent
     The current char.
protected  intend
     The end offset of the last lexical unit.
protected  intposition
     The current position in the buffer.
protected  NormalizingReaderreader
     The reader.
protected  intstart
     The start offset of the last lexical unit.
protected  inttype
     The type of the current lexical unit.

Constructor Summary
public  Scanner(Reader r)
     Creates a new Scanner object.
public  Scanner(InputStream is, String enc)
     Creates a new Scanner object.
public  Scanner(String s)
     Creates a new Scanner object.

Method Summary
public  voidclearBuffer()
     Clears the buffer.
protected  intdotNumber()
     Scans the decimal part of a number.
protected  intendGap()
     Returns the end gap of the current lexical unit.
protected  voidescape()
     Scans an escape sequence, if one.
public  char[]getBuffer()
     Returns the buffer used to store the chars.
public  intgetColumn()
     Returns the current column.
public  intgetEnd()
     Returns the end offset of the last lexical unit.
public  intgetLine()
     Returns the current line.
public  intgetStart()
     Returns the start offset of the last lexical unit.
public  StringgetStringValue()
     Returns the string representation of the current lexical unit.
public  intgetType()
     The current lexical unit type like defined in LexicalUnits.
protected static  booleanisEqualIgnoreCase(int i, char c)
     Compares the given int with the given character, ignoring case.
public  intnext()
     Returns the next token.
protected  intnextChar()
     Sets the value of the current char to the next character or -1 if the end of stream has been reached.
protected  voidnextToken()
     Returns the next token.
protected  intnumber()
     Scans a number.
protected  intnumberUnit(boolean integer)
     Scans the unit of a number.
public  voidscanAtRule()
     Scans a @rule value.
protected  intstring1()
     Scans a single quoted string.
protected  intstring2()
     Scans a double quoted string.

Field Detail
blankCharacters
protected int blankCharacters(Code)
The characters to skip to create the string which represents the current token.



buffer
protected char[] buffer(Code)
The recording buffer.



current
protected int current(Code)
The current char.



end
protected int end(Code)
The end offset of the last lexical unit.



position
protected int position(Code)
The current position in the buffer.



reader
protected NormalizingReader reader(Code)
The reader.



start
protected int start(Code)
The start offset of the last lexical unit.



type
protected int type(Code)
The type of the current lexical unit.




Constructor Detail
Scanner
public Scanner(Reader r) throws ParseException(Code)
Creates a new Scanner object.
Parameters:
  r - The reader to scan.



Scanner
public Scanner(InputStream is, String enc) throws ParseException(Code)
Creates a new Scanner object.
Parameters:
  is - The input stream to scan.
Parameters:
  enc - The encoding to use to decode the input stream, or null.



Scanner
public Scanner(String s) throws ParseException(Code)
Creates a new Scanner object.
Parameters:
  r - The reader to scan.




Method Detail
clearBuffer
public void clearBuffer()(Code)
Clears the buffer.



dotNumber
protected int dotNumber() throws IOException(Code)
Scans the decimal part of a number.



endGap
protected int endGap()(Code)
Returns the end gap of the current lexical unit.



escape
protected void escape() throws IOException(Code)
Scans an escape sequence, if one.



getBuffer
public char[] getBuffer()(Code)
Returns the buffer used to store the chars.



getColumn
public int getColumn()(Code)
Returns the current column.



getEnd
public int getEnd()(Code)
Returns the end offset of the last lexical unit.



getLine
public int getLine()(Code)
Returns the current line.



getStart
public int getStart()(Code)
Returns the start offset of the last lexical unit.



getStringValue
public String getStringValue()(Code)
Returns the string representation of the current lexical unit.



getType
public int getType()(Code)
The current lexical unit type like defined in LexicalUnits.



isEqualIgnoreCase
protected static boolean isEqualIgnoreCase(int i, char c)(Code)
Compares the given int with the given character, ignoring case.



next
public int next() throws ParseException(Code)
Returns the next token.



nextChar
protected int nextChar() throws IOException(Code)
Sets the value of the current char to the next character or -1 if the end of stream has been reached.



nextToken
protected void nextToken() throws ParseException(Code)
Returns the next token.



number
protected int number() throws IOException(Code)
Scans a number.



numberUnit
protected int numberUnit(boolean integer) throws IOException(Code)
Scans the unit of a number.



scanAtRule
public void scanAtRule() throws ParseException(Code)
Scans a @rule value. This method assumes that the current lexical unit is a at keyword.



string1
protected int string1() throws IOException(Code)
Scans a single quoted string.



string2
protected int string2() throws IOException(Code)
Scans a double quoted string.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.