|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cedarsoft.utils.serialization.AbstractSerializer<T>
T - the typepublic abstract class AbstractSerializer<T>
| Field Summary | |
|---|---|
protected static java.lang.String |
LINE_SEPARATOR
|
| Constructor Summary | |
|---|---|
protected |
AbstractSerializer(java.lang.String defaultElementName)
|
| Method Summary | |
|---|---|
abstract T |
deserialize(org.jdom.Element element,
Lookup context)
Deserializes the object from the diven document |
T |
deserialize(java.io.InputStream in)
Deserializes the object |
T |
deserialize(java.io.InputStream in,
Lookup context)
Deserializes the object from the input stream |
protected java.lang.String |
getDefaultElementName()
|
abstract void |
serialize(org.jdom.Element element,
T object,
Lookup context)
Serializes the object to the given element |
byte[] |
serialize(T object)
Serializes the given object |
void |
serialize(T object,
java.io.OutputStream out)
Serializes the object to the output stream |
void |
serialize(T object,
java.io.OutputStream out,
Lookup context)
Serializes the object to the given output stream |
org.jdom.Element |
serializeToElement(T object,
Lookup context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull @NonNls protected static final java.lang.String LINE_SEPARATOR
| Constructor Detail |
|---|
protected AbstractSerializer(@NotNull@NonNls
java.lang.String defaultElementName)
| Method Detail |
|---|
@NotNull
public org.jdom.Element serializeToElement(@NotNull
T object,
@Nullable
Lookup context)
throws java.io.IOException
java.io.IOException
public void serialize(@NotNull
T object,
@NotNull
java.io.OutputStream out,
@Nullable
Lookup context)
throws java.io.IOException
Serializer
serialize in interface Serializer<T,Lookup>object - the objectout - the out streamcontext - the context (optional)
java.io.IOException@NotNull @NonNls protected java.lang.String getDefaultElementName()
@NotNull
public T deserialize(@NotNull
java.io.InputStream in,
@Nullable
Lookup context)
throws java.io.IOException
Serializer
deserialize in interface Serializer<T,Lookup>in - the input streamcontext - the context (optional)
java.io.IOException
@NotNull
public byte[] serialize(@NotNull
T object)
throws java.io.IOException
ExtendedSerializer
serialize in interface ExtendedSerializer<T>object - the object
java.io.IOException
public void serialize(@NotNull
T object,
@NotNull
java.io.OutputStream out)
throws java.io.IOException
ExtendedSerializer
serialize in interface ExtendedSerializer<T>object - the objectout - the out stream
java.io.IOException
@NotNull
public T deserialize(@NotNull
java.io.InputStream in)
throws java.io.IOException
ExtendedSerializer
deserialize in interface ExtendedSerializer<T>in - the input stream
java.io.IOException
public abstract void serialize(@NotNull
org.jdom.Element element,
@NotNull
T object,
@NotNull
Lookup context)
throws java.io.IOException
element - the elementobject - the objectcontext - the context
java.io.IOException
@NotNull
public abstract T deserialize(@NotNull
org.jdom.Element element,
@NotNull
Lookup context)
throws java.io.IOException
element - the elementcontext - the context
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||