|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openlca.dataconversion.LCADocumentOutputter
public class LCADocumentOutputter
Provides methods for (LCA) File and Document output.
| Constructor Summary | |
|---|---|
LCADocumentOutputter()
Creates a new instance of LCADocumentOutputter. |
|
| Method Summary | |
|---|---|
java.io.File |
output(org.jdom.Document document,
java.lang.String newFileName,
java.io.File targetDir,
int type)
Saves a given XML document. |
java.io.File |
output(java.io.File file,
java.lang.String newFileName,
java.io.File targetDir,
int type)
Copies a given file to a target directory. |
void |
prepareDirectory(java.io.File targetDir,
int formatKey)
Creates a format specific directory structure in the given target directory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LCADocumentOutputter()
| Method Detail |
|---|
public java.io.File output(org.jdom.Document document,
java.lang.String newFileName,
java.io.File targetDir,
int type)
throws ConverterException
document - Document to save.newFileName - Name of the new file.targetDir - Target directory of the new file.type - LCA document type of the new file.
File.
ConverterException
public java.io.File output(java.io.File file,
java.lang.String newFileName,
java.io.File targetDir,
int type)
throws ConverterException
file - Input file.newFileName - Name of the new file.targetDir - Target directory.type - LCA document type of the new file.
File.
ConverterException
public void prepareDirectory(java.io.File targetDir,
int formatKey)
throws org.jdom.JDOMException,
java.io.IOException,
ConverterException
targetDir - Target directory as File.formatKey - Type key of the data format (0 = EcoSpold, 1 = ELCD, 2 = ISO).
org.jdom.JDOMException
java.io.IOException
ConverterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||