|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sssw.jbroker.web.encoding.BeanMarshaler
General purpose marshaler for serializing Java Beans. Only the read/write properties are marshaled.
Constructor Summary | |
BeanMarshaler()
Create a bean marshaler object. |
|
BeanMarshaler(Class javaType)
Create a bean marshaler object for a given class. |
Method Summary | |
Object |
deserialize(InputStream is,
Class javaType)
Initialize the given bean object from the given input stream |
Attribute[] |
getAttributes(Object obj)
Get the element attributes |
String |
getMechanismType()
Get the serializer's mechanism type. |
void |
serialize(OutputStream os,
Object obj)
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 |
public BeanMarshaler()
public BeanMarshaler(Class javaType)
javaType
- class of beansMethod Detail |
public String getMechanismType()
getMechanismType
in interface Serializer
public Attribute[] getAttributes(Object obj)
getAttributes
in interface Serializer
obj
- the object that is being serialized
public void serialize(OutputStream os, Object obj) throws IOException
serialize
in interface Serializer
os
- the portable output streamobj
- the object to write
IOException
- if an I/O exception occurred during writepublic Object deserialize(InputStream is, Class javaType) throws IOException
deserialize
in interface Deserializer
is
- the input stream to read object fromjavaType
- the expected Java type
IOException
- if an I/O exception occurred duing read
|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |