Package org.ujmp.core.filematrix
Enum Class FileFormat
- All Implemented Interfaces:
Serializable
,Comparable<FileFormat>
,Constable
Import and export formats that are supported.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final String[]
private FileFilter
private static final Object
private final byte[]
private static int
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FileFormat
(String description, byte[] magicBytes, String... extensions) private
FileFormat
(String description, int offset, byte[] magicBytes, String... extensions) private
FileFormat
(String description, String... extensions) -
Method Summary
Modifier and TypeMethodDescriptionString[]
private byte[]
static int
private int
static FileFormat
guess
(byte[] data) static FileFormat
static FileFormat
guess
(InputStream is) static FileFormat
static boolean
isCompressed
(FileFormat fileformat) static boolean
isImage
(FileFormat fileformat) static boolean
isText
(FileFormat fileformat) static FileFormat
Returns the enum constant of this class with the specified name.static FileFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
AES
-
AI
-
AML
-
ARJ
-
ARC
-
ARFF
-
ATOM
-
ATT
-
AVI
-
BMP
-
BZ
-
C
-
CAB
-
CLASS
-
CS
-
CSV
-
DB
-
DIRECTORY
-
DLL
-
DOC
-
DOCX
-
DWG
-
ELF
-
EML
-
EPS
-
EPUB
-
EXE
-
FDB
-
FIG
-
FILE
-
FLAC
-
FLV
-
GIF
-
GRAPHML
-
GZ
-
H
-
HEX
-
HLP
-
HTML
-
ICO
-
ImapMessages
-
ImapFolders
-
ISO
-
JAVA
-
JAR
-
JPG
-
JPEG2000
-
LOG
-
M
-
MAT
-
MDB
-
MDF
-
MID
-
MKV
-
MOV
-
MP3
-
MP4
-
MPG
-
MSG
-
MSI
-
MTX
-
NET
-
OGG
-
OBJ
-
PDF
-
PHP
-
PLT
-
PNG
-
PPM
-
PPT
-
PPTX
-
PS
-
PSD
-
PST
-
R
-
RAR
-
RPM
-
RSS
-
RTF
-
SAV
-
SER
-
SLN
-
SPARSECSV
-
SQL
-
SWF
-
SYS
-
TAR
-
TEX
-
TIF
-
TTF
-
TXT
-
VCF
-
VMDK
-
VSD
-
WAV
-
WMA
-
WMF
-
WMV
-
XCF
-
XLS
-
XLSX
-
XML
-
Z
-
Z7
-
ZIP
-
ZLIB
-
ZOO
-
-
Field Details
-
extensions
-
description
-
magicBytes
private final byte[] magicBytes -
offset
private final int offset -
maxMagicByteLength
private static int maxMagicByteLength -
lock
-
fileFilter
-
-
Constructor Details
-
FileFormat
-
FileFormat
-
FileFormat
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getExtensions
-
getFileFilter
-
getDescription
-
guess
-
guess
- Throws:
IOException
-
getMaxMagicByteLength
public static int getMaxMagicByteLength() -
getOffset
private int getOffset() -
getMagicBytes
private byte[] getMagicBytes() -
isImage
-
isCompressed
-
isText
-
guess
-
guess
- Throws:
IOException
-