Modifier and Type | Class and Description |
---|---|
(package private) static class |
DGSParser.Token |
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_CLOSE |
static int |
ARRAY_OPEN |
(package private) char[] |
buffer |
protected static int |
BUFFER_SIZE |
(package private) int |
bufferCapacity |
(package private) int |
bufferPosition |
(package private) int |
column |
(package private) FileSourceDGS |
dgs |
(package private) DGSParser.Token |
lastDirective |
(package private) int |
line |
static int |
MAP_CLOSE |
static int |
MAP_OPEN |
(package private) int[] |
pushback |
(package private) int |
pushbackOffset |
(package private) Reader |
reader |
(package private) String |
sourceId |
Constructor and Description |
---|
DGSParser(FileSourceDGS dgs,
Reader reader) |
Modifier and Type | Method and Description |
---|---|
void |
all()
Parse the whole stream.
|
protected Object |
array() |
protected void |
attribute(SourceBase.ElementType type,
String elementId) |
protected void |
attributes(SourceBase.ElementType type,
String id) |
void |
close()
Close the stream.
|
protected Color |
color() |
protected DGSParser.Token |
directive() |
protected void |
header() |
protected String |
id() |
protected Object |
map() |
boolean |
next() |
protected int |
nextChar() |
boolean |
nextStep() |
void |
open()
Start parsing the stream.
|
protected ParseException |
parseException(String message,
Object... args) |
protected void |
pushback(int c) |
protected void |
skipLine() |
protected void |
skipWhitespaces() |
protected String |
string() |
protected Object |
value(boolean array) |
protected static final int BUFFER_SIZE
public static final int ARRAY_OPEN
public static final int ARRAY_CLOSE
public static final int MAP_OPEN
public static final int MAP_CLOSE
int line
int column
int bufferCapacity
int bufferPosition
char[] buffer
int[] pushback
int pushbackOffset
FileSourceDGS dgs
DGSParser.Token lastDirective
public DGSParser(FileSourceDGS dgs, Reader reader)
public void close() throws IOException
Parser
close
in interface Parser
IOException
public void open() throws IOException, ParseException
Parser
open
in interface Parser
ParseException
IOException
public void all() throws IOException, ParseException
Parser
all
in interface Parser
ParseException
IOException
protected int nextChar() throws IOException
IOException
protected void pushback(int c) throws IOException
IOException
protected void skipLine() throws IOException
IOException
protected void skipWhitespaces() throws IOException
IOException
protected void header() throws IOException, ParseException
IOException
ParseException
public boolean next() throws IOException, ParseException
next
in interface Parser
ParseException
IOException
public boolean nextStep() throws IOException, ParseException
IOException
ParseException
protected void attributes(SourceBase.ElementType type, String id) throws IOException, ParseException
IOException
ParseException
protected void attribute(SourceBase.ElementType type, String elementId) throws IOException, ParseException
IOException
ParseException
protected Object value(boolean array) throws IOException, ParseException
IOException
ParseException
protected Color color() throws IOException, ParseException
IOException
ParseException
protected Object array() throws IOException, ParseException
IOException
ParseException
protected Object map() throws IOException, ParseException
IOException
ParseException
protected DGSParser.Token directive() throws IOException, ParseException
IOException
ParseException
protected String string() throws IOException, ParseException
IOException
ParseException
protected String id() throws IOException, ParseException
IOException
ParseException
protected ParseException parseException(String message, Object... args)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses