Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class ncsa.horizon.model.UnknownFileFormat

java.lang.Object
  |
  +--ncsa.horizon.model.FileFormat
        |
        +--ncsa.horizon.model.UnknownFileFormat

public class UnknownFileFormat
extends FileFormat
a representation of an unrecognized file format.

See Also:
Serialized Form

Constructor Summary
UnknownFileFormat()
           
 
Method Summary
FormatHandler createFormatHandler(java.lang.Object data)
          create a FormatHandler object for a given identifying object.
java.lang.String[] getContentTypes()
          return the MIME types that can be associated with this file format.
java.lang.String getDescription()
          return a short string describing the format.
java.lang.String[] getExtensions()
          return a list of the recognized file extensions identifying a file as having this format.
MagicNumber getMagicNumber()
          return a MagicNumber object that represents the leading byte signiture for the file format, or null if such a signiture is not known.
java.lang.String getName()
          get the name of this file format.
java.lang.String getReference()
          return a string giving a reference to definition of or information about the format.
java.lang.String getReferenceURL()
          return a URL to a reference to definition of or information about the format.
 
Methods inherited from class ncsa.horizon.model.FileFormat
createFormatHandler, getContentTypes, getDescription, getExtensions, getMagicNumber, getName, getReference, getReferenceURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

UnknownFileFormat

public UnknownFileFormat()
Method Detail

getName

public java.lang.String getName()
get the name of this file format. The return should be non-null.
Overrides:
getName in class FileFormat

getDescription

public java.lang.String getDescription()
return a short string describing the format. This can be null.
Overrides:
getDescription in class FileFormat

getReference

public java.lang.String getReference()
return a string giving a reference to definition of or information about the format. This can be null.
Overrides:
getReference in class FileFormat

getReferenceURL

public java.lang.String getReferenceURL()
return a URL to a reference to definition of or information about the format. This can be null.
Overrides:
getReferenceURL in class FileFormat

getContentTypes

public java.lang.String[] getContentTypes()
return the MIME types that can be associated with this file format. If null is returned, no MIME types are known.
Overrides:
getContentTypes in class FileFormat

getMagicNumber

public MagicNumber getMagicNumber()
return a MagicNumber object that represents the leading byte signiture for the file format, or null if such a signiture is not known.
Overrides:
getMagicNumber in class FileFormat
See Also:
MagicNumber

getExtensions

public java.lang.String[] getExtensions()
return a list of the recognized file extensions identifying a file as having this format. These extensions should start with a period if applicable. If null is returned, no extensions will be recognized.
Overrides:
getExtensions in class FileFormat

createFormatHandler

public FormatHandler createFormatHandler(java.lang.Object data)
                                                    throws UnsupportedFormatException
create a FormatHandler object for a given identifying object.
Parameters:
data - the object identifying the data file. This is usually a File or a URL but can be something else depending on the format.
Overrides:
createFormatHandler in class FileFormat

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD