All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gc.iotools.fmt.base.FormatEnum Maven / Gradle / Ivy

The newest version!
package com.gc.iotools.fmt.base;

/*
 * Copyright (c) 2008,2013 Gabriele Contini. This source code is released
 * under the BSD License.
 */

import java.util.HashMap;
import java.util.Map;

/**
 * Enum of detected formats. Some format is "simple", some other is just a way
 * of encoding another kind of content. If a user need to support a new format
 * he must extend this class. It can't be a Java 5 enum because (AFAIK) they
 * can't be extended.
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 * 
Enum nameDescriptionSupported versions
N3DM3DM4, 1, 2, 3
ADVANCED_SYSTEMS_FORMATAdvanced Systems Format
AVIAudio/Video Interleaved Format
DWGAutoCAD Drawing1.0, 1.2, 1.3, 1.4, 2.0, 2.1, 2.2, 2.5, 2.6, R9, R10, R11/12, R13, R14, * 2000-2002, 2004-2005
BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKBOOKBinary Interchange File Format (BIFF) Workbook4W, 5, 7, 8, 8X
BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKSHEETBinary Interchange File Format (BIFF) Worksheet2, 3, 4S
BROADCAST_WAVEBroadcast WAVE1, 0
BZIP2This enum describes the * {@link BZIP2}compressed * file format.
CATPARTCATIA Model (Part Description)5
DROID_FILE_COLLECTION_FILE_FORMATDROID File Collection File Format1.0
DROID_SIGNATURE_FILE_FORMATDROID Signature File Format1.0
DXBDrawing Interchange Binary Format1.0
DRAWING_INTERCHANGE_FILE_FORMAT_ASCIIDrawing Interchange File Format (ASCII)1.0, 1.2, 1.3, 1.4, 2.0, 2.1, 2.2, 2.5, 2.6, R9, R10, R11/12, R13, R14, * 2000-2002, 2004-2005, Generic
DRAWING_INTERCHANGE_FILE_FORMAT_BINARYDrawing Interchange File Format (Binary)R10, R11/12, R13, R14, 2000-2002, 2004-2005
EPSFEncapsulated PostScript File Format1.2, 3.0, 2.0
EXCHANGEABLE_IMAGE_FILE_FORMAT_AUDIOExchangeable Image File Format (Audio)2.1, 2.2, 2.0
EXCHANGEABLE_IMAGE_FILE_FORMAT_COMPRESSEDExchangeable Image File Format (Compressed)2.1, 2.2, 2.0
EXCHANGEABLE_IMAGE_FILE_FORMAT_UNCOMPRESSEDExchangeable Image File Format (Uncompressed)2.2, 2.1, 2.0
XHTMLExtensible Hypertext Markup Language1.0, 1.1
XMLExtensible Markup Language1.0
FITSFlexible Image Transport System
GZGZIP Format
GIFGraphics Interchange Format1987a, 1989a
HTMLHypertext Markup Language2.0, 3.2, 4.0, 4.01
JPEGJPEG File Interchange Format1.00, 1.01, 1.02
JARJava Archive Format
CLASSJava Compiled Object Code
M7MM7M this enum describes a document signed and timestamped with Dike. * It's a proprietary format used by Infocert digital signature software.
MPEG_1_VIDEO_FORMATMPEG-1 Video Format
MPEG_2_VIDEO_FORMATMPEG-2 Video Format
MS_DOS_EXECUTABLEMS-DOS Executable
FLVMacromedia FLV1
SWFMacromedia Flash1, 2, 3, 4, 5, 6, 7
MDBMicrosoft Access Database2000
MSGMicrosoft Outlook Email Message97-2003
PPTMicrosoft Powerpoint Presentation4.0, 95, 97-2002
DOCMicrosoft Word for Windows Document6.0/95, 97-2003, 1.0, 2.0
OLE2_COMPOUND_DOCUMENT_FORMATOLE2 Compound Document Format
ODBOpenDocument Database Format1.0
ODGOpenDocument Drawing Format1.0
OPENDOCUMENT_FORMATOpenDocument Format1.0
ODPOpenDocument Presentation Format1.0
ODSOpenDocument Spreadsheet Format1.0
ODTOpenDocument Text Format1.0
SXCOpenOffice Calc1.0
SXDOpenOffice Draw1.0
SXIOpenOffice Impress1.0
SXWOpenOffice Writer1.0
PCXPCX0, 2, 3, 4, 5
PDFPortable Document Format1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
PNGPortable Network Graphics1.0, 1.1, 1.2
POSTSCRIPTPostScript2.0, 2.1, 3.0
POSTSCRIPTPostscript1.0
QTMQuicktime
RAW_JPEG_STREAMRaw JPEG Stream
RAMRealAudio Metafile
RTFRich Text Format1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8
SVGScalable Vector Graphics1.0, 1.1
STILL_PICTURE_INTERCHANGE_FILE_FORMATStill Picture Interchange File Format1.0
TAGGED_IMAGE_FILE_FORMATTagged Image File Format3, 4, 5, 6
TSDThis enum describes an RFC 5544 compliant TimeStampedData structure.
WRLVirtual Reality Modeling Language1.0, 97
WAVEFORM_AUDIOWaveform Audio
BMPWindows Bitmap1.0, 2.0, 3.0, 3.0 NT, 4.0, 5.0
WMAWindows Media Audio
WMVWindows Media Video
WINDOWS_NEW_EXECUTABLEWindows New Executable
WINDOWS_PORTABLE_EXECUTABLEWindows Portable Executable
WPGWordPerfect Graphics Metafile1.0
WORDPERFECT_FOR_MS_DOS_DOCUMENTWordPerfect for MS-DOS Document5.0
WORDPERFECT_FOR_MS_DOS_WINDOWS_DOCUMENTWordPerfect for MS-DOS/Windows Document5.1
ZIPZIP Format
* * @since 1.0 * @author dvd.smnt */ public class FormatEnum { /** * Constant integer for enum : ADVANCED_SYSTEMS_FORMAT . */ public static int ADVANCED_SYSTEMS_FORMAT_INT = 691; /** * Enum : ADVANCED_SYSTEMS_FORMAT : this enum describes format Advanced * Systems Format. */ public static final FormatEnum ADVANCED_SYSTEMS_FORMAT = new FormatEnum( "ADVANCED_SYSTEMS_FORMAT", ADVANCED_SYSTEMS_FORMAT_INT); /** * Constant integer for enum : AVI . */ public static final int AVI_INT = 655; /** * Enum : AVI : this enum describes format Audio/Video Interleaved Format. */ public static final FormatEnum AVI = new FormatEnum("AVI", AVI_INT); /** * Constant integer for enum : * BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKBOOK . */ public static final int BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKBOOK_INT = 685; /** * Enum : BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKBOOK : this enum * describes format Binary Interchange File Format (BIFF) Workbook. * Supported versions :4W, 5, 7, 8, 8X */ public static final FormatEnum BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKBOOK = new FormatEnum( "BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKBOOK", BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKBOOK_INT); /** * Constant integer for enum : * BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKSHEET . */ public static final int BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKSHEET_INT = 680; /** * Enum : BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKSHEET : this enum * describes format Binary Interchange File Format (BIFF) Worksheet. * Supported versions :2, 3, 4S */ public static final FormatEnum BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKSHEET = new FormatEnum( "BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKSHEET", BINARY_INTERCHANGE_FILE_FORMAT_BIFF_WORKSHEET_INT); /** * Constant integer for enum : BMP . */ public static final int BMP_INT = 732; /** * Enum : BMP : this enum describes format Windows Bitmap. Supported * versions :1.0, 2.0, 3.0, 3.0 NT, 4.0, 5.0 */ public static final FormatEnum BMP = new FormatEnum("BMP", BMP_INT); /** * Constant integer for enum : BROADCAST_WAVE . */ public static final int BROADCAST_WAVE_INT = 735; /** * Enum : BROADCAST_WAVE : this enum describes format Broadcast WAVE. * Supported versions :1, 0 */ public static final FormatEnum BROADCAST_WAVE = new FormatEnum( "BROADCAST_WAVE", BROADCAST_WAVE_INT); /** * Constant integer for enum : BZIP2 . */ public static final int BZIP2_INT = 102; /** * Enum : BZIP2 : this enum describes the * {@link BZIP2} * compressed file format. */ public static final FormatEnum BZIP2 = new FormatEnum("BZIP2", BZIP2_INT); /** * Constant integer for enum : CATPART . */ public static final int CATPART_INT = 851; /** * Enum : CATPART : this enum describes format CATIA Model (Part * Description). Supported versions :5 */ public static final FormatEnum CATPART = new FormatEnum("CATPART", CATPART_INT); /** * Constant integer for enum : CLASS . */ public static final int CLASS_INT = 802; /** * Enum : CLASS : this enum describes format Java Compiled Object Code. */ public static final FormatEnum CLASS = new FormatEnum("CLASS", CLASS_INT); /** * Constant integer for enum : DOC . */ public static final int DOC_INT = 734; /** * Enum : DOC : this enum describes format Microsoft Word for Windows * Document. Supported versions :6.0/95, 97-2003, 1.0, 2.0 */ public static final FormatEnum DOC = new FormatEnum("DOC", DOC_INT); /** * Constant integer for enum : DRAWING_INTERCHANGE_FILE_FORMAT_ASCII . */ public static final int DRAWING_INTERCHANGE_FILE_FORMAT_ASCII_INT = 766; /** * Enum : DRAWING_INTERCHANGE_FILE_FORMAT_ASCII : this enum describes * format Drawing Interchange File Format (ASCII). Supported versions * :1.0, 1.2, 1.3, 1.4, 2.0, 2.1, 2.2, 2.5, 2.6, R9, R10, R11/12, R13, * R14, 2000-2002, 2004-2005, Generic */ public static final FormatEnum DRAWING_INTERCHANGE_FILE_FORMAT_ASCII = new FormatEnum( "DRAWING_INTERCHANGE_FILE_FORMAT_ASCII", DRAWING_INTERCHANGE_FILE_FORMAT_ASCII_INT); /** * Constant integer for enum : DRAWING_INTERCHANGE_FILE_FORMAT_BINARY . */ public static final int DRAWING_INTERCHANGE_FILE_FORMAT_BINARY_INT = 744; /** * Enum : DRAWING_INTERCHANGE_FILE_FORMAT_BINARY : this enum describes * format Drawing Interchange File Format (Binary). Supported versions * :R10, R11/12, R13, R14, 2000-2002, 2004-2005 */ public static final FormatEnum DRAWING_INTERCHANGE_FILE_FORMAT_BINARY = new FormatEnum( "DRAWING_INTERCHANGE_FILE_FORMAT_BINARY", DRAWING_INTERCHANGE_FILE_FORMAT_BINARY_INT); /** * Constant integer for enum : DROID_FILE_COLLECTION_FILE_FORMAT . */ public static final int DROID_FILE_COLLECTION_FILE_FORMAT_INT = 769; /** * Enum : DROID_FILE_COLLECTION_FILE_FORMAT : this enum describes format * DROID File Collection File Format. Supported versions :1.0 */ public static final FormatEnum DROID_FILE_COLLECTION_FILE_FORMAT = new FormatEnum( "DROID_FILE_COLLECTION_FILE_FORMAT", DROID_FILE_COLLECTION_FILE_FORMAT_INT); /** * Constant integer for enum : DROID_SIGNATURE_FILE_FORMAT . */ public static final int DROID_SIGNATURE_FILE_FORMAT_INT = 768; /** * Enum : DROID_SIGNATURE_FILE_FORMAT : this enum describes format DROID * Signature File Format. Supported versions :1.0 */ public static final FormatEnum DROID_SIGNATURE_FILE_FORMAT = new FormatEnum( "DROID_SIGNATURE_FILE_FORMAT", DROID_SIGNATURE_FILE_FORMAT_INT); /** * Constant integer for enum : DWG . */ public static final int DWG_INT = 709; /** * Enum : DWG : this enum describes format AutoCAD Drawing. Supported * versions :1.0, 1.2, 1.3, 1.4, 2.0, 2.1, 2.2, 2.5, 2.6, R9, R10, R11/12, * R13, R14, 2000-2002, 2004-2005 */ public static final FormatEnum DWG = new FormatEnum("DWG", DWG_INT); /** * Constant integer for enum : DXB . */ public static final int DXB_INT = 761; /** * Enum : DXB : this enum describes format Drawing Interchange Binary * Format. Supported versions :1.0 */ public static final FormatEnum DXB = new FormatEnum("DXB", DXB_INT); /** * Constant integer for enum : EPSF . */ public static final int EPSF_INT = 332; /** * Enum : EPSF : this enum describes format Encapsulated PostScript File * Format. Supported versions :1.2, 3.0, 2.0 */ public static final FormatEnum EPSF = new FormatEnum("EPSF", EPSF_INT); /** * Constant integer for enum : EXCHANGEABLE_IMAGE_FILE_FORMAT_AUDIO . */ public static final int EXCHANGEABLE_IMAGE_FILE_FORMAT_AUDIO_INT = 750; /** * Enum : EXCHANGEABLE_IMAGE_FILE_FORMAT_AUDIO : this enum describes * format Exchangeable Image File Format (Audio). Supported versions :2.1, * 2.2, 2.0 */ public static final FormatEnum EXCHANGEABLE_IMAGE_FILE_FORMAT_AUDIO = new FormatEnum( "EXCHANGEABLE_IMAGE_FILE_FORMAT_AUDIO", EXCHANGEABLE_IMAGE_FILE_FORMAT_AUDIO_INT); /** * Constant integer for enum : EXCHANGEABLE_IMAGE_FILE_FORMAT_COMPRESSED . */ public static final int EXCHANGEABLE_IMAGE_FILE_FORMAT_COMPRESSED_INT = 751; /** * Enum : EXCHANGEABLE_IMAGE_FILE_FORMAT_COMPRESSED : this enum describes * format Exchangeable Image File Format (Compressed). Supported versions * :2.1, 2.2, 2.0 */ public static final FormatEnum EXCHANGEABLE_IMAGE_FILE_FORMAT_COMPRESSED = new FormatEnum( "EXCHANGEABLE_IMAGE_FILE_FORMAT_COMPRESSED", EXCHANGEABLE_IMAGE_FILE_FORMAT_COMPRESSED_INT); /** * Constant integer for enum : EXCHANGEABLE_IMAGE_FILE_FORMAT_UNCOMPRESSED * . */ public static final int EXCHANGEABLE_IMAGE_FILE_FORMAT_UNCOMPRESSED_INT = 752; /** * Enum : EXCHANGEABLE_IMAGE_FILE_FORMAT_UNCOMPRESSED : this enum * describes format Exchangeable Image File Format (Uncompressed). * Supported versions :2.2, 2.1, 2.0 */ public static final FormatEnum EXCHANGEABLE_IMAGE_FILE_FORMAT_UNCOMPRESSED = new FormatEnum( "EXCHANGEABLE_IMAGE_FILE_FORMAT_UNCOMPRESSED", EXCHANGEABLE_IMAGE_FILE_FORMAT_UNCOMPRESSED_INT); /** * Constant integer for enum : XHTML . */ public static final int XHTML_INT = 644; /** * Enum : XHTML : this enum describes format Extensible Hypertext Markup * Language. Supported versions :1.0, 1.1 */ public static final FormatEnum XHTML = new FormatEnum("XHTML", XHTML_INT); /** * Constant integer for enum : XML . */ public static final int XML_INT = 638; /** * Enum : XML : this enum describes format Extensible Markup Language. * Supported versions :1.0 */ public static final FormatEnum XML = new FormatEnum("XML", XML_INT); /** * Constant integer for enum : FITS . */ public static final int FITS_INT = 657; /** * Enum : FITS : this enum describes format Flexible Image Transport * System. */ public static final FormatEnum FITS = new FormatEnum("FITS", FITS_INT); /** * Constant integer for enum : FLV . */ public static final int FLV_INT = 653; /** * Enum : FLV : this enum describes format Macromedia FLV. Supported * versions :1 */ public static final FormatEnum FLV = new FormatEnum("FLV", FLV_INT); /** * Constant integer for enum : GIF . */ public static final int GIF_INT = 620; /** * Enum : GIF : this enum describes format Graphics Interchange Format. * Supported versions :1987a, 1989a */ public static final FormatEnum GIF = new FormatEnum("GIF", GIF_INT); /** * Constant integer for enum : GZ . */ public static final int GZ_INT = 386; /** * Enum : GZ : this enum describes format GZIP Format. */ public static final FormatEnum GZ = new FormatEnum("GZ", GZ_INT); /** * Constant integer for enum : HTML . */ public static final int HTML_INT = 645; /** * Enum : HTML : this enum describes format Hypertext Markup Language. * Supported versions :2.0, 3.2, 4.0, 4.01 */ public static final FormatEnum HTML = new FormatEnum("HTML", HTML_INT); /** * Constant integer for enum : JAR . */ public static final int JAR_INT = 777; /** * Enum : JAR : this enum describes format Java Archive Format. */ public static final FormatEnum JAR = new FormatEnum("JAR", JAR_INT); /** * Constant integer for enum : JPEG . */ public static final int JPEG_INT = 669; /** * Enum : JPEG : this enum describes format JPEG File Interchange Format. * Supported versions :1.00, 1.01, 1.02 */ public static final FormatEnum JPEG = new FormatEnum("JPEG", JPEG_INT); /** * Constant integer for enum : MPEG_1_VIDEO_FORMAT . */ public static final int MPEG_1_INT = 659; /** * Enum : MPEG_1 : this enum describes format MPEG-1 Video Format. */ public static final FormatEnum MPEG_1 = new FormatEnum("MPEG_1", MPEG_1_INT); /** * Constant integer for enum : MPEG_2 . */ public static final int MPEG_2_INT = 660; /** * Enum : MPEG_2 : this enum describes format MPEG-2 Video Format. */ public static final FormatEnum MPEG_2 = new FormatEnum("MPEG_2T", MPEG_2_INT); /** * Constant integer for enum : MSG . */ public static final int MSG_INT = 822; /** * Enum : MSG : this enum describes format Microsoft Outlook Email * Message. Supported versions :97-2003 */ public static final FormatEnum MSG = new FormatEnum("MSG", MSG_INT); /** * Constant integer for enum : MS_DOS_EXECUTABLE . */ public static final int MS_DOS_EXECUTABLE_INT = 774; /** * Enum : MS_DOS_EXECUTABLE : this enum describes format MS-DOS * Executable. */ public static final FormatEnum MS_DOS_EXECUTABLE = new FormatEnum( "MS_DOS_EXECUTABLE", MS_DOS_EXECUTABLE_INT); /** * Constant integer for enum : N3DM . */ public static final int N3DM_INT = 831; /** * Enum : N3DM : this enum describes format 3DM. Supported versions :4, 1, * 2, 3 */ public static final FormatEnum N3DM = new FormatEnum("N3DM", N3DM_INT); /** * Constant integer for enum : ODB . */ public static final int ODB_INT = 783; /** * Enum : ODB : this enum describes format OpenDocument Database Format. * Supported versions :1.0 */ public static final FormatEnum ODB = new FormatEnum("ODB", ODB_INT); /** * Constant integer for enum : ODG . */ public static final int ODG_INT = 782; /** * Enum : ODG : this enum describes format OpenDocument Drawing Format. * Supported versions :1.0 */ public static final FormatEnum ODG = new FormatEnum("ODG", ODG_INT); /** * Constant integer for enum : ODP . */ public static final int ODP_INT = 781; /** * Enum : ODP : this enum describes format OpenDocument Presentation * Format. Supported versions :1.0 */ public static final FormatEnum ODP = new FormatEnum("ODP", ODP_INT); /** * Constant integer for enum : ODS . */ public static final int ODS_INT = 780; /** * Enum : ODS : this enum describes format OpenDocument Spreadsheet * Format. Supported versions :1.0 */ public static final FormatEnum ODS = new FormatEnum("ODS", ODS_INT); /** * Constant integer for enum : ODT . */ public static final int ODT_INT = 779; /** * Enum : ODT : this enum describes format OpenDocument Text Format. * Supported versions :1.0 */ public static final FormatEnum ODT = new FormatEnum("ODT", ODT_INT); /** * Constant integer for enum : OLE2_COMPOUND_DOCUMENT_FORMAT . */ public static final int OLE2_COMPOUND_DOCUMENT_FORMAT_INT = 767; /** * Enum : OLE2_COMPOUND_DOCUMENT_FORMAT : this enum describes format OLE2 * Compound Document Format. */ public static final FormatEnum OLE2_COMPOUND_DOCUMENT_FORMAT = new FormatEnum( "OLE2_COMPOUND_DOCUMENT_FORMAT", OLE2_COMPOUND_DOCUMENT_FORMAT_INT); /** * Constant integer for enum : OPENDOCUMENT_FORMAT . */ public static final int OPENDOCUMENT_FORMAT_INT = 778; /** * Enum : OPENDOCUMENT_FORMAT : this enum describes format OpenDocument * Format. Supported versions :1.0 */ public static final FormatEnum OPENDOCUMENT_FORMAT = new FormatEnum( "OPENDOCUMENT_FORMAT", OPENDOCUMENT_FORMAT_INT); /** * Constant integer for enum : PCX . */ public static final int PCX_INT = 625; /** * Enum : PCX : this enum describes format PCX. Supported versions :0, 2, * 3, 4, 5 */ public static final FormatEnum PCX = new FormatEnum("PCX", PCX_INT); /** * Constant integer for enum : PDF . */ public static final int PDF_INT = 637; /** * Enum : PDF : this enum describes format Portable Document Format. * Supported versions :1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 */ public static final FormatEnum PDF = new FormatEnum("PDF", PDF_INT); /** * Constant integer for enum : PNG . */ public static final int PNG_INT = 666; /** * Enum : PNG : this enum describes format Portable Network Graphics. * Supported versions :1.0, 1.1, 1.2 */ public static final FormatEnum PNG = new FormatEnum("PNG", PNG_INT); /** * Constant integer for enum : POSTSCRIPT . */ public static final int POSTSCRIPT_INT = 138; /** * Enum : POSTSCRIPT : this enum describes format Postscript. Supported * versions :1.0 */ public static final FormatEnum POSTSCRIPT = new FormatEnum("POSTSCRIPT", POSTSCRIPT_INT); /** * Constant integer for enum : PPT . */ public static final int PPT_INT = 135; /** * Enum : PPT : this enum describes format Microsoft Powerpoint * Presentation. Supported versions :4.0, 95, 97-2002 */ public static final FormatEnum PPT = new FormatEnum("PPT", PPT_INT); /** * Constant integer for enum : QTM . */ public static final int QTM_INT = 658; /** * Enum : QTM : this enum describes format Quicktime. */ public static final FormatEnum QTM = new FormatEnum("QTM", QTM_INT); /** * Constant integer for enum : RAM . */ public static final int RAM_INT = 256; /** * Enum : RAM : this enum describes format RealAudio Metafile. */ public static final FormatEnum RAM = new FormatEnum("RAM", RAM_INT); /** * Constant integer for enum : RAW_JPEG_STREAM . */ public static final int RAW_JPEG_STREAM_INT = 670; /** * Enum : RAW_JPEG_STREAM : this enum describes format Raw JPEG Stream. */ public static final FormatEnum RAW_JPEG_STREAM = new FormatEnum( "RAW_JPEG_STREAM", RAW_JPEG_STREAM_INT); /** * Constant integer for enum : RTF . */ public static final int RTF_INT = 753; /** * Enum : RTF : this enum describes format Rich Text Format. Supported * versions :1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8 */ public static final FormatEnum RTF = new FormatEnum("RTF", RTF_INT); /** * Constant integer for enum : STILL_PICTURE_INTERCHANGE_FILE_FORMAT . */ public static final int STILL_PICTURE_INTERCHANGE_FILE_FORMAT_INT = 671; /** * Enum : STILL_PICTURE_INTERCHANGE_FILE_FORMAT : this enum describes * format Still Picture Interchange File Format. Supported versions :1.0 */ public static final FormatEnum STILL_PICTURE_INTERCHANGE_FILE_FORMAT = new FormatEnum( "STILL_PICTURE_INTERCHANGE_FILE_FORMAT", STILL_PICTURE_INTERCHANGE_FILE_FORMAT_INT); /** * Constant integer for enum : SVG . */ public static final int SVG_INT = 635; /** * Enum : SVG : this enum describes format Scalable Vector Graphics. * Supported versions :1.0, 1.1 */ public static final FormatEnum SVG = new FormatEnum("SVG", SVG_INT); /** * Constant integer for enum : SWF . */ public static final int SWF_INT = 652; /** * Enum : SWF : this enum describes format Macromedia Flash. Supported * versions :1, 2, 3, 4, 5, 6, 7 */ public static final FormatEnum SWF = new FormatEnum("SWF", SWF_INT); /** * Constant integer for enum : SXC . */ public static final int SXC_INT = 746; /** * Enum : SXC : this enum describes format OpenOffice Calc. Supported * versions :1.0 */ public static final FormatEnum SXC = new FormatEnum("SXC", SXC_INT); /** * Constant integer for enum : SXD . */ public static final int SXD_INT = 748; /** * Enum : SXD : this enum describes format OpenOffice Draw. Supported * versions :1.0 */ public static final FormatEnum SXD = new FormatEnum("SXD", SXD_INT); /** * Constant integer for enum : SXI . */ public static final int SXI_INT = 747; /** * Enum : SXI : this enum describes format OpenOffice Impress. Supported * versions :1.0 */ public static final FormatEnum SXI = new FormatEnum("SXI", SXI_INT); /** * Constant integer for enum : SXW . */ public static final int SXW_INT = 745; /** * Enum : SXW : this enum describes format OpenOffice Writer. Supported * versions :1.0 */ public static final FormatEnum SXW = new FormatEnum("SXW", SXW_INT); /** * Constant integer for enum : TAGGED_IMAGE_FILE_FORMAT . */ public static final int TIFF_INT = 612; /** * Enum : TIFF : this enum describes format Tagged Image File Format. * Supported versions :3, 4, 5, 6 */ public static final FormatEnum TIFF = new FormatEnum("TIFF", TIFF_INT); /** * Constant integer for enum : WAVEFORM_AUDIO . */ public static final int WAVEFORM_AUDIO_INT = 654; /** * Enum : WAVEFORM_AUDIO : this enum describes format Waveform Audio. */ public static final FormatEnum WAVEFORM_AUDIO = new FormatEnum( "WAVEFORM_AUDIO", WAVEFORM_AUDIO_INT); /** * Constant integer for enum : WMA . */ public static final int WMA_INT = 692; /** * Enum : WMA : this enum describes format Windows Media Audio. */ public static final FormatEnum WMA = new FormatEnum("WMA", WMA_INT); /** * Constant integer for enum : WMV . */ public static final int WMV_INT = 693; /** * Enum : WMV : this enum describes format Windows Media Video. */ public static final FormatEnum WMV = new FormatEnum("WMV", WMV_INT); /** * Constant integer for enum : WINDOWS_NEW_EXECUTABLE . */ public static final int WINDOWS_NEW_EXECUTABLE_INT = 775; /** * Enum : WINDOWS_NEW_EXECUTABLE : this enum describes format Windows New * Executable. */ public static final FormatEnum WINDOWS_NEW_EXECUTABLE = new FormatEnum( "WINDOWS_NEW_EXECUTABLE", WINDOWS_NEW_EXECUTABLE_INT); /** * Constant integer for enum : WINDOWS_PORTABLE_EXECUTABLE . */ public static final int WINDOWS_PORTABLE_EXECUTABLE_INT = 776; /** * Enum : WINDOWS_PORTABLE_EXECUTABLE : this enum describes format Windows * Portable Executable. */ public static final FormatEnum WINDOWS_PORTABLE_EXECUTABLE = new FormatEnum( "WINDOWS_PORTABLE_EXECUTABLE", WINDOWS_PORTABLE_EXECUTABLE_INT); /** * Constant integer for enum : WORDPERFECT_FOR_MS_DOS_DOCUMENT . */ public static final int WORDPERFECT_FOR_MS_DOS_DOCUMENT_INT = 736; /** * Enum : WORDPERFECT_FOR_MS_DOS_DOCUMENT : this enum describes format * WordPerfect for MS-DOS Document. Supported versions :5.0 */ public static final FormatEnum WORDPERFECT_FOR_MS_DOS_DOCUMENT = new FormatEnum( "WORDPERFECT_FOR_MS_DOS_DOCUMENT", WORDPERFECT_FOR_MS_DOS_DOCUMENT_INT); /** * Constant integer for enum : WORDPERFECT_FOR_MS_DOS_WINDOWS_DOCUMENT . */ public static final int WORDPERFECT_FOR_MS_DOS_WINDOWS_DOCUMENT_INT = 737; /** * Enum : WORDPERFECT_FOR_MS_DOS_WINDOWS_DOCUMENT : this enum describes * format WordPerfect for MS-DOS/Windows Document. Supported versions :5.1 */ public static final FormatEnum WORDPERFECT_FOR_MS_DOS_WINDOWS_DOCUMENT = new FormatEnum( "WORDPERFECT_FOR_MS_DOS_WINDOWS_DOCUMENT", WORDPERFECT_FOR_MS_DOS_WINDOWS_DOCUMENT_INT); /** * Constant integer for enum : WPG . */ public static final int WPG_INT = 738; /** * Enum : WPG : this enum describes format WordPerfect Graphics Metafile. * Supported versions :1.0 */ public static final FormatEnum WPG = new FormatEnum("WPG", WPG_INT); /** * Constant integer for enum : WRL . */ public static final int WRL_INT = 662; /** * Enum : WRL : this enum describes format Virtual Reality Modeling * Language. Supported versions :1.0, 97 */ public static final FormatEnum WRL = new FormatEnum("WRL", WRL_INT); /** * Constant integer for enum : ZIP . */ public static final int ZIP_INT = 382; /** * Enum : ZIP : this enum describes format ZIP Format. */ public static final FormatEnum ZIP = new FormatEnum("ZIP", ZIP_INT); public static final int UNLISTED_INT = 0; public static final FormatEnum UNLISTED = new FormatEnum("unlisted", UNLISTED_INT); public static final int BASE64_INT = 50; public static final FormatEnum BASE64 = new FormatEnum("BASE64", BASE64_INT); public static final int M7M_INT = 300; /** * Enum : M7M this enum describes a document signed and timestamped with * Dike. It's a proprietary format used by Infocert digital signature * software. */ public static final FormatEnum M7M = new FormatEnum("M7M", M7M_INT); public static final int PEM_INT = 600; public static final FormatEnum PEM = new FormatEnum("PEM", PEM_INT); public static final int PKCS7_INT = 700; public static final FormatEnum PKCS7 = new FormatEnum("PKCS7", PKCS7_INT); public static final int TIMESTAMP_INT = 800; /** * Enum : TIMESTAMP this enum describes an RFC 3161 compliant timestamp * response. */ public static final FormatEnum TIMESTAMP = new FormatEnum("TIMESTAMP", TIMESTAMP_INT); public final static int TSD_INT = 805; /** * Enum : TSD this enum describes an RFC 5544 compliant TimeStampedData * structure. */ public static final FormatEnum TSD = new FormatEnum("TSD", TSD_INT); public static final int UNKNOWN_INT = 900; /** * This enum describes an unknown file format. */ public static final FormatEnum UNKNOWN = new FormatEnum("UNKNOWN", UNKNOWN_INT); /** * @see getEnum(String name) * @deprecated use only for backward compatibility * @param clazz * @param name * @return */ public static FormatEnum getEnum(Class clazz, final String name) { return enumMap.get(name); } public static FormatEnum getEnum(final String name) { return enumMap.get(name); } public static FormatEnum[] values() { return enumMap.values().toArray(new FormatEnum[0]); } /** * constructor is protected to allow extensions. * * @param enumName * @param enumInt */ public final String name; public final int enumInt; private static Map enumMap; protected FormatEnum(final String enumName, final int enumInt) { this.name = enumName; this.enumInt = enumInt; if (FormatEnum.enumMap == null){ FormatEnum.enumMap = new HashMap(); } FormatEnum.enumMap.put(enumName, this); } public String getName(){ return this.name; } @Override public String toString() { return "[" + getName() + "]"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy