|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adobe.idml.samples.ReplaceStory
public class ReplaceStory
ReplaceStory can be used to extract and replace stories from IDML package files.
| Constructor Summary | |
|---|---|
ReplaceStory(java.lang.String idmlFile)
A ReplaceStory object is constructed with a path to an IDML file. |
|
| Method Summary | |
|---|---|
void |
extract(java.lang.String storyID,
java.lang.String outFile)
Extracts a single story file. |
void |
extractAll(java.lang.String outDir)
Extracts all the stories in an IDML file. |
static void |
main(java.lang.String[] args)
Program that allows you to replace stories from the command line. |
void |
release()
A temporary directory is maintained on disk until this function is called signaling that we are done with these resources. |
void |
replace(java.lang.String storyID,
java.lang.String inFile)
Replaces a story in the working directory. |
void |
writeTempFiles(java.lang.String output)
Writes the temporary working directory to an IDML package or to another working directory (if a directory is specified). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplaceStory(java.lang.String idmlFile)
throws java.io.IOException
idmlFile - The path to the IDMLFile.
java.io.IOException| Method Detail |
|---|
public void release()
public void extract(java.lang.String storyID,
java.lang.String outFile)
throws java.io.IOException,
java.lang.Exception
storyID - The ID of the file to be extracted.outFile - The path to the new file.
java.io.IOException
java.lang.Exception
public void extractAll(java.lang.String outDir)
throws java.lang.Exception
outDir - The path to the directory where the files should be saved.
If the directory does not exist it is created.
java.lang.Exception
public void replace(java.lang.String storyID,
java.lang.String inFile)
throws java.lang.Exception
storyID - The Self ID of the story to replace.inFile - The IDML file or expanded IDML directory.
java.lang.Exception
public void writeTempFiles(java.lang.String output)
throws java.lang.Exception
output - The path to the new IDML file or directory.
java.lang.Exceptionpublic static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||