com.ibm.wbi.http
Class ExtensionInformation

java.lang.Object
  |
  +--com.ibm.wbi.http.ExtensionInformation

public final class ExtensionInformation
extends java.lang.Object

Provides extension information about the different extension types.


Field Summary
 boolean binary
          Binary?
static java.lang.String COPYRIGHT
          IBM copyright information.
 java.lang.String formatType
          Format type.
 java.lang.String gifFile
          GIF file.
 java.lang.String mimeType
          MIME type.
 
Method Summary
static ExtensionInformation getDirExtension()
          Get directory extension information.
static ExtensionInformation getExtension(java.lang.String ext)
          Get extension information about an extension specified.
static ExtensionInformation getExtension(java.lang.String ext, java.lang.String defaultExt)
          Get extension information about an extension specified.
static ExtensionInformation getFileType(java.lang.String name)
          Get file extension information.
static ExtensionInformation getFileType(java.lang.String name, java.lang.String defaultExt)
          Get file extension information.
static ExtensionInformation getHTMLExtension()
          Get HTML extension information.
static ExtensionInformation getLinkExtension()
          Get link extension information.
static ExtensionInformation getTextExtension()
          Get text extension information.
static ExtensionInformation getUnknownExtension()
          Get unknown extension information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright information.

mimeType

public java.lang.String mimeType
MIME type.

binary

public boolean binary
Binary?

formatType

public java.lang.String formatType
Format type.

gifFile

public java.lang.String gifFile
GIF file.
Method Detail

getExtension

public static ExtensionInformation getExtension(java.lang.String ext,
                                                java.lang.String defaultExt)
Get extension information about an extension specified.
Parameters:
ext - The extension.
defaultExt - The default.
Returns:
The extension information.

getExtension

public static ExtensionInformation getExtension(java.lang.String ext)
Get extension information about an extension specified.
Parameters:
ext - The extension.
Returns:
The extension information.

getHTMLExtension

public static ExtensionInformation getHTMLExtension()
Get HTML extension information.
Returns:
The extension information.

getUnknownExtension

public static ExtensionInformation getUnknownExtension()
Get unknown extension information.
Returns:
The extension information.

getTextExtension

public static ExtensionInformation getTextExtension()
Get text extension information.
Returns:
The extension information.

getDirExtension

public static ExtensionInformation getDirExtension()
Get directory extension information.
Returns:
The extension information.

getLinkExtension

public static ExtensionInformation getLinkExtension()
Get link extension information.
Returns:
The extension information.

getFileType

public static ExtensionInformation getFileType(java.lang.String name,
                                               java.lang.String defaultExt)
Get file extension information.
Parameters:
name - The file name.
defaultExt - The default.
Returns:
The extension information.

getFileType

public static ExtensionInformation getFileType(java.lang.String name)
Get file extension information.
Parameters:
name - The file name.
Returns:
The extension information.