org.das2.qds.util.dd.SimpleCharStream

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).

SimpleCharStream( java.io.Reader dstream, int startline, int startcolumn, int buffersize )

Constructor.

SimpleCharStream( java.io.Reader dstream, int startline, int startcolumn )

Constructor.

SimpleCharStream( java.io.Reader dstream )

Constructor.

SimpleCharStream( java.io.InputStream dstream, String encoding, int startline, int startcolumn, int buffersize )

Constructor.

SimpleCharStream( java.io.InputStream dstream, int startline, int startcolumn, int buffersize )

Constructor.

SimpleCharStream( java.io.InputStream dstream, String encoding, int startline, int startcolumn )

Constructor.

SimpleCharStream( java.io.InputStream dstream, int startline, int startcolumn )

Constructor.

SimpleCharStream( java.io.InputStream dstream, String encoding )

Constructor.

SimpleCharStream( java.io.InputStream dstream )

Constructor.


staticFlag

Whether parser is static.


bufpos

Position in buffer.


BeginToken

BeginToken( ) → char

Start.

Returns:

char

[search for examples] [view on GitHub] [view on old javadoc] [view source]


Done

Done( ) → void

Reset buffer when finished.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


GetImage

GetImage( ) → String

Get token literal value.

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


GetSuffix

GetSuffix( int len ) → char[]

Get the suffix.

Parameters

len - an int

Returns:

char[]

[search for examples] [view on GitHub] [view on old javadoc] [view source]


ReInit

ReInit( java.io.Reader dstream, int startline, int startcolumn, int buffersize ) → void

Reinitialise.

Parameters

dstream - a Reader
startline - an int
startcolumn - an int
buffersize - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]

ReInit( java.io.Reader dstream, int startline, int startcolumn ) → void
ReInit( java.io.Reader dstream ) → void
ReInit( java.io.InputStream dstream, String encoding, int startline, int startcolumn, int buffersize ) → void
ReInit( java.io.InputStream dstream, int startline, int startcolumn, int buffersize ) → void
ReInit( java.io.InputStream dstream, String encoding ) → void
ReInit( java.io.InputStream dstream ) → void
ReInit( java.io.InputStream dstream, String encoding, int startline, int startcolumn ) → void
ReInit( java.io.InputStream dstream, int startline, int startcolumn ) → void

adjustBeginLineColumn

adjustBeginLineColumn( int newLine, int newCol ) → void

Method to adjust line and column numbers for the start of a token.

Parameters

newLine - an int
newCol - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


backup

backup( int amount ) → void

Backup a number of characters.

Parameters

amount - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getBeginColumn

getBeginColumn( ) → int

Get token beginning column number.

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getBeginLine

getBeginLine( ) → int

Get token beginning line number.

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getColumn

getColumn( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getEndColumn

getEndColumn( ) → int

Get token end column number.

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getEndLine

getEndLine( ) → int

Get token end line number.

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getLine

getLine( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


readChar

readChar( ) → char

Read a character.

Returns:

char

[search for examples] [view on GitHub] [view on old javadoc] [view source]