org.dhatim.smooks.edi.unedifact.model.UNEdifactInterchange Maven / Gradle / Ivy
/*
* Milyn - Copyright (C) 2006 - 2010
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License (version 2.1) as published by the Free Software
* Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License for more details:
* http://www.gnu.org/licenses/lgpl.txt
*/
package org.dhatim.smooks.edi.unedifact.model;
import org.dhatim.edisax.model.internal.Delimiters;
import java.io.IOException;
import java.io.Serializable;
import java.io.Writer;
/**
* UN/EDIFACT message interchange.
*
* @author [email protected]
*/
public interface UNEdifactInterchange extends Serializable {
/**
* Write the interchange to the specified writer.
*
* Uses the default UN/EDIFACT delimiter set.
*
* @param writer The target writer.
* @throws IOException Error writing interchange.
*/
void write(Writer writer) throws IOException;
/**
* Write the interchange to the specified writer.
* @param writer The target writer.
* @param delimiters The delimiters.
* @throws IOException Error writing interchange.
*/
void write(Writer writer, Delimiters delimiters) throws IOException;
}