Class w3c.jigsaw.resources.MIMETypeAttribute
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.resources.MIMETypeAttribute

java.lang.Object
   |
   +----w3c.jigsaw.resources.Attribute
           |
           +----w3c.jigsaw.resources.MIMETypeAttribute

public class MIMETypeAttribute
extends Attribute
The generic class of MIME type attributes.

Constructor Index

 o MIMETypeAttribute(String, Object, int)

Method Index

 o checkValue(Object)
Is the given object a valid MIMETypeAttribute value ?
 o pickle(DataOutputStream, Object)
Pickle a MIME type to the given output stream.
 o unpickle(DataInputStream)
Unpickle a MIME type from the given input stream.

Constructors

 o MIMETypeAttribute
  public MIMETypeAttribute(String name,
                           Object def,
                           int flags)

Methods

 o checkValue
  public boolean checkValue(Object obj)
Is the given object a valid MIMETypeAttribute value ?
Parameters:
obj - The object to test.
Returns:
A boolean true if okay.
Overrides:
checkValue in class Attribute
 o pickle
  public void pickle(DataOutputStream out,
                     Object t) throws IOException
Pickle a MIME type 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 a MIME type from the given input stream.
Parameters:
in - The input stream to unpickle from.
Returns:
An instance of String.
Throws: IOException
If some IO error occured.
Overrides:
unpickle in class Attribute

All Packages  Class Hierarchy  This Package  Previous  Next  Index