railo.runtime.converter
Class WDDXConverter

java.lang.Object
  extended by railo.runtime.converter.ConverterSupport
      extended by railo.runtime.converter.WDDXConverter
All Implemented Interfaces:
StringConverter

public final class WDDXConverter
extends ConverterSupport

class to serialize and desirilize WDDX Packes


Constructor Summary
WDDXConverter(TimeZone timeZone, boolean xmlConform, boolean ignoreRemotingFetch)
          constructor of the class
 
Method Summary
 Object deserialize(String strWddx, boolean validate)
          deserialize a WDDX Package (XML String Representation) to a runtime object
 boolean equals(Object obj)
           
 String serialize(Object object)
          serialize a Object to his xml Format represenation and create a valid wddx representation
 void setTimeZone(TimeZone timeZone)
          defines timezone info will
 void writeOut(PageContext pc, Object source, Writer writer)
           
 
Methods inherited from class railo.runtime.converter.ConverterSupport
toConverterException
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WDDXConverter

public WDDXConverter(TimeZone timeZone,
                     boolean xmlConform,
                     boolean ignoreRemotingFetch)
constructor of the class

Parameters:
timeZone -
xmlConform - define if generated xml conform output or wddx conform output (wddx is not xml conform)
Method Detail

setTimeZone

public void setTimeZone(TimeZone timeZone)
defines timezone info will

Parameters:
timeZone -

writeOut

public void writeOut(PageContext pc,
                     Object source,
                     Writer writer)
              throws ConverterException,
                     IOException
Throws:
ConverterException
IOException

serialize

public String serialize(Object object)
                 throws ConverterException
serialize a Object to his xml Format represenation and create a valid wddx representation

Parameters:
object - Object to serialize
Returns:
serialized wddx package
Throws:
ConverterException

deserialize

public Object deserialize(String strWddx,
                          boolean validate)
                   throws ConverterException,
                          IOException,
                          FactoryConfigurationError
deserialize a WDDX Package (XML String Representation) to a runtime object

Parameters:
strWddx -
validate -
Returns:
Object represent WDDX Package
Throws:
ConverterException
IOException
FactoryConfigurationError

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012 Railo