Class SimpleCharStream
java.lang.Object
org.tweetyproject.logics.rpcl.parser.rpclprobabilitydistributionparser.SimpleCharStream
An implementation of interface CharStream, where the stream is assumed to
contain only ASCII characters (without unicode processing).
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
Position in buffer.static final boolean
Whether parser is static. -
Constructor Summary
ConstructorDescriptionSimpleCharStream
(InputStream dstream) SimpleCharStream
(InputStream dstream, int startline, int startcolumn) SimpleCharStream
(InputStream dstream, int startline, int startcolumn, int buffersize) SimpleCharStream
(InputStream dstream, String encoding) SimpleCharStream
(InputStream dstream, String encoding, int startline, int startcolumn) SimpleCharStream
(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) SimpleCharStream
(Reader dstream) SimpleCharStream
(Reader dstream, int startline, int startcolumn) SimpleCharStream
(Reader dstream, int startline, int startcolumn, int buffersize) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
adjustBeginLineColumn
(int newLine, int newCol) static void
backup
(int amount) static char
static void
Done()
Reset buffer when finished.static int
static int
static int
Deprecated.static int
static int
static String
GetImage()
static int
getLine()
Deprecated.static char[]
GetSuffix
(int len) static char
readChar()
void
ReInit
(InputStream dstream) void
ReInit
(InputStream dstream, int startline, int startcolumn) void
ReInit
(InputStream dstream, int startline, int startcolumn, int buffersize) void
ReInit
(InputStream dstream, String encoding) void
ReInit
(InputStream dstream, String encoding, int startline, int startcolumn) void
ReInit
(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) void
void
void
-
Field Details
-
staticFlag
public static final boolean staticFlagWhether parser is static.- See Also:
-
bufpos
public static int bufposPosition in buffer.
-
-
Constructor Details
-
SimpleCharStream
-
SimpleCharStream
-
SimpleCharStream
-
SimpleCharStream
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
SimpleCharStream
-
SimpleCharStream
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
SimpleCharStream
-
SimpleCharStream
- Throws:
UnsupportedEncodingException
-
SimpleCharStream
-
-
Method Details
-
BeginToken
- Throws:
IOException
-
readChar
- Throws:
IOException
-
getColumn
Deprecated. -
getLine
Deprecated. -
getEndColumn
public static int getEndColumn() -
getEndLine
public static int getEndLine() -
getBeginColumn
public static int getBeginColumn() -
getBeginLine
public static int getBeginLine() -
backup
public static void backup(int amount) -
ReInit
-
ReInit
-
ReInit
-
ReInit
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
ReInit
-
ReInit
- Throws:
UnsupportedEncodingException
-
ReInit
-
ReInit
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
ReInit
-
GetImage
-
GetSuffix
public static char[] GetSuffix(int len) -
Done
public static void Done()Reset buffer when finished. -
adjustBeginLineColumn
public static void adjustBeginLineColumn(int newLine, int newCol)
-