Novell exteNd Web Services SDK API

com.sssw.jbroker.web.encoding
Interface Serializer

All Superinterfaces:
Serializable, Serializer
All Known Subinterfaces:
Marshaler
All Known Implementing Classes:
BeanMarshaler, PublicFieldsMarshaler, ValueTypeMarshaler

public interface Serializer
extends Serializer

The Serializer interface is used by objects that are capable of serializing a Java Object to a portable output stream.

Since:
jBroker Web 2.0

Method Summary
 Attribute[] getAttributes(Object obj)
          Get the element attributes
 void serialize(OutputStream os, Object obj)
          Serialize the given object to the given output stream
 
Methods inherited from interface javax.xml.rpc.encoding.Serializer
getMechanismType
 

Method Detail

serialize

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

Parameters:
os - the portable output stream
obj - the object to write
Throws:
IOException - if an I/O exception occurred during write

getAttributes

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

Parameters:
obj - the object that is being serialized
Returns:
an array of attributes for the serialzied object

Novell exteNd Web Services SDK API

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