|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.berryworks.edireader.EDIReaderFactory
public class EDIReaderFactory
Creates a subclass of EDIReader appropriate for parsing a particular EDI interchange. This class has just enough knowledge of the supported standards make a decision based on observation of the first several characters of data. This decision does not imply that data in well-formed with regard to the chosen standard, but merely that we know which actual parser to use.
Constructor Summary | |
---|---|
EDIReaderFactory()
|
Method Summary | |
---|---|
static EDIReader |
createEDIReader(org.xml.sax.InputSource source)
Equivalent to createEDIReader(source, debugging=false) |
static EDIReader |
createEDIReader(org.xml.sax.InputSource source,
boolean debug)
Factory method to create an instance of a subclass of EDIReader based on examination of the first few characters of data. |
static EDIReader |
createEDIReader(org.xml.sax.InputSource source,
char[] preRead)
Factory method to create an instance of a subclass of EDIReader based on examination of the first few characters of data. |
static EDIReader |
createEDIReader(org.xml.sax.InputSource source,
char[] preRead,
boolean debug)
Factory method to create an instance of a subclass of EDIReader based on examination of the first few characters of data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EDIReaderFactory()
Method Detail |
---|
public static EDIReader createEDIReader(org.xml.sax.InputSource source) throws EDISyntaxException, java.io.IOException
source
- EDI input
java.io.IOException
- if problem reading EDI input
EDISyntaxException
- if invalid EDI is detectedpublic static EDIReader createEDIReader(org.xml.sax.InputSource source, boolean debug) throws EDISyntaxException, java.io.IOException
source
- EDI sourcedebug
- true to turn debug on, false to turn it off
java.io.IOException
- for problem reading EDI data
EDISyntaxException
- if invalid EDI is detectedpublic static EDIReader createEDIReader(org.xml.sax.InputSource source, char[] preRead) throws EDISyntaxException, java.io.IOException
source
- EDI sourcepreRead
- chars of EDI input data to be used before reading from the source
java.io.IOException
- for problem reading EDI data
EDISyntaxException
- if invalid EDI is detectedpublic static EDIReader createEDIReader(org.xml.sax.InputSource source, char[] preRead, boolean debug) throws EDISyntaxException, java.io.IOException
source
- EDI sourcepreRead
- chars of EDI input data to be used before reading from the sourcedebug
- true to turn debug on, false to turn it off
java.io.IOException
- for problem reading EDI data
EDISyntaxException
- if invalid EDI is detected
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |