Class ncsa.horizon.model.SimplySupportedFileFormat
java.lang.Object
|
+--ncsa.horizon.model.FileFormat
|
+--ncsa.horizon.model.SupportedFileFormat
|
+--ncsa.horizon.model.SimplySupportedFileFormat
- public class SimplySupportedFileFormat
- extends SupportedFileFormat
a class encapsulating file formats that are supported through
developer-provided FormatHandlers.
See FileFormat for
a full description of the purpose of this class.
Supporting New File Formats
This class provides a simple way to represent a format that
is supported by a simple FormatHandler. To use this class,
one passes all of the FileFormat parameters--including the specific
FormatHandler class name to use--to the constructor. The
createFormatHandler() will then instantiate the FormatHandler
class by passing the data source object (usually a File or URL)
to the FormatHandler(Object) constructor.
- See Also:
- Serialized Form
|
Field Summary
|
|
java.lang.reflect.Constructor
|
maker
|
|
Constructor Summary
|
SimplySupportedFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
java.lang.String[] ex,
MagicNumber mnum,
java.lang.String[] mimes,
java.lang.String formatHandlerClass)
|
SimplySupportedFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
java.lang.String[] ex,
MagicNumber mnum,
java.lang.String[] mimes)
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
maker
protected transient java.lang.reflect.Constructor maker
SimplySupportedFileFormat
public SimplySupportedFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
java.lang.String[] ex,
MagicNumber mnum,
java.lang.String[] mimes,
java.lang.String formatHandlerClass)
throws java.lang.ClassNotFoundException,
java.lang.IllegalArgumentException
SimplySupportedFileFormat
public SimplySupportedFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
java.lang.String[] ex,
MagicNumber mnum,
java.lang.String[] mimes)
setFormatHandler
public void setFormatHandler(java.lang.String clname)
throws java.lang.ClassNotFoundException,
java.lang.IllegalArgumentException
createFormatHandler
public FormatHandler createFormatHandler(java.lang.Object data)
throws DataAccessException,
UnsupportedFormatException,
java.lang.IllegalArgumentException
- Overrides:
- createFormatHandler in class FileFormat
writeObject
public void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
readObject
public void readObject(java.io.ObjectInputStream in)
throws java.io.IOException