org.sadun.text.ffp
Class FFPFactory
java.lang.Object
org.sadun.text.ffp.FFPFactory
- public class FFPFactory
- extends java.lang.Object
This class creates FlatFileParser
objects by
loading conditions and line format definitions from properly formatted
stream, URL or file.
- Version:
- 1.0
- Author:
- Cristiano
Sadun
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FFPFactory
public FFPFactory()
FFPFactory
public FFPFactory(FFPFactory.FFPStreamParser parser)
createFFP
public FlatFileParser createFFP(java.io.InputStream is)
throws FFPStreamParseException,
java.io.IOException
- Create a single
FlatFileParser
reading the given stream.
- Parameters:
is
- the input stream containing the condition/format definitions
- Returns:
- a
FlatFileParser
initialized accordingly.
- Throws:
ParseException
- if a problem occurs parsing the stream
java.io.IOException
- if a problem occurs reading or closing the stream.
FFPStreamParseException
createFFP
public FlatFileParser createFFP(java.net.URL url)
throws FFPStreamParseException,
java.io.IOException
- Throws:
FFPStreamParseException
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception