|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwriter2latex.xmerge.ConvertData
public class ConvertData
ConvertData is used as a container for passing
OutputFile objects in and out of the Convert
class. The ConvertData contains a String
name and a Vector of OutputFile objects.
| Field Summary | |
|---|---|
private OutputFile |
masterDoc
Master doc |
private java.lang.String |
name
Name of the ConvertData object. |
private java.util.Vector<OutputFile> |
v
Vector of OutputFile objects. |
| Constructor Summary | |
|---|---|
ConvertData()
|
|
| Method Summary | |
|---|---|
void |
addDocument(OutputFile doc)
Adds a OutputFile to the vector. |
OutputFile |
getMasterDocument()
Get the master document |
java.lang.String |
getName()
Returns the OutputFile name. |
int |
getNumDocuments()
Gets the number of OutputFile objects currently stored |
boolean |
isMasterDocument(OutputFile doc)
Check if a given document is the master document |
java.util.Iterator |
iterator()
Gets an Iterator to access the Vector
of OutputFile objects |
void |
reset()
Resets ConvertData. |
void |
setName(java.lang.String docName)
Sets the OutputFile name. |
void |
write(java.io.File dir)
Write all files of the ConverterResult to a directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Vector<OutputFile> v
OutputFile objects.
private OutputFile masterDoc
private java.lang.String name
ConvertData object.
| Constructor Detail |
|---|
public ConvertData()
| Method Detail |
|---|
public void reset()
OutputFile
objects from this class. This allows reuse of a
ConvertData.
public java.lang.String getName()
OutputFile name.
OutputFile name.public void setName(java.lang.String docName)
OutputFile name.
docName - The name of the OutputFile.public void addDocument(OutputFile doc)
OutputFile to the vector.
doc - The OutputFile to add.public OutputFile getMasterDocument()
getMasterDocument in interface ConverterResultOutputFile the master documentpublic boolean isMasterDocument(OutputFile doc)
doc - The OutputFile to check
public java.util.Iterator iterator()
Iterator to access the Vector
of OutputFile objects
iterator in interface ConverterResultIterator to access the
Vector of OutputFile objects.public int getNumDocuments()
OutputFile objects currently stored
OutputFile objects currently
stored.
public void write(java.io.File dir)
throws java.io.IOException
ConverterResultConverterResult to a directory.
Subdirectories are created as required by the individual
OutputFiles.
write in interface ConverterResultdir - the directory to write to (this directory must exist).
If the parameter is null, the default directory is used
java.io.IOException - if the directory does not exist or one or more files
could not be written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||