In message <[EMAIL PROTECTED]>, Dmitry Berans ky writes: >In the process of evaluating the library I came across the following >problem. I use Awk* classes to search for patterns in a big (>100MB) >file. What I can't figure out is how to keep track of the matchs' absolute >offsets (relative to the beginning of the file). I guess, I don't quite
I assume you're using an AwkStreamInput instance as the input. You don't have to do anything special to keep track of the match offset relative to the beginning of the file. beginOffset and endOffset return an offset relative to the beginning of the input. AwkStreamInput keeps track of the offset and AwkMatcher initializes the MatchResult with the proper offsets. daniel -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>