All Packages Class Hierarchy This Package Previous Next Index
Class w3c.jigsaw.auth.IPTemplatesAttribute
java.lang.Object
|
+----w3c.tools.store.Attribute
|
+----w3c.jigsaw.auth.IPTemplatesAttribute
- public class IPTemplatesAttribute
- extends Attribute
The IPTemplates attribute description.
Maintains a list of IP templates (short arrays, to allow for the splash).
-
IPTemplatesAttribute(String, short[][], int)
-
-
checkValue(Object)
- Is the given value a valid IPTemplates value ?
-
getPickleLength(Object)
- Get the number of bytes required to save that attribute value.
-
pickle(DataOutputStream, Object)
- Pickle an array of IP templates to the given output stream.
-
unpickle(DataInputStream)
- Unpickle an array of IP templates from the given input stream.
IPTemplatesAttribute
public IPTemplatesAttribute(String name,
short defs[][],
int flags)
checkValue
public boolean checkValue(Object obj)
- Is the given value a valid IPTemplates value ?
- Parameters:
- obj - The object to test.
- Throws: IllegalAttributeAccess
- If the provided value doesn't pass the
test.
- Overrides:
- checkValue in class Attribute
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
pickle
public void pickle(DataOutputStream out,
Object obj) throws IOException
- Pickle an array of IP templates 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
unpickle
public Object unpickle(DataInputStream in) throws IOException
- Unpickle an array of IP templates from the given input stream.
- Parameters:
- in - The input stream to unpickle from.
- Returns:
- An instance of short[][].
- Throws: IOException
- If some IO error occured.
- Overrides:
- unpickle in class Attribute
All Packages Class Hierarchy This Package Previous Next Index