Package net.sf.japaki.text

This package contains formats and parsers.

See:
          Description

Interface Summary
Parser<T> A parser transforms an object into a string and vice versa.
PathTracker Interface to mark classes that provide a parser path.
 

Class Summary
AbstractFormat This class provides a skeletal implementation of the Format class, to minimize the effort required to implement a format.
AbstractFormat.DefaultField Miminal implementation of the Field class.
AbstractParser<T> Parser skeleton that creates a path of the traversed parsers for logging purposes.
BeanParser<B> A parser for a bean.
ChoiceParser<T> A choice parser selects the right parser out of a list of underlying parser depending on the input text for parsing or based on the source object for formatting.
ClassFormat A format to parse class names.
CollectionParser<E> Parser for collections.
DurationFormat DurationFormat is for formatting and parsing durations.
EnumFormat A format for a finite set of objects.
LeafParser<B> A parser based on a Format.
LineFeed Inserts a line break.
MapParser<K,V> Parses a map, where the key of each field is given in the input stream.
MultiLineTransformer Transforms a single line into multiple lines of a defined maximum size.
OptionalParser<T> Wrapper around a parser to make it optional.
ParseReader A ParseReader is used for parsing an input stream.
ParseWriter Output stream for parsing operations.
PeekParser<T> Parses a string without changing the start index.
PropertyParser<B,V> Parses a Property of a generic bean.
ReaderWithPosition Default implementation of a ParseReader.
RegexFormat A string format combined with a filter.
WriterWithPosition The default implementation for a ParseWriter.
 

Exception Summary
BeanStoreException Thrown to indicate that a parsing result could not be stored properly.
FormatException Indicates an exception while formatting an object with a parser.
ParsingException An exception that stores the path to the field where the parsing exception occurred.
 

Package net.sf.japaki.text Description

This package contains formats and parsers.

Parsers exist for various items:
constants LeafParser.newConstantParser(java.lang.String)
strings LeafParser.newStringParser(...)
multi line strings MultiLineTransformer.newMultiLineParser(...)
beans BeanParser
collections CollectionParser
maps MapParser

Since:
1.0