vqServer API Class vq.server.Filetype

java.lang.Object
    |
    +----vq.utils.klentry
            |
            +----vq.server.Filetype
Contents
Package index
Package
API index

public class Filetype
extends klentry
Represents a file type. Contains all the information vqServer needs to handle files of a particular type. Warning: the key field is used to store the file extension associated with the file type.


Constructor Index

 o Filetype()
Creates an empty unlinked file type entry.

Method Index

 o getExt()
Returns the file extension associated with the file type.
 o getFilter()
Returns the (list of) filter servlet specification(s) associated with the file type.
 o getIcon()
Returns the alias of the icon associated with the file type.
 o getInterpreter()
Returns the CGI Script interpreter associated with the file type.
 o getMimeType()
Returns the MIME type associated with the file type.
 o save(vqos)
Saves the filetype to the output stream specified.
 o setExt(String)
Sets the file extension.
 o setFilter(String)
Sets the (list of) filter servlet specification(s) associated with the file type.
 o setIcon(String)
Sets the alias of the icon associated with the file type.
 o setInterpreter(String)
Sets the CGI Script interpreter associated with the file type.
 o setMimeType(String)
Sets the MIME type.

Constructor Detail

 o Filetype
public Filetype()
          Creates an empty unlinked file type entry.

Method Detail

 o save
public void save(vqos os) throws java.io.IOException
          Saves the filetype to the output stream specified.
Overrides:
save in class klentry
 o getExt
public java.lang.String getExt()
          Returns the file extension associated with the file type.
 o setExt
public void setExt(java.lang.String theExt)
          Sets the file extension. Call Filetypes.remove(Filetype) and Filetypes.add(Filetype) after using this method to maintain ordering of the Filetypes list.
 o getMimeType
public java.lang.String getMimeType()
          Returns the MIME type associated with the file type.
 o setMimeType
public void setMimeType(java.lang.String theType)
          Sets the MIME type.
 o getFilter
public java.lang.String getFilter()
          Returns the (list of) filter servlet specification(s) associated with the file type.
 o setFilter
public void setFilter(java.lang.String theFilter)
          Sets the (list of) filter servlet specification(s) associated with the file type.
 o getInterpreter
public java.lang.String getInterpreter()
          Returns the CGI Script interpreter associated with the file type.
 o setInterpreter
public void setInterpreter(java.lang.String theInterpreter)
          Sets the CGI Script interpreter associated with the file type.
 o getIcon
public java.lang.String getIcon()
          Returns the alias of the icon associated with the file type.
 o setIcon
public void setIcon(java.lang.String theIcon)
          Sets the alias of the icon associated with the file type.


vqServer API version 1.9. vqServer and the vqServer API are copyright © Steve Shering and vqSoft 1997-2000. Last updated 15 May 2000.

Contents
Package index
Package
API index