S
Sascha Effert
Hello,
I am implementing a key/value store, which maps Strings to Strings.
This store needs some kind of filters. These filters have to support
regular expressions, but they also have to be able to interpret the
key as a number (if it is one) to get ranges.
I would like to support awk as filter language as it can do anything I
want. I know there is jawk[1] as an Java implementation of awk. My
Problem is that the homepage only describes how to use it from the
command line, not how to use out of Java code. I would like to use the
library and give it the skript and the Input as String or as
InputStream and I would like to get the output as OutputStream or
String. Is here anybody who used jawk and can give me a hint how to do
it?
[1] http://jawk.sourceforge.net/
bests
Sascha Effert
I am implementing a key/value store, which maps Strings to Strings.
This store needs some kind of filters. These filters have to support
regular expressions, but they also have to be able to interpret the
key as a number (if it is one) to get ranges.
I would like to support awk as filter language as it can do anything I
want. I know there is jawk[1] as an Java implementation of awk. My
Problem is that the homepage only describes how to use it from the
command line, not how to use out of Java code. I would like to use the
library and give it the skript and the Input as String or as
InputStream and I would like to get the output as OutputStream or
String. Is here anybody who used jawk and can give me a hint how to do
it?
[1] http://jawk.sourceforge.net/
bests
Sascha Effert