Class AbstractEdiFormatter
- java.lang.Object
-
- com.adaptris.adapter.edistream.formatter.AbstractFormatter
-
- com.adaptris.adapter.edistream.formatter.AbstractEdiFormatter
-
- Direct Known Subclasses:
EdiFormatter
public abstract class AbstractEdiFormatter extends AbstractFormatter
Top level Edi Formatter class. Contains utilities for Edi output management.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.Writer
outputPrinter
protected IEdiSeparatorSet
separators
-
Constructor Summary
Constructors Constructor Description AbstractEdiFormatter(java.io.Writer osw)
AbstractEdiFormatter(java.io.Writer osw, IEdiSeparatorSet separatorSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeStream()
Flush and close the XML writer.protected char
getCompositeSepChar()
protected char
getFieldSepChar()
IEdiSeparatorSet
getSeparators()
protected void
print(char charVal)
protected void
print(java.lang.String text)
protected void
printCompositeSepChar()
protected void
printFieldSepChar()
protected void
printSegmentEndChar()
protected void
printSegmentIDChar()
void
setSeparators(IEdiSeparatorSet separators)
-
-
-
Field Detail
-
separators
protected IEdiSeparatorSet separators
-
outputPrinter
protected java.io.Writer outputPrinter
-
-
Constructor Detail
-
AbstractEdiFormatter
public AbstractEdiFormatter(java.io.Writer osw)
-
AbstractEdiFormatter
public AbstractEdiFormatter(java.io.Writer osw, IEdiSeparatorSet separatorSet)
-
-
Method Detail
-
print
protected void print(java.lang.String text) throws java.io.IOException
- Throws:
java.io.IOException
-
print
protected void print(char charVal) throws java.io.IOException
- Throws:
java.io.IOException
-
printSegmentIDChar
protected void printSegmentIDChar() throws java.io.IOException
- Throws:
java.io.IOException
-
printSegmentEndChar
protected void printSegmentEndChar() throws java.io.IOException
- Throws:
java.io.IOException
-
printFieldSepChar
protected void printFieldSepChar() throws java.io.IOException
- Throws:
java.io.IOException
-
printCompositeSepChar
protected void printCompositeSepChar() throws java.io.IOException
- Throws:
java.io.IOException
-
getCompositeSepChar
protected char getCompositeSepChar() throws java.io.IOException
- Throws:
java.io.IOException
-
getFieldSepChar
protected char getFieldSepChar() throws java.io.IOException
- Throws:
java.io.IOException
-
getSeparators
public IEdiSeparatorSet getSeparators()
-
setSeparators
public void setSeparators(IEdiSeparatorSet separators)
-
closeStream
public void closeStream() throws java.io.IOException
Flush and close the XML writer.- Throws:
javax.xml.stream.XMLStreamException
java.io.IOException
-
-