|
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.PublicFieldsMarshaler
General purpose marshaler for serializing public fields of an object.
Constructor Summary | |
PublicFieldsMarshaler()
Construct a PublicFieldsMarshaler , which can marshal
any type. |
|
PublicFieldsMarshaler(Class javaType)
Construct a PublicFieldsMarshaler , which prefers to
marshal javaType . |
|
PublicFieldsMarshaler(Class javaType,
Field[] fields)
Construct a PublicFieldsMarshaler , which prefers to
marshal javaType . |
Method Summary | |
Object |
deserialize(InputStream is,
Class javaType)
De-serialize the public fields of some object. |
Attribute[] |
getAttributes(Object obj)
This marshaler has no attributes. |
String |
getMechanismType()
Get the serializer's mechanism type. |
void |
serialize(OutputStream os,
Object obj)
Serialize the public fields of some object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PublicFieldsMarshaler()
PublicFieldsMarshaler
, which can marshal
any type.
public PublicFieldsMarshaler(Class javaType)
PublicFieldsMarshaler
, which prefers to
marshal javaType
. The marshaler can still marshall
other objects, but will perform better with javaType
.
The fields will be marshaled in the order they are returned by
the java.lang.reflect.Fields getFields method.
javaType
- The preferred Java type.public PublicFieldsMarshaler(Class javaType, Field[] fields)
PublicFieldsMarshaler
, which prefers to
marshal javaType
. The marshaler can still marshall
other objects, but will perform better with javaType
.
javaType
- The preferred Java type.fields
- The fields in the order they will be marshaled.Method Detail |
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 output stream.obj
- The object to marshal. If an order has been requested
for the fields, the marshaler will write the fields in that order.
IOException
- If marshaling failed.public Object deserialize(InputStream is, Class javaType) throws IOException
deserialize
in interface Deserializer
is
- The input stream.javaType
- The expected type. Always ignored.
IOException
- If marshaling failed.public String getMechanismType()
getMechanismType
in interface Serializer
|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |