01: /*
02: * This is free software, licensed under the Gnu Public License (GPL)
03: * get a copy from <http://www.gnu.org/licenses/gpl.html>
04: *
05: * author: Henner Zeller <H.Zeller@acm.org>
06: */
07: package henplus.importparser;
08:
09: /**
10: * A parser for a specific type. The TypeParser knows from the value or its
11: * configuration, into which field the parsed value should be stored.
12: */
13: public abstract class TypeParser {
14: /**
15: * parse the value from the character buffer starting from the given
16: * offset and with the given length. Store the result in the
17: * ValueRecipient.
18: */
19: public abstract void parse(char[] buffer, int offset, int len,
20: ValueRecipient recipient) throws Exception;
21: }
|