Top Description Fields Constructors Methods
tech.units.indriya.internal.format

pack-priv final Class DefaultCharStream

extends Object
Class Inheritance
Annotations
@API
status:INTERNAL
Static Imports
org.apiguardian.api.API.Status.INTERNAL

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without Unicode processing).
Version
5.4, May 14, 2021

Field Summary

Modifier and TypeField and Description
private int
protected int[]
protected char[]
protected int[]
public int
bufpos

Position in buffer.

private int
protected int
protected int
protected Reader
protected int
protected int
protected boolean
protected boolean
public static final boolean
staticFlag

Whether parser is static.

protected int
private int

Constructor Summary

AccessConstructor and Description
public
DefaultCharStream(Reader dstream, int startline, int startcolumn, int buffersize)

Constructor.

public
DefaultCharStream(Reader dstream, int startline, int startcolumn)

Constructor.

public
DefaultCharStream(Reader dstream)

Constructor.

public
DefaultCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)

Constructor.

public
DefaultCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)

Constructor.

public
DefaultCharStream(InputStream dstream, String encoding, int startline, int startcolumn)

Constructor.

pack-priv
DefaultCharStream(InputStream dstream, int startline, int startcolumn)

Constructor.

pack-priv
DefaultCharStream(InputStream dstream, String encoding)

Constructor.

pack-priv
DefaultCharStream(InputStream dstream)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
adjustBeginLineColumn(int newLine, int newCol)

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

pack-priv void
backup(int amount)

Backup a number of characters.

pack-priv char
beginToken()

Start.

protected void
expandBuff(boolean wrapAround)

protected void
pack-priv int
getBeginColumn()

Get token beginning column number.

pack-priv int
getBeginLine()

Get token beginning line number.

public int
getEndColumn()

Get token end column number.

public int
getEndLine()

Get token end line number.

pack-priv String
getImage()

Get token literal value.

protected int
pack-priv char
readChar()

Read a character.

public void
reInit(Reader dstream, int startline, int startcolumn, int buffersize)

Reinitialise.

public void
reInit(Reader dstream, int startline, int startcolumn)

Reinitialise.

public void
reInit(Reader dstream)

Reinitialise.

public void
reInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)

Reinitialise.

public void
reInit(InputStream dstream, int startline, int startcolumn, int buffersize)

Reinitialise.

public void
reInit(InputStream dstream, String encoding)

Reinitialise.

protected void
setTabSize(int i)

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

availableback to summary
private int available
bufcolumnback to summary
protected int[] bufcolumn
bufferback to summary
protected char[] buffer
buflineback to summary
protected int[] bufline
bufposback to summary
public int bufpos

Position in buffer.

bufsizeback to summary
private int bufsize
columnback to summary
protected int column
inBufback to summary
protected int inBuf
inputStreamback to summary
protected Reader inputStream
lineback to summary
protected int line
maxNextCharIndback to summary
protected int maxNextCharInd
prevCharIsCRback to summary
protected boolean prevCharIsCR
prevCharIsLFback to summary
protected boolean prevCharIsLF
staticFlagback to summary
public static final boolean staticFlag

Whether parser is static.

tabSizeback to summary
protected int tabSize
tokenBeginback to summary
private int tokenBegin

Constructor Detail

DefaultCharStreamback to summary
public DefaultCharStream(Reader dstream, int startline, int startcolumn, int buffersize)

Constructor.

DefaultCharStreamback to summary
public DefaultCharStream(Reader dstream, int startline, int startcolumn)

Constructor.

DefaultCharStreamback to summary
public DefaultCharStream(Reader dstream)

Constructor.

DefaultCharStreamback to summary
public DefaultCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException

Constructor.

DefaultCharStreamback to summary
public DefaultCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)

Constructor.

DefaultCharStreamback to summary
public DefaultCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException

Constructor.

DefaultCharStreamback to summary
pack-priv DefaultCharStream(InputStream dstream, int startline, int startcolumn)

Constructor.

DefaultCharStreamback to summary
pack-priv DefaultCharStream(InputStream dstream, String encoding) throws UnsupportedEncodingException

Constructor.

DefaultCharStreamback to summary
pack-priv DefaultCharStream(InputStream dstream)

Constructor.

Method Detail

adjustBeginLineColumnback to summary
public void adjustBeginLineColumn(int newLine, int newCol)

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

backupback to summary
pack-priv void backup(int amount)

Backup a number of characters.

beginTokenback to summary
pack-priv char beginToken() throws IOException

Start.

expandBuffback to summary
protected void expandBuff(boolean wrapAround)
fillBuffback to summary
protected void fillBuff() throws IOException
getBeginColumnback to summary
pack-priv int getBeginColumn()

Get token beginning column number.

getBeginLineback to summary
pack-priv int getBeginLine()

Get token beginning line number.

getEndColumnback to summary
public int getEndColumn()

Get token end column number.

getEndLineback to summary
public int getEndLine()

Get token end line number.

getImageback to summary
pack-priv String getImage()

Get token literal value.

getTabSizeback to summary
protected int getTabSize()
readCharback to summary
pack-priv char readChar() throws IOException

Read a character.

reInitback to summary
public void reInit(Reader dstream, int startline, int startcolumn, int buffersize)

Reinitialise.

reInitback to summary
public void reInit(Reader dstream, int startline, int startcolumn)

Reinitialise.

reInitback to summary
public void reInit(Reader dstream)

Reinitialise.

reInitback to summary
public void reInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException

Reinitialise.

reInitback to summary
public void reInit(InputStream dstream, int startline, int startcolumn, int buffersize)

Reinitialise.

reInitback to summary
public void reInit(InputStream dstream, String encoding) throws UnsupportedEncodingException

Reinitialise.

setTabSizeback to summary
protected void setTabSize(int i)
updateLineColumnback to summary
protected void updateLineColumn(char c)