henplus.importparser
Class TypeParser

java.lang.Object
  extended by henplus.importparser.TypeParser
Direct Known Subclasses:
IgnoreTypeParser, QuotedStringParser, StringParser

public abstract class TypeParser
extends Object

A parser for a specific type. The TypeParser knows from the value or its configuration, into which field the parsed value should be stored.


Constructor Summary
TypeParser()
           
 
Method Summary
abstract  void parse(char[] buffer, int offset, int len, ValueRecipient recipient)
          parse the value from the character buffer starting from the given offset and with the given length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeParser

public TypeParser()
Method Detail

parse

public abstract void parse(char[] buffer,
                           int offset,
                           int len,
                           ValueRecipient recipient)
                    throws Exception
parse the value from the character buffer starting from the given offset and with the given length. Store the result in the ValueRecipient.

Throws:
Exception


? 1997..2006 Henner Zeller