Package | Description |
---|---|
monq.jfa |
Implements Finite Automata, deterministic and
nondeterministic, with an engine for high throughput filtering of
text.
|
Modifier and Type | Class and Description |
---|---|
class |
ByteCharSource
implements a
CharSource which reads bytes and converts
them to characters of a given character set while keeping track of
byte positions of converted characters within the input stream. |
class |
CharSequenceCharSource
is a
CharSource wrapper around a CharSequence such that it can be used as an input source
of a DfaRun . |
class |
DfaRun
A
DfaRun is used to apply a Dfa to a
stream of characters. |
class |
EmptyCharSource
represents a minimal implementation of the
CharSource
interface mainly providing the ability to push characters back into
the stream for later reading. |
class |
ReaderCharSource
wraps Reader or an input stream into a CharSource.
|
Modifier and Type | Method and Description |
---|---|
CharSource |
DfaRun.getIn()
returns the currently active input source.
|
Modifier and Type | Method and Description |
---|---|
void |
TextStore.drain(CharSource dst,
int start)
calls
CharSource.pushBack() to get
rid of the substring of the text beginning at start. |
FaAction |
Dfa.match(CharSource in,
java.lang.StringBuilder out,
TextStore subMatches)
determine a matching prefix of
in and deliver
respective data. |
void |
DfaRun.setIn(CharSource in)
changes the input source.
|
Constructor and Description |
---|
DfaRun(Dfa dfa,
CharSource in)
creates a
DfaRun object to operate the given Dfa . |