com.sssw.jbroker.web.mapping
Class BeanMarshaler
java.lang.Object
|
+--com.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. |
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
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 streamobj - 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 fromjavaType - the expected Java type- Returns:
- a newly created object initialized from stream
- Throws:
IOException - if an I/O exception occurred duing read
jBroker is a registered trademark of SilverStream Software, Inc.
Copyright © 2001-2002 SilverStream Software, Inc. All Rights Reserved.