- AbstractFaAction - Class in monq.jfa
-
implements the prototype of an
FaAction
with initial
priority zero so that actions can be easily written as anonymous
classes.
- AbstractFaAction() - Constructor for class monq.jfa.AbstractFaAction
-
although this class is abstract, the constructor is needed to create
anonymous subclasses.
- AbstractPipe - Class in monq.stuff
-
a skeleton implementation of a combination of
Feeder
and
Drainer
.
- AbstractPipe() - Constructor for class monq.stuff.AbstractPipe
-
- acquire() - Method in class monq.stuff.Semaphore
-
blocks the calling thread until a free slot is available.
- add(int) - Method in class monq.jfa.actions.Count
-
returns an
FaAction
which changes the counter
according to the
given increment
incr
.
- add(FaAction) - Method in class monq.jfa.actions.Run
-
adds the given action a
to the list of actions to
execute when invoke
is called.
- add(Context, String, String) - Method in class monq.jfa.ctx.ContextManager
-
adds a new context to the client Nfa
.
- add(String, String) - Method in class monq.jfa.ctx.ContextManager
-
- add(E) - Method in class monq.jfa.PlainSet
-
- addAction(FaAction) - Method in class monq.jfa.Nfa
-
adds an action to the Nfa (expert only).
- addAll(Collection<? extends E>) - Method in class monq.jfa.PlainSet
-
- addOption(Option) - Method in class monq.clifj.Commandline
-
- addPart(int, int, byte) - Method in class monq.jfa.TextStore
-
like
setPart()
except that the given part is
appended to the list of parts.
- addPart(int, int) - Method in class monq.jfa.TextStore
-
- addRestrictions(String) - Method in class monq.clifj.EnumOption
-
- addRestrictions(String) - Method in class monq.clifj.LongOption
-
- addXml(Context, String) - Method in class monq.jfa.ctx.ContextManager
-
calls
add(parent,reIn,reOut)
such that
reIn
and
reOut
match the start and end of the XML element
with the given
tagname
.
- addXml(String) - Method in class monq.jfa.ctx.ContextManager
-
- addXml(Context, String[]) - Method in class monq.jfa.ctx.ContextManager
-
creates a nested hierarchy of contexts defined by the XML
tagnames given.
- addXml() - Method in class monq.jfa.ctx.ContextManager
-
- allPrefixes() - Method in class monq.jfa.Nfa
-
converts the automaton into one which matches all non-empty prefixes of
the given automaton.
- allPrefixes() - Method in interface monq.jfa.NfaParserView
-
performs the equivalent of
Nfa.allPrefixes()
on the top
element of the expression stack.
- anyContext - Static variable in class monq.jfa.ctx.ContextManager
-
- append(StringBuilder) - Method in class monq.jfa.SimpleFormatters.FixedString
-
appends the content of sb
to the predifined string
to be used by format
.
- append(SimpleFormatters.FixedString) - Method in class monq.jfa.SimpleFormatters.FixedString
-
- append(String) - Method in class monq.jfa.TextStore
-
appends the given text to the this
.
- append(char) - Method in class monq.jfa.TextStore
-
- append(StringBuilder, int, int) - Method in class monq.jfa.TextStore
-
appends the given text to the this
.
- appendPart(StringBuilder, int, int, byte) - Method in class monq.jfa.TextStore
-
- appendPart(StringBuilder, int, int) - Method in class monq.jfa.TextStore
-
- ArrayUtil - Class in monq.stuff
-
is a collection of static methods to manipulate arrays.
- atStartOf(CharSequence, int) - Method in class monq.jfa.Regexp
-
tests whether this
matches a prefix of
s
starting at position pos
.
- atStartOf(CharSequence) - Method in class monq.jfa.Regexp
-
tests whether this
matches a prefix of
s
.
- atStartOf(CharSequence, CharSequence, int) - Static method in class monq.jfa.Regexp
-
tests whether regexp
matches within
s
at position start
.
- Attribute - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML attribute including name,
equal sign and attribute value.
- AttValue - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML attribute value.
- available(String) - Method in class monq.clifj.Commandline
-
returns true if the option was found on the command line or has default
values.
- available() - Method in class monq.clifj.Option
-
returns true if the option was found on the command line or has
default values.
- Call - Class in monq.jfa.actions
-
is an
FaAction
that forwards the callback to its
invoke()
method to a named method by using
reflection.
- Call(String) - Constructor for class monq.jfa.actions.Call
-
creates a Call
that will forward the call to a
method with the given methodName
.
- CallbackException - Exception in monq.jfa
-
- CallbackException(String, Throwable) - Constructor for exception monq.jfa.CallbackException
-
- CallbackException(String) - Constructor for exception monq.jfa.CallbackException
-
- CDSect - Static variable in class monq.jfa.Xml
-
a regular expression matching a CDATA section.
- charArrayMemEstimate(int) - Static method in class monq.stuff.Sizeof
-
- CharRef - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML CharRef.
- CharSequenceCharSource - Class in monq.jfa
-
is a
CharSource
wrapper around a
CharSequence
such that it can be used as an input source
of a
DfaRun
.
- CharSequenceCharSource() - Constructor for class monq.jfa.CharSequenceCharSource
-
- CharSequenceCharSource(CharSequence) - Constructor for class monq.jfa.CharSequenceCharSource
-
- CharSequenceCharSource(CharSequence, int) - Constructor for class monq.jfa.CharSequenceCharSource
-
- CharSequenceFeeder - Class in monq.stuff
-
implements a
Feeder
that feeds a
CharSequence
to the output specified by
setOut()
.
- CharSequenceFeeder(CharSequence, String) - Constructor for class monq.stuff.CharSequenceFeeder
-
creates the Feeder
to feed in
to an
OutputStream
while encoding characters with the
character set given by csname
.
- CharSource - Interface in monq.jfa
-
defines the type from which a DfaRun reads the data.
- charTransTypes - Variable in class monq.jfa.Statistics
-
type and number of CharTrans implementations used
- check(Object) - Method in class monq.clifj.EnumOption
-
- check(Object) - Method in class monq.clifj.LongOption
-
- clear() - Method in class monq.jfa.TextStore
-
resets this
to contain neither text nor any
parts.
- clear() - Method in class monq.net.PipelineRequest
-
deletes all key/value pairs that were stored with
put()
.
- clientData - Variable in class monq.jfa.DfaRun
-
Room for an arbitrary piece of data.
- close() - Method in class monq.jfa.ByteCharSource
-
closes the underlying ReadableByteChannel
.
- close(InputStream) - Method in class monq.net.DistPipeFilter
-
must be called with an
InputStream
as
returned by
open()
eventually to release the
connection resources used to contact the pipeline.
- Coder - Class in monq.stuff
-
methods to encode/decode between a
java.lang.StringBuilder
and a
java.nio.ByteBuffer
.
- Coder(Charset) - Constructor for class monq.stuff.Coder
-
creates an Coder
for the given character set
which uses a default internal buffer size for encoding.
- collect - Variable in class monq.jfa.DfaRun
-
set this field to
true
from an
FaAction
callback to prevent the machinery to ship the filtered data.
- column - Variable in exception monq.jfa.ReSyntaxException
-
- CombiningChar - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML CombiningChar.
- Commandline - Class in monq.clifj
-
describes the structure of the command line with options.
- Commandline(String, String, String, String, int, int) - Constructor for class monq.clifj.Commandline
-
creates a Commandline
object which allows non option
arguments.
- Commandline(String, String) - Constructor for class monq.clifj.Commandline
-
creates a Commandline
object which does not allow
non option arguments.
- CommandlineException - Exception in monq.clifj
-
- CommandlineException(String) - Constructor for exception monq.clifj.CommandlineException
-
- Comment - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML comment.
- compile(DfaRun.FailedMatchBehaviour, FaAction) - Method in class monq.jfa.Nfa
-
compiles this non-deterministic finite automaton into a
deterministic finite automaton.
- compile(DfaRun.FailedMatchBehaviour) - Method in class monq.jfa.Nfa
-
compiles
this
into a
Dfa
with the given
behaviour for non-matching input.
- CompileDfaException - Exception in monq.jfa
-
represents things that go wrong during compilation of an Nfa into a
Dfa.
- CompileDfaException(String) - Constructor for exception monq.jfa.CompileDfaException
-
- CompileDfaException() - Constructor for exception monq.jfa.CompileDfaException
-
- complete(D) - Method in class monq.jfa.Intervals
-
all intervals which are currently mapped to null
will be mapped to the given object.
- completeToSkip(FaAction) - Method in class monq.jfa.Nfa
-
extends the automaton with an additonal automaton which matches
everything but all non-empty prefixes of this automaton.
- contains(Object) - Method in class monq.jfa.PlainSet
-
- CONTENT - Static variable in class monq.jfa.Xml
-
- Context - Class in monq.jfa.ctx
-
manages a context when running a
DfaRun
.
- ContextManager - Class in monq.jfa.ctx
-
populates a
Nfa
with regex/action pairs
which keep track of nested matching contexts.
- ContextManager(Nfa) - Constructor for class monq.jfa.ctx.ContextManager
-
creates an object to populate the given Nfa
with
regex/action pairs for context matching.
- ContextStackProvider - Interface in monq.jfa.ctx
-
- convert(String) - Static method in class monq.ie.Term2Re
-
converts a multi word term into a regular expression matching
that term as well as obvious generalizations.
- ConvinceGC - Class in monq.stuff
-
this class should not be necessary, but I did not find a better way
to get the GC release memory to the operating system.
- ConvinceGC(int) - Constructor for class monq.stuff.ConvinceGC
-
get a thread which, after being started, calls the garbage
collector the given number of times with an interval of 1 second
in between.
- Copy - Class in monq.jfa.actions
-
implements an
FaAction
which merely copies matched input to
the output.
- Copy(int) - Constructor for class monq.jfa.actions.Copy
-
use only if
Copy.COPY
is not what you want, because you
have to specify a priority.
- COPY - Static variable in class monq.jfa.actions.Copy
-
a predefined
FaAction
with priority 0 which merely copies
matched text unchanged to the output.
- COPY - Static variable in class monq.jfa.actions.Unmatched
-
- copy() - Method in class monq.jfa.Nfa
-
creates a copy of this Nfa where all the states are duplicated, but the
actions are kept such that both Nfas referernce the same actions.
- Count - Class in monq.jfa.actions
-
counts matches and can then be used with
If
to perform
conditional actions depending on whether a threshold count is
reached.
- Count(String) - Constructor for class monq.jfa.actions.Count
-
create a counter callback which records the its value with
key
.
- count - Variable in class monq.stuff.Sizeof.Pair
-
number of objects of a certain type.
- createConverter(String, String, String, ReParser) - Static method in class monq.ie.Term2Re
-
creates a
DfaRun
able to convert a multi word
term into a regular expression which matches obvious
orthographical variations of that term.
- createRun() - Method in class monq.jfa.Dfa
-
convenience function to get a DfaRun
for this
automaton.
- createRun() - Method in class monq.programs.DictFilter
-
create a
DfaRun
object suitable to operate the
dictionary DFA.
- createRun() - Method in class monq.programs.Grep
-
is the way to apply the machinery created with one of the
constructors.
- createService(InputStream, OutputStream, Object) - Method in class monq.net.FilterServiceFactory
-
contacts an upstream server and connects a service to the
resulting input and the given output.
- createService(InputStream, OutputStream, Object) - Method in interface monq.net.ServiceFactory
-
creates a
Service
that reads from the given input
stream, processes it and writes the result to the given output
stream.
- createService(InputStream, OutputStream, Object) - Method in class monq.programs.DictFilter
-
- createService(InputStream, OutputStream, Object) - Method in class monq.programs.Grep
-
- createStackProvider() - Static method in class monq.jfa.ctx.ContextManager
-
- decode(StringBuilder, int) - Method in class monq.jfa.xml.StdCharEntities
-
- decode(ByteBuffer, StringBuilder) - Method in class monq.stuff.Coder
-
decode the contents of a ByteBuffer
and append them
to a StringBuilder
.
- DefaultAction - Class in monq.jfa.actions
-
- DefaultAction(FaAction) - Constructor for class monq.jfa.actions.DefaultAction
-
- defaultEnc - Static variable in class monq.stuff.EncodingDetector
-
the platform's default encoding determined by opening an
InputStreamReader
on System.in
and
asking for its encoding.
- delete(int[], int, int) - Static method in class monq.stuff.ArrayUtil
-
deletes count
elements from ary
starting at index pos
by copying the elements
at indices greater than or equal to pos+count
to
index pos
.
- delete(byte[], int, int) - Static method in class monq.stuff.ArrayUtil
-
deletes count
elements from ary
starting at index pos
by copying the elements
at indices greater than or equal to pos+count
to
index pos
.
- delete(Object[], int, int) - Static method in class monq.stuff.ArrayUtil
-
- deleteParts(int, int) - Method in class monq.jfa.TextStore
-
deletes all parts in the inclusive range referenced by
first
and last
.
- detect(InputStream, int, String) - Static method in class monq.stuff.EncodingDetector
-
reads up to limit
bytes from the given input stream
to find out the character encoding used.
- detect(InputStream) - Static method in class monq.stuff.EncodingDetector
-
tries to detect the character encoding used in the given
InputStream
within the first 1000 bytes.
- Dfa - Class in monq.jfa
-
implements a deterministic finite automaton.
- DFA_AttValue - Static variable in class monq.jfa.Xml
-
- DFA_Eq - Static variable in class monq.jfa.Xml
-
- DFA_Name - Static variable in class monq.jfa.Xml
-
- DFA_S - Static variable in class monq.jfa.Xml
-
- DfaRun - Class in monq.jfa
-
A
DfaRun
is used to apply a
Dfa
to a
stream of characters.
- DfaRun(Dfa, CharSource) - Constructor for class monq.jfa.DfaRun
-
creates a
DfaRun
object to operate the given
Dfa
.
- DfaRun(Dfa) - Constructor for class monq.jfa.DfaRun
-
creates a DfaRun
with empty initial input.
- DfaRun.FailedMatchBehaviour - Class in monq.jfa
-
defines typed enumerated values which describe
what a DfaRun
shall do in its read() and filter()
functions, if
no match can be found.
- DfaRunFeeder - Class in monq.stuff
-
implements a
Feeder
that feeds data filtered by a
Dfa
to the output specified by
setOut()
.
- DfaRunFeeder(DfaRun, String) - Constructor for class monq.stuff.DfaRunFeeder
-
creates the Feeder
to filter source
with the given dfa
and then feed it to an
OutputStream
while encoding characters with the
character set given by csname
.
- DfaRunService - Class in monq.net
-
- DfaRunService(DfaRun, PrintStream) - Constructor for class monq.net.DfaRunService
-
creates a Runnable
which will run r
as
a filter which sends its output to out
.
- DictFilter - Class in monq.programs
-
(Command Line Program) is a class to create a text markup filter
from a long list of term/ID or regex/ID mappings.
- DictFilter(Reader, String, String, boolean) - Constructor for class monq.programs.DictFilter
-
- DictFilter(Reader, String, String, boolean, boolean, boolean) - Constructor for class monq.programs.DictFilter
-
creates a DictFilter
from the given
Reader
which must comply to the format
described above.
- Digit - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML Digit.
- DistFilter - Class in monq.programs
-
- DistFilter() - Constructor for class monq.programs.DistFilter
-
- DistPipeFilter - Class in monq.net
-
is a communication endpoint for a distributed pipe of
(text) filters.
- DistPipeFilter(int, int, PrintStream) - Constructor for class monq.net.DistPipeFilter
-
creates a DistPipeFilter
on the given
port.
- DistPipeFilter(int, int) - Constructor for class monq.net.DistPipeFilter
-
- done() - Method in class monq.stuff.Exec
-
starts feeding the process by calling
Exec.run()
, waits for it
to finish and then returns
Exec.ok()
.
- drain(CharSource, int) - Method in class monq.jfa.TextStore
-
- Drainer - Interface in monq.stuff
-
- Drop - Class in monq.jfa.actions
-
implements an
FaAction
which drops (deletes) matched
input.
- Drop(int) - Constructor for class monq.jfa.actions.Drop
-
use only if
Drop.DROP
is not what you want because you
have to specify a priority.
- DROP - Static variable in class monq.jfa.actions.Drop
-
a predefined
FaAction
with priority 0 which drops
(deletes) matched text such that nothing is transfered to the
output.
- drop() - Method in class monq.jfa.actions.Hold
-
create an
FaAction
which drops (deletes) the
output
held back by this object.
- DROP - Static variable in class monq.jfa.actions.Unmatched
-
- dup() - Method in interface monq.jfa.NfaParserView
-
creates a copy of the top stack element and pushes it
- EAMBIGUOUS - Static variable in exception monq.jfa.CompileDfaException
-
- EATDIGIT - Static variable in exception monq.jfa.ReSyntaxException
-
- EATMISSAT - Static variable in exception monq.jfa.ReSyntaxException
-
- EATRANGE - Static variable in exception monq.jfa.ReSyntaxException
-
- EBSATEOF - Static variable in exception monq.jfa.ReSyntaxException
-
- ECHARUNEX - Static variable in exception monq.jfa.ReSyntaxException
-
- ECLOSINGP - Static variable in exception monq.jfa.ReSyntaxException
-
- EEMPTY - Static variable in exception monq.jfa.ReSyntaxException
-
- EEOFUNEX - Static variable in exception monq.jfa.ReSyntaxException
-
- EEPSMATCHER - Static variable in class monq.jfa.DfaRun
-
is the error text used in a IllegalArgumentException
if a DfaRun
shall be created with a
Dfa
that matches the empty string.
- EEXTRACHAR - Static variable in exception monq.jfa.ReSyntaxException
-
- EFORMAT - Static variable in exception monq.jfa.ReSyntaxException
-
- EINVALUL - Static variable in exception monq.jfa.ReSyntaxException
-
- EINVRANGE - Static variable in exception monq.jfa.ReSyntaxException
-
- elsedo(FaAction) - Method in class monq.jfa.ctx.IfContext
-
define the action to call when this object's invoke
method is called in a context for which no client action is
registered.
- Embed - Class in monq.jfa.actions
-
implements an
FaAction
which embeds the matched input
into two fixed strings.
- Embed(String, String, int) - Constructor for class monq.jfa.actions.Embed
-
creates an
FaAction
with the given priority which
embeds the matched text into the given strings.
- Embed(String, String) - Constructor for class monq.jfa.actions.Embed
-
calls the 3 parameter constructor with
priority==0
.
- EMISSINGCURLYCLOSE - Static variable in exception monq.jfa.ReSyntaxException
-
- EmptyCharSource - Class in monq.jfa
-
represents a minimal implementation of the
CharSource
interface mainly providing the ability to push characters back into
the stream for later reading.
- EmptyCharSource() - Constructor for class monq.jfa.EmptyCharSource
-
- EmptyCharSource(int) - Constructor for class monq.jfa.EmptyCharSource
-
- EmptyElemTag(String) - Static method in class monq.jfa.Xml
-
returns a string matching an empty element XML tag the name of
which matches the given regular expression.
- EmptyElemTag() - Static method in class monq.jfa.Xml
-
returns a regular expression matching any empty element.
- emsg - Variable in exception monq.jfa.ReSyntaxException
-
- EncName - Static variable in class monq.jfa.Xml
-
a regular expression matching an encoding name.
- encode(StringBuilder, int) - Method in class monq.jfa.xml.StdCharEntities
-
- encode(StringBuilder, ByteBuffer) - Method in class monq.stuff.Coder
-
encode the contends of a StringBuilder
into a
ByteBuffer
.
- EncodingDetector - Class in monq.stuff
-
provides static methods to guess the character encoding used in an
InputStream
supposedly containing XML or HTML.
- ENOHEX - Static variable in exception monq.jfa.ReSyntaxException
-
- EntityRef - Static variable in class monq.jfa.Xml
-
a regular expresion matching an XML EntityRef.
- EnumOption - Class in monq.clifj
-
is a command line option with String
valued arguments
from a small set of given strings.
- EnumOption(String, String, String, int, int, String, String[]) - Constructor for class monq.clifj.EnumOption
-
creates an option which accepts string values from small
enumerated set of values.
- EnumOption(String, String, String, int, int, String) - Constructor for class monq.clifj.EnumOption
-
- EOF - Static variable in class monq.jfa.DfaRun
-
- EPSILON - Static variable in class monq.jfa.Nfa
-
- Eq - Static variable in class monq.jfa.Xml
-
defines the equation sign surrouned by optional space used to
separate attributes from their values.
- equals(Object) - Method in class monq.jfa.actions.Call
-
returns true
if and only if _o
is a
Call
object and invokes the same method name.
- equals(Object) - Method in class monq.jfa.actions.Embed
-
- equals(Object) - Method in class monq.jfa.actions.Replace
-
- escape(String) - Method in class monq.jfa.Nfa
-
escapes special characters in s
according to the
rules of the current ReParser
set for
this
.
- escape(StringBuilder, CharSequence, int) - Method in class monq.jfa.Nfa
-
is only a pass-through to
getReParser().escape(...)
- escape(StringBuilder, CharSequence, int) - Method in class monq.jfa.ReClassicParser
-
- escape(StringBuilder, CharSequence, int) - Method in interface monq.jfa.ReParser
-
starting with the character at startAt
the given
CharSequence
is copied to out
while all
characters with special meaning for this parser are suitably
escaped.
- ETag(String) - Static method in class monq.jfa.Xml
-
returns a string matching an XML end tag the name of which
matches the given regular expression.
- ETag() - Static method in class monq.jfa.Xml
-
returns a regular expression which matches any end tag.
- ETOLESSFROM - Static variable in exception monq.jfa.ReSyntaxException
-
- ETOOMANYREPORTING - Static variable in exception monq.jfa.ReSyntaxException
-
- Exec - Class in monq.stuff
-
encapsulates a java.lang.Process
object, feeds it with
input and collects the output.
- Exec(Process, InputStream, OutputStream, OutputStream) - Constructor for class monq.stuff.Exec
-
creates an execution environment which feeds the given process
input, collects its output and registers the exit code.
- Exec(Process) - Constructor for class monq.stuff.Exec
-
creates an execution environment for the running process
p
which immediately closes its standard input and
collects standard output and standard error output
internally.
- EXPIRED - Static variable in exception monq.jfa.UnavailablePositionException
-
- Extender - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML Extender.
- FaAction - Interface in monq.jfa
-
describes the interface to objects implementing actions associated
with stop states of a finite automaton.
- factory - Static variable in class monq.jfa.ReClassicParser
-
is a factory object that creates instances of
ReClassicParser
.
- Fail - Class in monq.jfa.actions
-
- Fail(String) - Constructor for class monq.jfa.actions.Fail
-
create an action which fails with the given message.
- FaToDot - Class in monq.jfa
-
contains a static function to output a finite automaton as a graph
to be printed by the fine
dot
utility.
- Feeder - Interface in monq.stuff
-
Implementations of
Feeder
start feeding data
to the
OutputStream
passed to
setOut()
as soon as their
Runnable.run()
method is
called.
- FETCH - Static variable in class monq.jfa.RegexpSplitter
-
constructor parameter to fetch parts defined by a regular
expression.
- filter(StringBuilder) - Method in class monq.jfa.DfaRun
-
reads and filters input, copying it to the output
until EOF is hit.
- filter(PrintStream) - Method in class monq.jfa.DfaRun
-
reads and filters input, copying it to the output
until EOF is hit.
- filter(String) - Method in class monq.jfa.DfaRun
-
reads and filters the given input and returns the filtered
result.
- filter() - Method in class monq.jfa.DfaRun
-
run the machine until EOF is hit.
- FilterServiceFactory - Class in monq.net
-
sets up a filter service as returned by any
ServiceFactory
as an element of a
distributed pipe.
- FilterServiceFactory(ServiceFactory) - Constructor for class monq.net.FilterServiceFactory
-
create a filter service factory to connect services created by
clientFactory
to an upstream server.
- FilterSvrInfo - Class in monq.net
-
describes a filter server running somewhere on the
network.
- FilterSvrInfo(String, String, String, int) - Constructor for class monq.net.FilterSvrInfo
-
- find(CharSequence, int) - Method in class monq.jfa.Regexp
-
tries to find this
in s
starting at
position start
.
- find(CharSequence) - Method in class monq.jfa.Regexp
-
tries to find this
in s
.
- find(CharSequence, CharSequence, int) - Static method in class monq.jfa.Regexp
-
tries to find regexp
in s
starting at
position start
.
- finished() - Method in class monq.stuff.Exec
-
asynchronuously tests if the process finished in the meantime.
- FixedString(StringBuilder) - Constructor for class monq.jfa.SimpleFormatters.FixedString
-
creates a
Formatter
to append the content of
the
other
when its
format
method is
called.
- format(StringBuilder, TextStore, Map<Object, Object>) - Method in interface monq.jfa.Formatter
-
arranges (some of) the pieces of text found in st
or m
in an implementation dependend manner and
appends them to out
.
- format(StringBuilder, TextStore, Map<Object, Object>) - Method in class monq.jfa.PrintfFormatter
-
- format(StringBuilder, TextStore, Map<Object, Object>) - Method in class monq.jfa.SimpleFormatters.FixedString
-
- format(StringBuilder, TextStore, Map<Object, Object>) - Method in class monq.jfa.SimpleFormatters.GetVar
-
- format(StringBuilder, TextStore, Map<Object, Object>) - Method in class monq.jfa.SimpleFormatters.Part
-
- format(StringBuilder, TextStore, Map<Object, Object>) - Method in class monq.jfa.SimpleFormatters.PartLen
-
- format(StringBuilder, TextStore, Map<Object, Object>) - Method in class monq.jfa.SimpleFormatters.PartSeq
-
- Formatter - Interface in monq.jfa
-
defines the interface to classes which rearrange text parts stored
in a
TextStore
and/or in a
java.util.Map
append them to a
StringBuilder
.
- from(Properties) - Static method in class monq.net.FilterSvrInfo
-
reads the configuration file and returns a
FilterSvrInfo
object.
- fromFile(String) - Static method in class monq.net.FilterSvrInfo
-
calls
read()
and stores any exception thrown in
the object returned.
- ge(int) - Method in class monq.jfa.actions.Count
-
returns a
Verifier
which returns
true
if
the counter is greater than or equal to the given
threshold.
- getAt(int) - Method in class monq.jfa.Intervals
-
- getDefaultParserFactory() - Static method in class monq.jfa.Nfa
-
returns the default parser factory used by
Nfa
s
to obtain a default
ReParser
.
- getDfa() - Method in class monq.jfa.DfaRun
-
returns the
Dfa
operated by
this
.
- getDfa() - Method in class monq.jfa.Regexp
-
- getDfa() - Method in class monq.programs.DictFilter
-
returns the dictionary DFA.
- getEnd(int) - Method in class monq.jfa.TextStore
-
- getErrorText() - Method in class monq.stuff.Exec
-
if no explicit output sink was specified in the constructor, this
method returns the output collected from the process.
- getETagName(StringBuilder, int) - Static method in class monq.jfa.Xml
-
return the name of an end tag.
- getException() - Method in class monq.net.DfaRunService
-
- getException() - Method in interface monq.net.Service
-
objects implementing this interface should return any exception
worth reporting that happened during run()
.
- getException() - Method in class monq.stuff.AbstractPipe
-
- getException() - Method in class monq.stuff.Exec
-
returns whatever
Exception
happened in one of the
Pipe
threads used to copy data to the process or read
output or error from the process.
- getException() - Method in interface monq.stuff.Plumbable
-
returns an exception which happend in the
run()
-method, if any.
- getFailedMatchBehaviour() - Method in class monq.jfa.DfaRun
-
returns the currently active behaviour for unmatched
input.
- getFirstAt(int) - Method in class monq.jfa.Intervals
-
- getHost() - Method in class monq.net.PipelineRequest
-
returns the hostname to contact as it was specified in the
constructor.
- getId(int) - Method in class monq.jfa.TextStore
-
retrieves the small integer value which can be associated with
a part.
- getIn() - Method in class monq.jfa.DfaRun
-
returns the currently active input source.
- getIn() - Method in class monq.stuff.Pipe
-
returns the current input stream the pipe is reading.
- getLastAt(int) - Method in class monq.jfa.Intervals
-
- getLongValue(String) - Method in class monq.clifj.Commandline
-
- getLongValues(String) - Method in class monq.clifj.Commandline
-
- getMap() - Method in interface monq.jfa.actions.MapProvider
-
return the java.util.Map
provided by this object.
- getMemoryForSpeedTradeFactor() - Method in class monq.jfa.Nfa
-
- getMethodName() - Method in class monq.jfa.actions.Call
-
returns the method name specified in the constructor.
- getName() - Method in class monq.jfa.ctx.Context
-
returns the name of this Context
.
- getName() - Method in class monq.net.PipelineRequest
-
retuns the name as set with in the constructor or the
string getHost()+":"+getPort()
.
- getNumParts() - Method in class monq.jfa.TextStore
-
returns the number of currently stored parts.
- getOut() - Method in class monq.stuff.Pipe
-
returns the current output stream the pipe is writing to.
- getOutputText() - Method in class monq.stuff.Exec
-
if no explicit error output sink was specified in the
constructor, this method returns the error text collected from
the process.
- getPart(StringBuilder, int) - Method in class monq.jfa.TextStore
-
appends the requested part to the given
StringBuilder
.
- getPart(int) - Method in class monq.jfa.TextStore
-
returns the requested part.
- getPart(StringBuilder, int, int, int) - Method in class monq.jfa.TextStore
-
appends a substring of the requested part to the given
StringBuilder
.
- getPart(int, int, int) - Method in class monq.jfa.TextStore
-
returns a substring of the requested part.
- getPartLen(int) - Method in class monq.jfa.TextStore
-
returns the length of the requested part.
- getPort() - Method in class monq.net.PipelineRequest
-
returns the port to contact as it was specified in the
constructor.
- getReParser() - Method in class monq.jfa.Nfa
-
returns the regular expression parser currently used by this
Nfa
.
- getRequest() - Method in class monq.net.FilterSvrInfo
-
returns a copy of the request object to contact this server.
- getStack() - Method in interface monq.jfa.ctx.ContextStackProvider
-
returns the List
provided as a stack.
- getStart(DfaRun) - Method in class monq.jfa.actions.Hold
-
returns the position this object current refers to as the start
position where data is being hold back.
- getStart(int) - Method in class monq.jfa.TextStore
-
- getStatistics(Nfa, Writer) - Static method in class monq.jfa.Statistics
-
compute statistical data for a
Nfa
.
- getStatistics(Dfa, Writer) - Static method in class monq.jfa.Statistics
-
- getStringValue(String) - Method in class monq.clifj.Commandline
-
- getStringValues(String) - Method in class monq.clifj.Commandline
-
- getTypeName() - Method in class monq.clifj.BooleanOption
-
- getTypeName() - Method in class monq.clifj.LongOption
-
- getValue(String) - Method in class monq.clifj.Commandline
-
returns the first element of the vector returned by
getValues
.
- getValue() - Method in class monq.clifj.Option
-
returns the first element of the vector returned by
getValues
.
- getValue(DfaRun) - Method in class monq.jfa.actions.Count
-
given the DfaRun
which has just the right
MapProvider
in its clientData
field,
this returns the current counter value.
- getValues(String) - Method in class monq.clifj.Commandline
-
returns the arguments found on the command line or set as a
default for this option.
- getValues() - Method in class monq.clifj.Option
-
returns the arguments found on the command line or set as a
default for this option.
- GetVar(String) - Constructor for class monq.jfa.SimpleFormatters.GetVar
-
sets up a formatter that inserts
retrieves key
from the Map
passed to
format()
and appends the result to the output.
- GoofedElement(String) - Static method in class monq.jfa.Xml
-
creates a regular expression to match a whole XML element
including the start tag with its optional attributes, the content
and the end tag.
- Grep - Class in monq.programs
-
is a class and a command line program to copy input to output
depending on matching regular expressions.
- Grep(boolean, boolean, String[]) - Constructor for class monq.programs.Grep
-
create a Grep
without ROI.
- Grep(String, String, String, String, DfaRun.FailedMatchBehaviour, boolean, boolean, boolean, String[]) - Constructor for class monq.programs.Grep
-
create a Grep
with ROI.
- main(String[]) - Static method in class monq.ie.Term2Re
-
applies
Term2Re.convert
to every line read from
System.in
and writes the result to
System.out
.
- main(String[]) - Static method in class monq.jfa.FaToDot
-
each command line argument is taken to be a regular expression
which is added to a
Nfa
with a unique action.
- main(String[]) - Static method in class monq.programs.DictFilter
-
run on the commandline with -h
to get a description.
- main(String[]) - Static method in class monq.programs.DistFilter
-
- main(String[]) - Static method in class monq.programs.Grep
-
call with command line option "-h"
for a short
summary of operation.
- MapProvider - Interface in monq.jfa.actions
-
Objects implementing this interface are needed by some
FaAction
callbacks to perform their task.
- markAsSub() - Method in class monq.jfa.Nfa
-
marks this automaton as a reporting subautomaton.
- markAsSub() - Method in interface monq.jfa.NfaParserView
-
performs the equivalent of
Nfa.markAsSub()
on the top
element of the expression stack.
- match(CharSource, StringBuilder, TextStore) - Method in class monq.jfa.Dfa
-
determine a matching prefix of in
and deliver
respective data.
- matches(CharSequence, int) - Method in class monq.jfa.Regexp
-
checks if the whole input sequence starting at position
pos
can be matched.
- matches(CharSequence) - Method in class monq.jfa.Regexp
-
checks if the whole input sequence can be matched.
- matches(CharSequence, CharSequence, int) - Static method in class monq.jfa.Regexp
-
checks if the complete tail of s
starting at
start
matches regexp
.
- matchesEmpty() - Method in class monq.jfa.Dfa
-
returns true
if this automaton can match the empty
string.
- matchMax - Variable in class monq.jfa.Dfa
-
maximum length a match can have.
- matchStart() - Method in class monq.jfa.DfaRun
-
- maxCopy - Variable in class monq.jfa.DfaRun
-
defines the maximum number of unmatched characters handled in
one chunk when the machinery is operating in
DfaRun.UNMATCHED_COPY
mode.
- MEM_ARRAY_OVERHEAD - Static variable in class monq.stuff.Sizeof
-
- MEM_CHAR_INARRAY - Static variable in class monq.stuff.Sizeof
-
- MEM_OBJ_OVERHEAD - Static variable in class monq.stuff.Sizeof
-
- MEM_PTR_SIZE - Static variable in class monq.stuff.Sizeof
-
- mergeWith(FaAction) - Method in class monq.jfa.AbstractFaAction
-
- mergeWith(FaAction) - Method in class monq.jfa.actions.DefaultAction
-
always returns other
.
- mergeWith(FaAction) - Method in class monq.jfa.ctx.IfContext
-
- mergeWith(FaAction) - Method in interface monq.jfa.FaAction
-
- Misc - Class in monq.jfa
-
Miscellaneous static functions.
- monq.clifj - package monq.clifj
-
implements a command line parser for java programs far
superiour to getopt
style command line processing,
because consistent usage information is maintainted.
- monq.ie - package monq.ie
-
functionality specifically targeting natural language processing.
- monq.jfa - package monq.jfa
-
Implements Finite Automata, deterministic and
nondeterministic, with an engine for high throughput filtering of
text.
- monq.jfa.actions - package monq.jfa.actions
-
contains general purpose classes to be used as callbacks in
finite automata created with package
monq.jfa
.
- monq.jfa.ctx - package monq.jfa.ctx
-
adds support for recursive parsing to jfa that in particular
allows easy XML parsing as an alternative to SAX.
- monq.jfa.xml - package monq.jfa.xml
-
classes in addition to the main
Xml
which help to
work with XML.
- monq.net - package monq.net
-
Simple tcp server and clients.
- monq.programs - package monq.programs
-
a collection of command line programs.
- monq.stuff - package monq.stuff
-
contains assorted stuff which does not fit anywhere else.
- Pair() - Constructor for class monq.stuff.Sizeof.Pair
-
- parse(String[]) - Method in class monq.clifj.Commandline
-
parses the given command line.
- parse(NfaParserView, CharSequence) - Method in class monq.jfa.ReClassicParser
-
- parse(NfaParserView, CharSequence) - Method in interface monq.jfa.ReParser
-
parses regex
while building up the automaton in
nfa
.
- Part(int, int, int) - Constructor for class monq.jfa.SimpleFormatters.Part
-
- PartLen(int) - Constructor for class monq.jfa.SimpleFormatters.PartLen
-
- PartSeq(int, int, String, int, int) - Constructor for class monq.jfa.SimpleFormatters.PartSeq
-
the parameters define the range of parts to be concatenated
by the format
method.
- PartSeq(int, int) - Constructor for class monq.jfa.SimpleFormatters.PartSeq
-
- PI - Static variable in class monq.jfa.Xml
-
a regular expression matching a processing instruction.
- Pipe - Class in monq.stuff
-
implements a threadable pipe.
- Pipe(int) - Constructor for class monq.stuff.Pipe
-
constructs a Pipe
with no input or output yet
specified.
- Pipe(InputStream, OutputStream, boolean, int) - Constructor for class monq.stuff.Pipe
-
creates a Pipe
which connects an
InputStream
with an OutputStream
.
- PipelineRequest - Class in monq.net
-
- PipelineRequest(String, String, int) - Constructor for class monq.net.PipelineRequest
-
creates a PipelineRequest
to contact the given host
on the given port.
- PipelineRequest(String, int) - Constructor for class monq.net.PipelineRequest
-
calls the three parameter constructor with
name=null
.
- PipelineRequest(PipelineRequest) - Constructor for class monq.net.PipelineRequest
-
returns copy of the given PipelineRequest
.
- PlainSet<E> - Class in monq.jfa
-
an implementation of Set
based on a simple hashing
scheme.
- PlainSet() - Constructor for class monq.jfa.PlainSet
-
- PlainSet(Collection<E>) - Constructor for class monq.jfa.PlainSet
-
- PlainSet(int) - Constructor for class monq.jfa.PlainSet
-
- Plumbable - Interface in monq.stuff
-
is an interface for a Runnable
which wants to have
set an input stream to read from and/or an output stream to write to
before it is run.
- plus() - Method in class monq.jfa.Nfa
-
applies the +
operator to the NFA.
- plus() - Method in interface monq.jfa.NfaParserView
-
performs the equivalent of
Nfa.plus()
on the top
element of the expression stack.
- pop(List<Object>) - Static method in class monq.jfa.ctx.ContextManager
-
- pop(StringBuilder) - Method in class monq.jfa.EmptyCharSource
-
- pop(StringBuilder, int) - Method in class monq.jfa.EmptyCharSource
-
- port - Variable in class monq.net.FilterSvrInfo
-
port number on which the server is listening
- position(int) - Method in class monq.jfa.ByteCharSource
-
returns the byte position counted from the start of the input
stream for the character referenced by
charNo
.
- print(PrintStream, FaState, FaState) - Static method in class monq.jfa.FaToDot
-
prints a finite automaton in a format suitable for
dot
.
- print(PrintWriter) - Method in class monq.jfa.Statistics
-
dumps the object's contents.
- printable(char) - Static method in class monq.jfa.FaToDot
-
- printable(char) - Static method in class monq.jfa.Misc
-
converts a character into something which can be printed on the
console
- printable(StringBuilder, char) - Static method in class monq.jfa.Misc
-
- printable(CharSequence) - Static method in class monq.jfa.Misc
-
- Printf - Class in monq.jfa.actions
-
- Printf(TextSplitter, Formatter, int) - Constructor for class monq.jfa.actions.Printf
-
creates an
FaAction
to format the matching text
according to a
Formatter
.
- Printf(boolean, String) - Constructor for class monq.jfa.actions.Printf
-
create an FaAction
to format a match according to
the given format string.
- Printf(String) - Constructor for class monq.jfa.actions.Printf
-
creates an FaAction
to format a match according to
the given format string.
- PrintfFormatter - Class in monq.jfa
-
implements a
Formatter
which uses a format string to
print parts from a
TextStore
into a
StringBuilder
.
- PrintfFormatter(CharSequence) - Constructor for class monq.jfa.PrintfFormatter
-
- PrintfFormatter(CharSequence, int) - Constructor for class monq.jfa.PrintfFormatter
-
- printTypes(PrintStream, Map<Class<?>, Map<Class<?>, Sizeof.Pair>>) - Static method in class monq.stuff.Sizeof
-
prints the result produced with
sizeof()
.
- ProgramName - Variable in class monq.clifj.Commandline
-
- pushBack(StringBuilder, int) - Method in class monq.jfa.ByteCharSource
-
- pushBack(StringBuilder, int) - Method in interface monq.jfa.CharSource
-
moves the tail of buf
starting with character
index startAt
back onto the character source while
deleting them from the given StringBuilder
.
- pushBack(StringBuilder, int) - Method in class monq.jfa.EmptyCharSource
-
- pushCharSet(CharSequence, boolean) - Method in interface monq.jfa.NfaParserView
-
pushes an automaton representation on the expression stack that
recognizes a string of length 1 made up of one character from a
character set.
- pushDot() - Method in interface monq.jfa.NfaParserView
-
- pushString(CharSequence) - Method in interface monq.jfa.NfaParserView
-
pushes an automaton representation on the expression stack that
recognizes exactly the given character sequence.
- put(String, String) - Method in class monq.net.PipelineRequest
-
add a parameter to this request.
- putParams(Map<String, String>) - Method in class monq.net.PipelineRequest
-
puts all key/value pairs that were stored via
put()
into
params
.
- RE_SEP_WORD - Static variable in class monq.ie.Term2Re
-
- RE_SPLIT_WORD - Static variable in class monq.ie.Term2Re
-
- RE_TRAIL_CONTEXT - Static variable in class monq.ie.Term2Re
-
- read() - Method in class monq.jfa.ByteCharSource
-
- read() - Method in class monq.jfa.CharSequenceCharSource
-
- read() - Method in interface monq.jfa.CharSource
-
returns a single character or -1 to indicate end of file.
- read(StringBuilder) - Method in class monq.jfa.DfaRun
-
delivers filtered data in naturally occuring chunks by
appending to out
.
- read(StringBuilder, int) - Method in class monq.jfa.DfaRun
-
reads and filters input until out
is grown by
count
characters.
- read() - Method in class monq.jfa.DfaRun
-
reads and filters input until at least one character is available
or EOF is hit.
- read() - Method in class monq.jfa.EmptyCharSource
-
- read() - Method in class monq.jfa.ReaderCharSource
-
- readAll(String) - Static method in class monq.net.FilterSvrInfo
-
assumes that all files with suffix ".svr"
in the
given directory are configuration files.
- ReaderCharSource - Class in monq.jfa
-
wraps Reader or an input stream into a CharSource.
- ReaderCharSource() - Constructor for class monq.jfa.ReaderCharSource
-
make sure to call
setSource()
before using
this object.
- ReaderCharSource(Reader) - Constructor for class monq.jfa.ReaderCharSource
-
- ReaderCharSource(InputStream, String) - Constructor for class monq.jfa.ReaderCharSource
-
wraps the InputStream
into a Reader
,
using an encoding for the given character set.
- ReaderCharSource(InputStream) - Constructor for class monq.jfa.ReaderCharSource
-
- ReaderFeeder - Class in monq.stuff
-
implements a
Feeder
that feeds data read from a
Reader
to the output specified by
setOut()
.
- ReaderFeeder(Reader, String, int) - Constructor for class monq.stuff.ReaderFeeder
-
creates the Feeder
to feed in
to an
OutputStream
while encoding characters with the
character set given by csname
.
- ReClassicParser - Class in monq.jfa
-
- Reference - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML Reference.
- Regexp - Class in monq.jfa
-
convenience class for matching regular expressions.
- Regexp(CharSequence) - Constructor for class monq.jfa.Regexp
-
create a Regexp
object for the given regular
expression.
- RegexpSplitter - Class in monq.jfa
-
implements a
TextSplitter
to split text according to a
regular expression.
- RegexpSplitter(CharSequence, int) - Constructor for class monq.jfa.RegexpSplitter
-
creates a
TextSplitter
to split text according the
given regular expression
re
.
- release(int) - Method in class monq.stuff.Semaphore
-
releases the given slot and thereby allows other threads to
acquire it.
- remove(Object) - Method in class monq.jfa.PlainSet
-
- reParser - Static variable in class monq.ie.Term2Re
-
- ReParser - Interface in monq.jfa
-
defines the interface needed by an
Nfa
to "fill" itself
with a regular expression.
- ReParserFactory - Interface in monq.jfa
-
defines the factory interface to create instances of
ReParser
.
- Replace - Class in monq.jfa.actions
-
implements an
FaAction
which replaces the matched input
with a fixed string.
- Replace(String) - Constructor for class monq.jfa.actions.Replace
-
calls the 2 parameter constructor with
priority==0
.
- Replace(String, int) - Constructor for class monq.jfa.actions.Replace
-
creates an
FaAction
with the given priority which
replaces the matched text with the string given.
- required() - Method in class monq.clifj.Option
-
converts the option into a required command line argument and
Commandline.parse()
will check this.
- reset() - Method in class monq.jfa.actions.Count
-
returns an
FaAction
which resets the counter to
zero.
- reset() - Method in class monq.jfa.Intervals
-
reset to the state of a freshly constructed object.
- resetStats() - Static method in class monq.jfa.Intervals
-
- resize(int[], int) - Static method in class monq.stuff.ArrayUtil
-
allocates a new array with the given newSize
and
copies the content of old
into the new array up to
the maximum of newSize
or
old.length
.
- resize(char[], int) - Static method in class monq.stuff.ArrayUtil
-
- resize(byte[], int) - Static method in class monq.stuff.ArrayUtil
-
- resize(Object[], int) - Static method in class monq.stuff.ArrayUtil
-
- ReSyntaxException - Exception in monq.jfa
-
is thrown whenever a syntax error is found in a regular
expression.
- ReSyntaxException(String, String, int, int) - Constructor for exception monq.jfa.ReSyntaxException
-
- roundUp(int) - Static method in class monq.stuff.Sizeof
-
- Run - Class in monq.jfa.actions
-
runs several FaAction
objects, one after another.
- Run(FaAction) - Constructor for class monq.jfa.actions.Run
-
- Run(FaAction, FaAction) - Constructor for class monq.jfa.actions.Run
-
- Run(FaAction, FaAction, FaAction) - Constructor for class monq.jfa.actions.Run
-
- Run(FaAction, FaAction, FaAction, FaAction) - Constructor for class monq.jfa.actions.Run
-
- run() - Method in class monq.net.DfaRunService
-
- run() - Method in class monq.net.TcpServer
-
- run() - Method in class monq.stuff.AbstractPipe
-
calls
AbstractPipe.pipe()
, handles exceptions and closes input and
output streams where necessary and requested.
- run() - Method in class monq.stuff.ConvinceGC
-
is only public to satisfy the Runnable
interface,
so rather wrap an object of this class in a Thread
and call its start()
method.
- run() - Method in class monq.stuff.Exec
-
feeds the process with input and collects the output according to
the information given in the constructor.
- S - Static variable in class monq.jfa.Xml
-
a regular expression matching an XML S, which is white space.
- SearchReplace - Class in monq.jfa.actions
-
implements an
FaAction
which scans the matched text for a
given regular expression and replaces those matches by applying a
PrintfFormatter
.
- SearchReplace(String, TextSplitter, Formatter, int) - Constructor for class monq.jfa.actions.SearchReplace
-
creates an action to search and replace within a match.
- SearchReplace(String, String) - Constructor for class monq.jfa.actions.SearchReplace
-
calls the four parameter constructor with sp=null
and
count==-1
.
- SearchReplace(String, String, int) - Constructor for class monq.jfa.actions.SearchReplace
-
calls the four parameter constructor with
sp==null
.
- Semaphore - Class in monq.stuff
-
implements multi-slot semaphore.
- Semaphore(int) - Constructor for class monq.stuff.Semaphore
-
creates a semaphore with the given number of slots.
- SEP - Static variable in class monq.jfa.RegexpSplitter
-
constructor parameter to separate text according to a regular
expression into matching and non-matching parts.
- seq(CharSequence, FaAction) - Method in class monq.jfa.Nfa
-
extend the current automaton to recognize regex
as a suffix of the strings already recognized and arrange for the
given action to be called if the suffix was recognized.
- seq(CharSequence) - Method in class monq.jfa.Nfa
-
- seq(Nfa) - Method in class monq.jfa.Nfa
-
Concatenates other
to this
such that a
sequence of characters vw is matched where v is
matched by this
and w is matched by
other
.
- seq() - Method in interface monq.jfa.NfaParserView
-
performs the equivalent of
Nfa.seq(Nfa)
on the two top
elements on the expression stack.
- serve() - Method in class monq.net.TcpServer
-
starts the server, waiting for connections and serving up to
n requests in parallel.
- Service - Interface in monq.net
-
is a
Runnable
that catches and stores exceptions
thrown in its
run()
method such that
Service.getException()
can return it.
- ServiceCreateException - Exception in monq.net
-
thrown if something goes wrong when creating a service.
- ServiceCreateException(String) - Constructor for exception monq.net.ServiceCreateException
-
- ServiceCreateException(Exception) - Constructor for exception monq.net.ServiceCreateException
-
- ServiceCreateException(String, Exception) - Constructor for exception monq.net.ServiceCreateException
-
- ServiceFactory - Interface in monq.net
-
an implementation of this interface is used by a
TcpServer
to fetch a fresh
Service
for each incoming
connection.
- ServiceUnavailException - Exception in monq.net
-
thrown if something goes wrong when creating a service because the
service is currently unavailable, but is expected to work again in
further requests.
- ServiceUnavailException(String, Exception) - Constructor for exception monq.net.ServiceUnavailException
-
- ServiceUnavailException(String) - Constructor for exception monq.net.ServiceUnavailException
-
- setAt(int, D) - Method in class monq.jfa.Intervals
-
- setDebug() - Method in class monq.net.TcpServer
-
given that logging was enabled with
setLogging()
, we now switch to really verbose logging.
- setDecoder(CharsetDecoder) - Method in class monq.jfa.ByteCharSource
-
set the decoder to be used to decode the incoming bytes into
char
.
- setDecoder(CharsetDecoder) - Method in class monq.stuff.Coder
-
sets the decoder to use.
- setDefault(String[]) - Method in class monq.clifj.Option
-
defines default values for this Option
.
- setDefaultAction(FaAction) - Method in class monq.jfa.ctx.ContextManager
-
- setDefaultEndAction(FaAction) - Method in class monq.jfa.ctx.ContextManager
-
defines the default action to be applied to the text matching
a context end.
- setDefaultFMB(DfaRun.FailedMatchBehaviour) - Method in class monq.jfa.ctx.ContextManager
-
defines the default behaviour into which the
DfaRun
is switched, when a context is entered.
- setDefaultParserFactory(ReParserFactory) - Static method in class monq.jfa.Nfa
-
sets the default parser factory used by Nfa
s to
obtain a default ReParser
.
- setDefaultStartAction(FaAction) - Method in class monq.jfa.ctx.ContextManager
-
defines the default action to be applied to the text matching
a context start.
- setDfa(Dfa) - Method in class monq.jfa.actions.SwitchDfa
-
sets the Dfa
this action switches the calling
DfaRun
to.
- setDfa(Dfa) - Method in class monq.jfa.DfaRun
-
- setEncoder(CharsetEncoder, int) - Method in class monq.stuff.Coder
-
sets the encoder to use and requests to use a character buffer
size of at least chBsize
internally.
- setEndAction(FaAction) - Method in class monq.jfa.ctx.Context
-
specifies the action which takes
care of the text marking the end of the context.
- setFMB(DfaRun.FailedMatchBehaviour) - Method in class monq.jfa.ctx.Context
-
specifies how the
DfaRun
should handle
non-matching text within the context.
- setFrom(CharTrans) - Method in class monq.jfa.IntervalsFaState
-
- setIn(CharSource) - Method in class monq.jfa.DfaRun
-
changes the input source.
- setIn(InputStream, boolean) - Method in class monq.stuff.AbstractPipe
-
- setIn(InputStream, boolean) - Method in interface monq.stuff.Drainer
-
specifies the InputStream
where to fetch the
data in the run()
method.
- setIn(InputStream, boolean) - Method in interface monq.stuff.Plumbable
-
- setInputBufferSize(int) - Method in class monq.jfa.ByteCharSource
-
set the size of the input buffer.
- setInputEncoding(String) - Method in class monq.programs.DictFilter
-
- setLength(int) - Method in class monq.jfa.TextStore
-
- setLogging(PrintStream) - Method in class monq.net.TcpServer
-
- setLogging(PrintStream) - Method in class monq.stuff.ConvinceGC
-
after every call to gc, report the amount of memory allocated,
used and the resulting percentage of free memory.
- setMemoryForSpeedTradeFactor(float) - Method in class monq.jfa.Nfa
-
when creating DFA transitions during NFA to DFA compilation, the
transition tables use different implementations, depending on how dense
the transition table is.
- setName(String) - Method in class monq.jfa.ctx.Context
-
sets the name of this object, which is currently only used to
have
Context.toString()
return something useful.
- setOnFailedMatch(DfaRun.FailedMatchBehaviour) - Method in class monq.jfa.DfaRun
-
changes the way how unmatched input is handled.
- setOut(OutputStream, boolean) - Method in class monq.stuff.AbstractPipe
-
- setOut(OutputStream, boolean) - Method in class monq.stuff.DfaRunFeeder
-
- setOut(OutputStream, boolean) - Method in interface monq.stuff.Feeder
-
specifies the OutputStream
where to deliver the
data in the run()
method.
- setOut(OutputStream, boolean) - Method in interface monq.stuff.Plumbable
-
- setOut(OutputStream, boolean) - Method in class monq.stuff.ReaderFeeder
-
- setOutputEncoding(String) - Method in class monq.programs.DictFilter
-
- setPart(int, int, int, byte) - Method in class monq.jfa.TextStore
-
defines the given part as the stretch of characters in the stored
text starting at position start
and reaching to the
character just before end
.
- setPart(int, int, int) - Method in class monq.jfa.TextStore
-
- setPopPriority(int) - Method in class monq.jfa.ctx.Context
-
this method is not implemented and will always throw an
exception.
- setPriority(int) - Method in class monq.jfa.AbstractFaAction
-
- setReParser(ReParser) - Method in class monq.jfa.Nfa
-
sets the parser to be used by this Nfa
.
- setSource(ReadableByteChannel) - Method in class monq.jfa.ByteCharSource
-
sets the source to be read by this
.
- setSource(CharSequence) - Method in class monq.jfa.CharSequenceCharSource
-
- setSource(CharSequence, int) - Method in class monq.jfa.CharSequenceCharSource
-
- setSource(CharSequence, int, int) - Method in class monq.jfa.CharSequenceCharSource
-
- setSource(Reader) - Method in class monq.jfa.ReaderCharSource
-
- setSource(DfaRun) - Method in class monq.stuff.DfaRunFeeder
-
specifies the source java.lang.Reader
from which to
fetch the data to feed.
- setSource(Reader) - Method in class monq.stuff.ReaderFeeder
-
specifies the source java.lang.Reader
from which to
fetch the data to feed.
- setStartAction(FaAction) - Method in class monq.jfa.ctx.Context
-
specifies the action which shall take
care of the text marking the start of the context.
- setWindowSize(int) - Method in class monq.jfa.ByteCharSource
-
sets the size of the sliding window which keeps byte
positions for characters recently delivered by
ByteCharSource.read()
.
- ship() - Method in class monq.jfa.actions.Hold
-
create an
FaAction
which ships (delivers) the
output
held back by this object.
- shortest() - Method in class monq.jfa.Nfa
-
transforms the Nfa into an Nfa which only matches the
shortest matches of the given Nfa.
- shortest() - Method in interface monq.jfa.NfaParserView
-
performs the equivalent of
Nfa.shortest()
on the top
element of the expression stack.
- shortestPathlen - Variable in class monq.jfa.Statistics
-
shortest path to a stop state
- showParsed() - Method in class monq.clifj.Commandline
-
- shutdown() - Method in class monq.net.DistPipeFilter
-
shuts down the
TcpServer
running on our behalf.
- shutdown() - Method in class monq.net.TcpServer
-
closes the socket on which the server is accepting connections
with the effect, that
TcpServer.serve()
immediately returns.
- SimpleFormatters - Class in monq.jfa
-
This class is merely a container to wrap some very simple
Formatter
s into one source file.
- SimpleFormatters.FixedString - Class in monq.jfa
-
implements a
Formatter
which totally ignores the given
TextStore
and instead appends a predefined string to the
destination buffer.
- SimpleFormatters.GetVar - Class in monq.jfa
-
implements a
Formatter
the
format
method
of which inserts an element from a
Map
into the
output.
- SimpleFormatters.Part - Class in monq.jfa
-
implements a
Formatter
the
format
method of
which produces a substring of part of the given
TextStore
.
- SimpleFormatters.PartLen - Class in monq.jfa
-
implements a
Formatter
the
format
method of
which produces the length of a given part of the given
TextStore
.
- SimpleFormatters.PartSeq - Class in monq.jfa
-
implements a
Formatter
the
format
method of
which concatenates several parts of the given
TextStore
.
- size() - Method in class monq.jfa.Intervals
-
- size() - Method in class monq.jfa.PlainSet
-
- size - Variable in class monq.stuff.Sizeof.Pair
-
accumulated size of objects counted.
- Sizeof - Class in monq.stuff
-
estimator for the size of data structures.
- sizeof(Object) - Static method in class monq.stuff.Sizeof
-
recursively delves into the object graph o
and
returns a Hashtable
with information about object
sizes and counts.
- Sizeof.Pair - Class in monq.stuff
-
a pair of count and size describing use and size of a data type.
- skip() - Method in class monq.jfa.DfaRun
-
reads one character immediately from the input source and returns
it without filtering.
- specialChars() - Method in class monq.jfa.Nfa
-
is a shortcut for .getReParser().specialChars()
- specialChars() - Method in class monq.jfa.ReClassicParser
-
- specialChars() - Method in interface monq.jfa.ReParser
-
provides all characters that have a special meaning for this
parser
- split(char) - Method in class monq.jfa.Intervals
-
Split whichever interval covers ch at ch and return the position
of the left interval.
- SPLIT - Static variable in class monq.jfa.RegexpSplitter
-
constructor parameter to split text according to a regular
expression.
- split(TextStore, StringBuilder, int) - Method in class monq.jfa.RegexpSplitter
-
- split(TextStore, StringBuilder, int) - Method in interface monq.jfa.TextSplitter
-
separates the stretch of text defined by the suffix of
source
, starting at start
into parts
and stores the parts in dst
.
- splitElement(StringBuilder, int) - Static method in class monq.jfa.Xml
-
- splitElement(Map<String, String>, StringBuilder, int) - Static method in class monq.jfa.Xml
-
splits a start tag, a complete XML element or the
XML declaration
into its parts and fills them
into the given
Map
.
- STag(String) - Static method in class monq.jfa.Xml
-
returns a string matching an XML start tag the name of which
matches the given regular expression.
- STag() - Static method in class monq.jfa.Xml
-
returns a regular expression matching any start tag.
- star() - Method in class monq.jfa.Nfa
-
applies the Kleene closure (*
) operator to the NFA.
- star() - Method in interface monq.jfa.NfaParserView
-
performs the equivalent of
Nfa.star()
on the top
element of the expression stack.
- start() - Method in class monq.net.DistPipeFilter
-
start serving.
- Statistics - Class in monq.jfa
-
computes statistical data about an
Nfa
or
Dfa
.
- stats - Static variable in class monq.jfa.Intervals
-
- StdCharEntities - Class in monq.jfa.xml
-
translates the standard character entities defined in the
XML standard into the characters the represent.
- StdCharEntities() - Constructor for class monq.jfa.xml.StdCharEntities
-
For high throughput non-synchronized use in one thread, get one
instance of this class and reuse it consistently.
- Stop - Class in monq.jfa.actions
-
implements an
FaAction
which resets the input of the
calling
DfaRun
to the empty string by calling
DfaRun.setIn(null)
.
- Stop(int) - Constructor for class monq.jfa.actions.Stop
-
use only if
Stop.STOP
is not what you want, because you
have to specify a priority.
- STOP - Static variable in class monq.jfa.actions.Stop
-
a predefined
FaAction
with priority 0 which
sets the input of the calling
DfaRun
to the empty
string.
- stopStates - Variable in class monq.jfa.Statistics
-
number of stop states found
- Store - Class in monq.jfa.actions
-
an FaAction
to store away the match in a
Map
.
- Store(String) - Constructor for class monq.jfa.actions.Store
-
stores the match with the given
key
in a map
obtained from a
MapProvider
expected to be found in the
DfaRun.clientData
field of the calling
DfaRun
object.
- submatches(StringBuilder, int) - Method in class monq.jfa.DfaRun
-
may be called by a callback to
retrieve see
submatches.
- submatches() - Method in class monq.jfa.Regexp
-
returns a TextStore
which contains submatches, if any,
pertaining to the most recent match.
- swap() - Method in interface monq.jfa.NfaParserView
-
swaps the two top level elements on the expression stack.
- SwitchDfa - Class in monq.jfa.actions
-
- SwitchDfa(FaAction) - Constructor for class monq.jfa.actions.SwitchDfa
-
creates an
FaAction
to switch the calling
DfaRun
object to another
Dfa
.
- SwitchDfa() - Constructor for class monq.jfa.actions.SwitchDfa
-
calls the 1 parameter constructor with
action==null
.
- synopsis - Variable in class monq.net.FilterSvrInfo
-
a one line description of the server function