|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adobe.idml.Package
public class Package
Contains methods for working with IDML packages.
| Constructor Summary | |
|---|---|
Package()
|
|
| Method Summary | |
|---|---|
static void |
compress(java.io.File locationDir,
java.lang.String fileName)
The compress method builds an IDML compatible archive from all the files contained in directory provided. |
static void |
compress(java.lang.String dirPath,
java.lang.String fileName)
The compress method builds an IDML compatible archive from all the files contained in directory provided. |
static java.io.File |
decompress(java.io.File idmlSrc)
Creates a temporary directory and decompresses the IDML file provided into that directory. |
static void |
decompress(java.io.File idmlSrcFile,
java.io.File idmlDestinationFile)
The decompress method can be used to extract an IDML archive specified in the idmlSrcFile parameter to the directory specified in the idmlDestinationFile parameter. |
static java.io.File |
decompress(java.lang.String idmlFilePath)
Creates a temporary directory and decompresses the IDML file provided into that directory. |
static void |
decompress(java.lang.String compressedFilePath,
java.lang.String targetDirPath)
The decompress method can be used to extract an IDML archive specified in the compressedFilePath parameter to the directory specified in the targetDirPath parameter. |
static boolean |
isAPackage(java.lang.String filePath)
Is this an IDML package. |
static void |
main(java.lang.String[] args)
Driver method for packaging and unpackaging. |
static void |
verifyPackage(java.lang.String filePath)
Throws an exception if the file is not an IDML package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Package()
| Method Detail |
|---|
public static boolean isAPackage(java.lang.String filePath)
filePath - A path to an IDML file that may or may not already exist.
public static void verifyPackage(java.lang.String filePath)
filePath - A path to the file requiring verification.
public static void decompress(java.lang.String compressedFilePath,
java.lang.String targetDirPath)
throws java.io.IOException
compressedFilePath - the IDML archive to decompresstargetDirPath - The directory to extract files to.
java.io.IOException
public static void decompress(java.io.File idmlSrcFile,
java.io.File idmlDestinationFile)
throws java.io.IOException
idmlSrcFile - The source file.idmlDestinationFile - The destination file.
java.io.IOException
public static java.io.File decompress(java.lang.String idmlFilePath)
throws java.io.IOException
idmlFilePath - The location of the IDML file to be decompressed.
java.io.IOException
public static java.io.File decompress(java.io.File idmlSrc)
throws java.io.IOException
idmlSrc - The location of the IDML file to be decompressed.
java.io.IOException
public static void compress(java.lang.String dirPath,
java.lang.String fileName)
throws java.io.IOException
dirPath - A path to a folder containing the files to be compressed into an IDML archivefileName - The name of the new IDML package file.
java.io.IOException
public static void compress(java.io.File locationDir,
java.lang.String fileName)
throws java.io.IOException
locationDir - A file object representing the directory containing files to be compressed into an IDML archive.fileName - The name of the new IDML package file.
java.io.IOExceptionpublic static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||