public class EDI
extends java.lang.Object
EDIFilterInputStream.getEDI().| Modifier and Type | Field and Description |
|---|---|
static int |
EDIFACT
EDIFACT type detected
|
static int |
FUZZYX12
FUZZYX12 type detected (i.e. short ISA06 [Sender] and/or ISA08 [Receiver]
values)
|
static int |
TRADACOMS
TRADACOMS type detected
|
static int |
UNKNOWN
UNKNOWN type detected
|
static int |
X12
X12 type detected
|
| Constructor and Description |
|---|
EDI(java.io.InputStream in)
Constructs EDI parser for an input stream
|
EDI(com.cleo.lexicom.beans.LexFile file)
Constructs EDI parser for a file
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the EDI input stream
|
char |
getElementSeparator()
Returns the EDI element separator
|
EDI.Type |
getEnumType()
Returns the detected EDI enum type
|
char |
getEscapeCharacter()
Returns the EDI escape character
|
EDISegment |
getNextSegment()
Get the next EDI segment
|
byte |
getSegmentTerminator()
Returns the EDI segment terminator
|
char |
getSubelementSeparator()
Returns the EDI subelement separator
|
int |
getType()
Returns the detected EDI type
|
void |
setRedetect(boolean redetect) |
public static final int X12
public static final int EDIFACT
public static final int TRADACOMS
public static final int UNKNOWN
public static final int FUZZYX12
public EDI(com.cleo.lexicom.beans.LexFile file)
throws java.lang.Exception
file - the EDI filejava.lang.Exceptionpublic EDI(java.io.InputStream in)
throws java.io.IOException
in - the EDI input streamjava.io.IOExceptionpublic int getType()
public EDI.Type getEnumType()
public char getElementSeparator()
public char getSubelementSeparator()
public byte getSegmentTerminator()
public char getEscapeCharacter()
public void setRedetect(boolean redetect)
public EDISegment getNextSegment() throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException