com.calfater.mailcarbon.util
Class MarshallerHelper

java.lang.Object
  extended by com.calfater.mailcarbon.util.MarshallerHelper

public class MarshallerHelper
extends java.lang.Object


Constructor Summary
MarshallerHelper()
           
 
Method Summary
static void marshal(ConfigManagerBinding config, java.io.File file)
           
static
<T> T
unmarshal(java.lang.Class<T> clazz, java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshallerHelper

public MarshallerHelper()
Method Detail

marshal

public static void marshal(ConfigManagerBinding config,
                           java.io.File file)
                    throws java.io.IOException,
                           org.exolab.castor.xml.MarshalException,
                           org.exolab.castor.xml.ValidationException
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

unmarshal

public static <T> T unmarshal(java.lang.Class<T> clazz,
                              java.io.File file)
                   throws org.exolab.castor.xml.MarshalException,
                          org.exolab.castor.xml.ValidationException,
                          java.io.FileNotFoundException
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
java.io.FileNotFoundException


Copyright © 2010. All Rights Reserved.