//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010 huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/willow
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : willow@lists.sourceforge.net 
 */
//----------------------------END  LICENSE-----------------------------
package org.huihoo.workflow.xpdl.serializer;

import java.io.IOException;
import java.io.OutputStream;
import java.io.Writer;
import java.sql.SQLException;

import org.huihoo.workflow.xpdl.WorkflowPackage;

import org.huihoo.commons.jdbc.Store;


public interface XPDLSerializer
{
	public void serialize(WorkflowPackage pkg, Store store) throws XPDLSerializeException,IOException,SQLException;
	
	public void serialize(WorkflowPackage pkg, OutputStream out) throws XPDLSerializeException,IOException;
	
	public void serialize(WorkflowPackage pkg, OutputStream out,String charsetName) throws XPDLSerializeException,IOException;
	
	public void serialize(WorkflowPackage pkg, Writer out) throws XPDLSerializeException,IOException;
}
