org.janux.bus.processor
Interface StringParser
- All Superinterfaces:
- Processor
public interface StringParser
- extends Processor
Base interface to represent any sort of class that takes a String as input and returns an Object
as output; mostly used to define classes that parse/unmarshall Strings into objects
Derived classes that extend StringParserAbstract (TODO), only need to implement the
parse(String in)
as that class provides a convenience implementation of
Processor.process(java.io.InputStream, java.io.OutputStream)
that turns the 'in' InputStream into a String, calls
StringProcessorAbstract.process(String in)
, and returns on ObjectOutputStream via the the
out OutputStream.
- Author:
- Philippe Paravicini
parse
Object parse(String in)
Copyright © 2005-2013 Janux. All Rights Reserved.