- java.lang.Object
-
- io.xlate.edi.stream.PropertySupport
-
- io.xlate.edi.stream.EDIOutputFactory
-
- Direct Known Subclasses:
StaEDIOutputFactory
public abstract class EDIOutputFactory extends PropertySupport
-
-
Field Summary
Fields Modifier and Type Field Description static StringPRETTY_PRINT-
Fields inherited from class io.xlate.edi.stream.PropertySupport
properties, supportedProperties
-
-
Constructor Summary
Constructors Constructor Description EDIOutputFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract EDIStreamWritercreateEDIStreamWriter(OutputStream stream)Create a new EDIStreamWriter that writes to a streamabstract EDIStreamWritercreateEDIStreamWriter(OutputStream stream, String encoding)Create a new EDIStreamWriter that writes to a streamstatic EDIOutputFactorynewFactory()Create a new instance of the factory.-
Methods inherited from class io.xlate.edi.stream.PropertySupport
getProperty, isPropertySupported, setProperty
-
-
-
-
Field Detail
-
PRETTY_PRINT
public static final String PRETTY_PRINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
newFactory
public static EDIOutputFactory newFactory()
Create a new instance of the factory. This static method creates a new factory instance. Once an application has obtained a reference to an EDIOutputFactory it can use the factory to configure and obtain stream instances.- Returns:
- the factory implementation
-
createEDIStreamWriter
public abstract EDIStreamWriter createEDIStreamWriter(OutputStream stream)
Create a new EDIStreamWriter that writes to a stream- Parameters:
stream- - the stream to write to- Returns:
- the writer instance
-
createEDIStreamWriter
public abstract EDIStreamWriter createEDIStreamWriter(OutputStream stream, String encoding) throws EDIStreamException
Create a new EDIStreamWriter that writes to a stream- Parameters:
stream- - the stream to write toencoding- - the encoding to use- Returns:
- the writer instance
- Throws:
EDIStreamException- when encoding is not supported
-
-