java.lang.Object
org.jhotdraw8.css.parser.AbstractCssScanner
- All Implemented Interfaces:
CssScanner
- Direct Known Subclasses:
CharSequenceCssScanner,ReaderCssScanner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe current character.protected longThe current line number in the input stream.protected longThe current position in the input stream.protected booleanWhether we need to skip a linefeed on the next read. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.css.parser.CssScanner
pushBack
-
Field Details
-
position
protected long positionThe current position in the input stream. -
lineNumber
protected long lineNumberThe current line number in the input stream. -
currentChar
protected int currentCharThe current character. -
skipLF
protected boolean skipLFWhether we need to skip a linefeed on the next read.
-
-
Constructor Details
-
AbstractCssScanner
public AbstractCssScanner()
-
-
Method Details
-
currentChar
public int currentChar()Description copied from interface:CssScannerReturns the current character.- Specified by:
currentCharin interfaceCssScanner- Returns:
- the current character
-
getLineNumber
public long getLineNumber()Description copied from interface:CssScannerReturns the line number in the input stream.- Specified by:
getLineNumberin interfaceCssScanner- Returns:
- the line number
-
read
- Throws:
IOException
-
nextChar
Description copied from interface:CssScannerPhase 2: Processes unicode escape sequences first, and then processes newlines.- Specified by:
nextCharin interfaceCssScanner- Returns:
- the next character. Returns -1 if EOF.
- Throws:
IOException- from the underlying input stream
-
getPosition
public long getPosition()Description copied from interface:CssScannerReturns the position in the input stream.- Specified by:
getPositionin interfaceCssScanner- Returns:
- the position
-