Does anyone know of an implementation of the titular classes?
Basically, to compile multiple regex patterns into a stream, and then as I
read through the stream, the data should be optimally checked. This is a
classic FSA situation. If a match occurs, I think that I'd like to receive
an exception at that point in the stream, but the ata would still be valid,
and I can continue processing.
The read methods might throw a MatchException, whose constructor might be
loosely defined as:
MatchException(long offset, byte b, String name);
long offset - offset in the overall data stream
in the match occurred.
byte c - the byte that caused the thrown
MatchException. If read(byte[])
were called, data up to but not
including that byte would be in
the byte[].
String name - A user-provided name for the pattern
provided when the pattern was added
to the stream.
I've looked around, and not found anything like this class. The idea is to
be able to handle my data as normal, but be alerted to the presence of data
patterns embedded therein.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]