
DescriptionFilename extension
QuickTime movieMOV
MP3 soundMP3
Adobe PDF (Portable Document Format)PDF
PNG imagePNG
Adobe PostScriptPS
Adobe PhotoshopPSD
TIFF imageTIFF
Wave soundWAV
Returns the format of the file contents (as one of the strings in the
first column of the table above), or the empty string if the format
getFileFormat( ) : String
is not recognized or if the file doesn’t exist. This function checks for
all supported file formats, so it may be a bit slow.
Returns true if the file exists and its contents has the specified format
(as one of the strings in the first column of the table above);
isFileFormat( format :
String ) : Boolean
otherwise it returns false. This function is faster than getFileFormat()
since it has to check for only a single file format.
Getting contents statistics
The functions in this section interpret the file contents to obtain certain file-format-specific
statistics. The requested statistic is specified through its name (as defined for each format in
subsequent sections). Each statistic has a well-defined data type (listed with its description). It
is recommended to use the “get” function with the appropriate data type, but reasonable
conversions between data types are supported.
The functions return the null object (as opposed to an empty string or a zero number) if:
• The file doesn’t exist.
• The requested statistic is unknown or unsupported for the file format.
• The requested statistic is not present in the file or is not applicable to the file.
• The result can’t be converted to the requested data type.
Returns the requested statistic as a string.
getString( query : String ) : String
Returns the requested statistic as a list of
strings.
getStringList( query : String ) : String[ ]
Returns the requested statistic as a number.
getNumber( query : String ) : Number
Returns the requested statistic as a Boolean.
getBoolean( query : String ) : Boolean
488
Enfocus Switch 10
Comentarios a estos manuales