Package cz.vutbr.fit.layout.tools.cmd
Class Export
- java.lang.Object
-
- cz.vutbr.fit.layout.tools.CliCommand
-
- cz.vutbr.fit.layout.tools.cmd.Export
-
public class Export extends CliCommand implements Callable<Integer>
- Author:
- burgetr
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Export.Format
-
Field Summary
Fields Modifier and Type Field Description protected Export.Format
format
protected boolean
help
protected File
outfile
-
Constructor Summary
Constructors Constructor Description Export()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
call()
void
outputRDF(AreaTree atree, OutputStream os, String mimeType)
void
outputRDF(Page page, OutputStream os, String mimeType)
void
writeOutput(AreaTree atree, Page page, OutputStream os, Export.Format format)
void
writeOutput(Page page, OutputStream os, Export.Format format)
-
Methods inherited from class cz.vutbr.fit.layout.tools.CliCommand
errNoAreaTree, errNoArtifact, errNoPage, errNoRepo, getCli, printError, setCli
-
-
-
-
Field Detail
-
help
protected boolean help
-
outfile
protected File outfile
-
format
protected Export.Format format
-
-
Method Detail
-
writeOutput
public void writeOutput(Page page, OutputStream os, Export.Format format) throws IOException
- Throws:
IOException
-
outputRDF
public void outputRDF(Page page, OutputStream os, String mimeType) throws IOException
- Throws:
IOException
-
writeOutput
public void writeOutput(AreaTree atree, Page page, OutputStream os, Export.Format format) throws IOException
- Throws:
IOException
-
outputRDF
public void outputRDF(AreaTree atree, OutputStream os, String mimeType) throws IOException
- Throws:
IOException
-
-