| java.lang.Object org.w3c.tools.resources.upgrade.Attribute org.w3c.tools.resources.upgrade.IPTemplatesAttribute
IPTemplatesAttribute | public class IPTemplatesAttribute extends Attribute (Code) | | The IPTemplates attribute description.
Maintains a list of IP templates (short arrays, to allow for the splash).
|
Method Summary | |
public boolean | checkValue(Object obj) | final public int | getPickleLength(Object value) Get the number of bytes required to save that attribute value.
Parameters: The - value about to be pickled. | public void | pickle(DataOutputStream out, Object obj) Pickle an array of IP templates to the given output stream. | public Object | unpickle(DataInputStream in) Unpickle an array of IP templates from the given input stream.
Parameters: in - The input stream to unpickle from. |
checkValue | public boolean checkValue(Object obj)(Code) | | Is the given value a valid IPTemplates value ?
Parameters: obj - The object to test. exception: IllegalAttributeAccess - If the provided value doesn't pass thetest. |
getPickleLength | final public int getPickleLength(Object value)(Code) | | Get the number of bytes required to save that attribute value.
Parameters: The - value about to be pickled. The number of bytes needed to pickle that value. |
pickle | public void pickle(DataOutputStream out, Object obj) throws IOException(Code) | | Pickle an array of IP templates to the given output stream.
Parameters: out - The output stream to pickle to. Parameters: obj - The object to pickle. exception: IOException - If some IO error occured. |
unpickle | public Object unpickle(DataInputStream in) throws IOException(Code) | | Unpickle an array of IP templates from the given input stream.
Parameters: in - The input stream to unpickle from. An instance of short[][]. exception: IOException - If some IO error occured. |
|
|