Commit 2d243d46 authored by Sunil Kumar's avatar Sunil Kumar
Browse files

Modified to support serialization

parent 02f379a2
......@@ -21,7 +21,7 @@ import java.util.ArrayList;
* Encapsulates a qualifier in a Schema definition. Definitions that are not
* in rfc2252. Begins with 'X-'
*/
public class AttributeQualifier{
public class AttributeQualifier implements java.io.Serializable {
String name;
ArrayList values;
......@@ -61,4 +61,28 @@ public class AttributeQualifier{
}
return strValues;
}
/**
* Writes the object state to a stream in standard Default Binary format
* This function wraps ObjectOutputStream' s defaultWriteObject() to write
* the non-static and non-transient fields of the current class to the stream
*
* @param objectOStrm The OutputSteam where the Object need to be written
*/
private void writeObject(java.io.ObjectOutputStream objectOStrm)
throws java.io.IOException {
objectOStrm.defaultWriteObject();
}
/**
* Reads the serialized object from the underlying input stream.
* This function wraps ObjectInputStream's defaultReadObject() function
*
* @param objectIStrm InputStream used to recover those objects previously serialized.
*/
private void readObject(java.io.ObjectInputStream objectIStrm)
throws java.io.IOException, ClassNotFoundException
{
objectIStrm.defaultReadObject();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment