|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uws.job.SerializableUWSObject
public abstract class SerializableUWSObject
This class defines the methods that an object of the UWS pattern must implement to be written in any format (by default, XML ; see XMLSerializer
).
The serialize(UWSSerializer, String)
method must be implemented. It is the most important method of this class
because it returns a serialized representation of this UWS object.
Constructor Summary | |
---|---|
SerializableUWSObject()
|
Method Summary | |
---|---|
void |
serialize(java.io.OutputStream output,
UWSSerializer serializer)
Serializes the whole object in the given output stream and thanks to the given serializer. |
void |
serialize(java.io.OutputStream output,
UWSSerializer serializer,
java.lang.String ownerId)
Serializes the while object in the given output stream, considering the given owner ID and thanks to the given serializer. |
java.lang.String |
serialize(UWSSerializer serializer)
Serializes the whole object thanks to the given serializer. |
abstract java.lang.String |
serialize(UWSSerializer serializer,
java.lang.String ownerId)
Serializes the whole object considering the given owner ID (supposed to be the ID of the current user) and thanks to the given serializer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializableUWSObject()
Method Detail |
---|
public java.lang.String serialize(UWSSerializer serializer) throws UWSException
serializer
- The serializer to use.
UWSException
- If there is an error during the serialization.serialize(UWSSerializer, String)
public abstract java.lang.String serialize(UWSSerializer serializer, java.lang.String ownerId) throws UWSException
serializer
- The serializer to use.ownerId
- The ID of the current user.
UWSException
- If there is an error during the serialization.public void serialize(java.io.OutputStream output, UWSSerializer serializer) throws UWSException
output
- The output stream in which this object must be serialized.serializer
- The serializer to use.
UWSException
- If there is an error during the serialization.serialize(OutputStream, UWSSerializer, String)
public void serialize(java.io.OutputStream output, UWSSerializer serializer, java.lang.String ownerId) throws UWSException
output
- The ouput stream in which this object must be serialized.serializer
- The serializer to use.ownerId
- The ID of the current ID.
UWSException
- If the given ouput stream is null,
or if there is an error during the serialization,
or if there is an error while writing in the given stream.serialize(UWSSerializer, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |