Novell exteNd Web Services SDK API

com.sssw.jbroker.web.mapping
Class BeanMarshaler

java.lang.Object
  extended bycom.sssw.jbroker.web.mapping.BeanMarshaler
All Implemented Interfaces:
Deserializer, Marshaler, Serializer

Deprecated. As of jBroker Web 2.0

public class BeanMarshaler
extends Object
implements Marshaler

General purpose marshaler for serializing Java Beans. Only the read/write properties are marshaled.

See Also:
BeanMarshaler

Constructor Summary
BeanMarshaler()
          Deprecated. Create a bean marshaler object.
BeanMarshaler(Class javaType)
          Deprecated. Create a bean marshaler object for a given class.
 
Method Summary
 Object deserialize(InputStream is, Class javaType)
          Deprecated. Initialize the given bean object from the given input stream
 Attribute[] getAttributes(Object obj)
          Deprecated. Get the element attributes
 void serialize(OutputStream os, Object obj)
          Deprecated. Serialize the given bean object to the given output stream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanMarshaler

public BeanMarshaler()
Deprecated. 
Create a bean marshaler object.


BeanMarshaler

public BeanMarshaler(Class javaType)
Deprecated. 
Create a bean marshaler object for a given class.

Parameters:
javaType - class of beans
Method Detail

getAttributes

public Attribute[] getAttributes(Object obj)
Deprecated. 
Get the element attributes

Specified by:
getAttributes in interface Serializer
Parameters:
obj - the object that is being serialized
Returns:
an array of attributes for the serialzied object

serialize

public void serialize(OutputStream os,
                      Object obj)
               throws IOException
Deprecated. 
Serialize the given bean object to the given output stream

Specified by:
serialize in interface Serializer
Parameters:
os - the portable output stream
obj - the object to write
Throws:
IOException - if an I/O exception occurred during write

deserialize

public Object deserialize(InputStream is,
                          Class javaType)
                   throws IOException
Deprecated. 
Initialize the given bean object from the given input stream

Specified by:
deserialize in interface Deserializer
Parameters:
is - the input stream to read object from
javaType - the expected Java type
Returns:
a newly created object initialized from stream
Throws:
IOException - if an I/O exception occurred duing read

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.