org.fosstrak.ale.util
Class DeserializerUtil

java.lang.Object
  extended by org.fosstrak.ale.util.DeserializerUtil

public class DeserializerUtil
extends java.lang.Object

This class provides some methods to deserialize ec specifications and reports.

Author:
regli, sawielan

Field Summary
static org.apache.log4j.Logger LOG
          logger.
 
Constructor Summary
DeserializerUtil()
           
 
Method Summary
static org.fosstrak.ale.wsdl.alelr.epcglobal.AddReaders deserializeAddReaders(java.lang.String pathName)
          This method deserializes a AddReaders from a file.
static org.fosstrak.ale.xsd.ale.epcglobal.ECReports deserializeECReports(java.io.InputStream in)
          This method deserializes ECReports from a file.
static org.fosstrak.ale.xsd.ale.epcglobal.ECSpec deserializeECSpec(java.io.InputStream inputStream)
          This method deserializes an ec specification from an input stream.
static org.fosstrak.ale.xsd.ale.epcglobal.ECSpec deserializeECSpec(java.lang.String pathName)
          This method deserializes an ec specification from a file.
static org.fosstrak.ale.xsd.ale.epcglobal.LRProperty deserializeLRProperty(java.io.InputStream inputStream)
          This method deserializes a LRProperty from an input stream.
static org.fosstrak.ale.xsd.ale.epcglobal.LRSpec deserializeLRSpec(java.io.InputStream inputStream)
          This method deserializes a LRSpec from an input stream.
static org.fosstrak.ale.xsd.ale.epcglobal.LRSpec deserializeLRSpec(java.lang.String pathName)
          This method deserializes a LRSpec from an file path.
static org.fosstrak.ale.wsdl.alelr.epcglobal.RemoveReaders deserializeRemoveReaders(java.lang.String pathName)
          This method deserializes a RemoveReaders from a file.
static org.fosstrak.ale.wsdl.alelr.epcglobal.SetProperties deserializeSetProperties(java.lang.String pathName)
          This method deserializes a SetProperties from a file.
static org.fosstrak.ale.wsdl.alelr.epcglobal.SetReaders deserializeSetReaders(java.lang.String pathName)
          This method deserializes a SetReaders from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
logger.

Constructor Detail

DeserializerUtil

public DeserializerUtil()
Method Detail

deserializeECSpec

public static org.fosstrak.ale.xsd.ale.epcglobal.ECSpec deserializeECSpec(java.io.InputStream inputStream)
                                                                   throws java.lang.Exception
This method deserializes an ec specification from an input stream.

Parameters:
inputStream - to deserialize
Returns:
ec specification
Throws:
java.lang.Exception - if deserialization fails

deserializeECSpec

public static org.fosstrak.ale.xsd.ale.epcglobal.ECSpec deserializeECSpec(java.lang.String pathName)
                                                                   throws java.io.FileNotFoundException,
                                                                          java.lang.Exception
This method deserializes an ec specification from a file.

Parameters:
pathName - of the file containing the ec specification
Returns:
ec specification
Throws:
java.io.FileNotFoundException - if the file could not be found
java.lang.Exception - if deserialization fails

deserializeLRSpec

public static org.fosstrak.ale.xsd.ale.epcglobal.LRSpec deserializeLRSpec(java.io.InputStream inputStream)
                                                                   throws java.lang.Exception
This method deserializes a LRSpec from an input stream.

Parameters:
inputStream - to deserialize
Returns:
LRSpec
Throws:
java.lang.Exception - if deserialization fails

deserializeLRSpec

public static org.fosstrak.ale.xsd.ale.epcglobal.LRSpec deserializeLRSpec(java.lang.String pathName)
                                                                   throws java.io.FileNotFoundException,
                                                                          java.lang.Exception
This method deserializes a LRSpec from an file path.

Parameters:
pathName - to deserialize
Returns:
LRSpec
Throws:
java.lang.Exception - if deserialization fails
java.io.FileNotFoundException

deserializeLRProperty

public static org.fosstrak.ale.xsd.ale.epcglobal.LRProperty deserializeLRProperty(java.io.InputStream inputStream)
                                                                           throws java.lang.Exception
This method deserializes a LRProperty from an input stream.

Parameters:
inputStream - to deserialize
Returns:
LRProperty
Throws:
java.lang.Exception - if deserialization fails

deserializeSetProperties

public static org.fosstrak.ale.wsdl.alelr.epcglobal.SetProperties deserializeSetProperties(java.lang.String pathName)
                                                                                    throws java.io.IOException
This method deserializes a SetProperties from a file.

Parameters:
pathName - the path to the file to be deserialized.
Returns:
SetProperties.
Throws:
java.io.IOException - if file is not found.

deserializeRemoveReaders

public static org.fosstrak.ale.wsdl.alelr.epcglobal.RemoveReaders deserializeRemoveReaders(java.lang.String pathName)
                                                                                    throws java.io.IOException
This method deserializes a RemoveReaders from a file.

Parameters:
pathName - the path to the file to be deserialized.
Returns:
RemoveReaders.
Throws:
java.io.IOException - if file is not found.

deserializeSetReaders

public static org.fosstrak.ale.wsdl.alelr.epcglobal.SetReaders deserializeSetReaders(java.lang.String pathName)
                                                                              throws java.io.IOException
This method deserializes a SetReaders from a file.

Parameters:
pathName - the path to the file to be deserialized.
Returns:
SetReaders.
Throws:
java.io.IOException - if file is not found.

deserializeAddReaders

public static org.fosstrak.ale.wsdl.alelr.epcglobal.AddReaders deserializeAddReaders(java.lang.String pathName)
                                                                              throws java.io.IOException
This method deserializes a AddReaders from a file.

Parameters:
pathName - the path to the file to be deserialized.
Returns:
AddReaders.
Throws:
java.io.IOException - if file is not found.

deserializeECReports

public static org.fosstrak.ale.xsd.ale.epcglobal.ECReports deserializeECReports(java.io.InputStream in)
                                                                         throws java.io.IOException
This method deserializes ECReports from a file.

Parameters:
pathName - the path to the file to be deserialized.
Returns:
ECReports.
Throws:
java.io.IOException - if file is not found.


Copyright © 2009. All Rights Reserved.