org.milyn.smooks.edi.unedifact.model
Interface UNEdifactInterchangeFactory


public interface UNEdifactInterchangeFactory

UN/EDIFACT interchange factory.

Author:
tom.fennelly@gmail.com

Method Summary
 UNEdifactInterchange fromUNEdifact(org.xml.sax.InputSource ediSource, javax.xml.transform.Result... additionalResults)
          Create a UNEdifactInterchange from the supplied UN/EDIFACT EDI Stream.
 UNEdifactInterchange fromUNEdifact(java.io.InputStream ediStream, javax.xml.transform.Result... additionalResults)
          Create a UNEdifactInterchange from the supplied UN/EDIFACT EDI Stream.
 void toUNEdifact(UNEdifactInterchange interchange, java.io.Writer writer)
          Serialized the supplied UNEdifactInterchange to a UN/EDIFACT EDI Stream.
 

Method Detail

fromUNEdifact

UNEdifactInterchange fromUNEdifact(java.io.InputStream ediStream,
                                   javax.xml.transform.Result... additionalResults)
                                   throws java.io.IOException
Create a UNEdifactInterchange from the supplied UN/EDIFACT EDI Stream.

Parameters:
ediStream - The UN/EDIFACT interchange data stream.
additionalResults - Additional results e.g. supply a javax.xml.transform.stream.StreamResult to capture the serialized XML event stream generated by the UNEdifact reader.
Returns:
The interchange object graph.
Throws:
java.io.IOException - Error reading interchange data stream.

fromUNEdifact

UNEdifactInterchange fromUNEdifact(org.xml.sax.InputSource ediSource,
                                   javax.xml.transform.Result... additionalResults)
                                   throws java.io.IOException
Create a UNEdifactInterchange from the supplied UN/EDIFACT EDI Stream.

Parameters:
ediSource - The UN/EDIFACT interchange data stream.
additionalResults - Additional results e.g. supply a javax.xml.transform.stream.StreamResult to capture the serialized XML event stream generated by the UNEdifact reader.
Returns:
The interchange object graph.
Throws:
java.io.IOException - Error reading interchange data stream.

toUNEdifact

void toUNEdifact(UNEdifactInterchange interchange,
                 java.io.Writer writer)
                 throws java.io.IOException
Serialized the supplied UNEdifactInterchange to a UN/EDIFACT EDI Stream.

Parameters:
interchange - The interchange instance to be serialized.
writer - The output writer.
Throws:
java.io.IOException - Exception writing interchange.


Copyright © 2011. All Rights Reserved.