All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.store.IntegerArrayAttribute

java.lang.Object
   |
   +----w3c.tools.store.Attribute
           |
           +----w3c.tools.store.IntegerArrayAttribute

public class IntegerArrayAttribute
extends Attribute
The generic description of an IntegerArrayAttribute.


Constructor Index

 o IntegerArrayAttribute(String, String[], int)

Method Index

 o checkValue(Object)
Is the given object a valid IntegerArrayAttribute value ?
 o getPickleLength(Object)
Get the number of bytes required to save that attribute value.
 o pickle(DataOutputStream, Object)
Pickle a integer array to the given output stream.
 o stringify(Object)
Turn a IntegerArray attribute into a String.
 o unpickle(DataInputStream)
Unpickle an integer array from the given input stream.

Constructors

 o IntegerArrayAttribute
 public IntegerArrayAttribute(String name,
                              String def[],
                              int flags)

Methods

 o stringify
 public String stringify(Object value)
Turn a IntegerArray attribute into a String. We use the normal property convention, which is to separate each item with a |.

Returns:
A String based encoding for that value.
Overrides:
stringify in class Attribute
 o checkValue
 public boolean checkValue(Object obj)
Is the given object a valid IntegerArrayAttribute value ?

Parameters:
obj - The object to test.
Returns:
A boolean true if okay.
Overrides:
checkValue in class Attribute
 o getPickleLength
 public final int getPickleLength(Object value)
Get the number of bytes required to save that attribute value.

Parameters:
The - value about to be pickled.
Returns:
The number of bytes needed to pickle that value.
Overrides:
getPickleLength in class Attribute
 o pickle
 public void pickle(DataOutputStream out,
                    Object ia) throws IOException
Pickle a integer array to the given output stream.

Parameters:
out - The output stream to pickle to.
obj - The object to pickle.
Throws: IOException
If some IO error occured.
Overrides:
pickle in class Attribute
 o unpickle
 public Object unpickle(DataInputStream in) throws IOException
Unpickle an integer array from the given input stream.

Parameters:
in - The input stream to unpickle from.
Returns:
An instance of int[].
Throws: IOException
If some IO error occured.
Overrides:
unpickle in class Attribute

All Packages  Class Hierarchy  This Package  Previous  Next  Index