Novell exteNd Web Services SDK API

com.sssw.jbroker.web.mapping
Class PublicFieldsMarshaler

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

Deprecated. As of jBroker Web 2.0

public class PublicFieldsMarshaler
extends Object
implements Marshaler

General purpose marshaler for serializing public fields of an object.

See Also:
PublicFieldsMarshaler

Constructor Summary
PublicFieldsMarshaler()
          Deprecated. Create a public fields marshaler object.
PublicFieldsMarshaler(Class javaType)
          Deprecated. Create a public fields marshaler object for a given class.
PublicFieldsMarshaler(Class javaType, Field[] fields)
          Deprecated. Construct a PublicFieldsMarshaler, which prefers to marshal javaType.
 
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 object to the given output stream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicFieldsMarshaler

public PublicFieldsMarshaler()
Deprecated. 
Create a public fields marshaler object.


PublicFieldsMarshaler

public PublicFieldsMarshaler(Class javaType)
Deprecated. 
Create a public fields marshaler object for a given class.

Parameters:
javaType - class of objects to marshal

PublicFieldsMarshaler

public PublicFieldsMarshaler(Class javaType,
                             Field[] fields)
Deprecated. 
Construct a PublicFieldsMarshaler, which prefers to marshal javaType. The marshaler can still marshall other objects, but will perform better with javaType.

Parameters:
javaType - The preferred Java type.
fields - The fields in the order they will be marshaled.
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 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.