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


public interface UNEdifactInterchangeFactory

UN/EDIFACT interchange factory.

Author:
tom.fennelly@gmail.com

Method Summary
 UNEdifactInterchange fromUNEdifact(InputSource ediSource, Result... additionalResults)
          Create a UNEdifactInterchange from the supplied UN/EDIFACT EDI Stream.
 UNEdifactInterchange fromUNEdifact(InputStream ediStream, Result... additionalResults)
          Create a UNEdifactInterchange from the supplied UN/EDIFACT EDI Stream.
 void setReportPath(String reportPath)
          Set the Execution Report output path.
 void toUNEdifact(UNEdifactInterchange interchange, Writer writer)
          Serialized the supplied UNEdifactInterchange to a UN/EDIFACT EDI Stream.
 

Method Detail

fromUNEdifact

UNEdifactInterchange fromUNEdifact(InputStream ediStream,
                                   Result... additionalResults)
                                   throws 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 StreamResult to capture the serialized XML event stream generated by the UNEdifact reader.
Returns:
The interchange object graph.
Throws:
IOException - Error reading interchange data stream.

fromUNEdifact

UNEdifactInterchange fromUNEdifact(InputSource ediSource,
                                   Result... additionalResults)
                                   throws 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 StreamResult to capture the serialized XML event stream generated by the UNEdifact reader.
Returns:
The interchange object graph.
Throws:
IOException - Error reading interchange data stream.

toUNEdifact

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

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

setReportPath

void setReportPath(String reportPath)
Set the Execution Report output path.

Only use for debug purposes. Do not use in production!!

Parameters:
reportPath - Execution Report output path.


Copyright © 2018. All rights reserved.