Package writer2latex.api
Interface ConverterResult
- All Known Implementing Classes:
ConvertData
public interface ConverterResult
A
ConverterResult
represent a document, which is the result
of a conversion performed by a Converter
implementation.-
Method Summary
Modifier and TypeMethodDescriptionGet the master documentiterator()
Gets anIterator
to access all files in theConverterResult
.void
Write all files of theConverterResult
to a directory.
-
Method Details
-
getMasterDocument
OutputFile getMasterDocument()Get the master document- Returns:
OutputFile
the master document
-
iterator
Iterator iterator()Gets anIterator
to access all files in theConverterResult
. This includes the master document.- Returns:
- an
Iterator
of all files
-
write
Write all files of theConverterResult
to a directory. Subdirectories are created as required by the individualOutputFile
s.- Parameters:
dir
- the directory to write to (this directory must exist). If the parameter is null, the default directory is used- Throws:
IOException
- if the directory does not exist or one or more files could not be written
-