public abstract class AbstractSourceDumperFile extends EncodedImpl implements ISourceDumper
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
clean
Clean attribute.
|
static int |
GAP
Gap used to dump sources.
|
protected File |
outputDirectory
Default output directory.
|
protected File |
outputFile
Output file (absolute).
|
protected String |
outputName
Output file name.
|
DEFAULT_CLEAN, FEATURE_CLEANDEFAULT_ENCODING, FEATURE_ENCODING| Constructor and Description |
|---|
AbstractSourceDumperFile() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkParent(File output)
Check output directory.
|
protected void |
clean(File file)
Clean up directory files before dumping resources.
|
protected String |
detailReport()
Get detail report name.
|
Boolean |
getClean()
Get clean status.
|
File |
getOutputDirectory()
The output directory.
|
File |
getOutputFile()
Get output file.
|
String |
getOutputName()
The output file name.
|
protected nu.xom.Serializer |
getSerializer(OutputStream fr)
Gets document serializer.
|
protected void |
outputDirectory()
Gets output directory based on configuration or features.
|
protected void |
outputName(ISource source)
Set the output file for the source.
|
protected void |
saveTo(nu.xom.Document doc,
File output)
Save a document to a output file.
|
protected void |
set(ISource source,
IResultSet result)
Set source and result objects.
|
void |
setClean(Boolean clean)
Set clean information.
|
protected void |
setFeatures(ISource source)
Set features.
|
void |
setOutputDirectory(File outputDirectory)
Set the output directory.
|
void |
setOutputFile(File outputFile)
Set the output file.
|
void |
setOutputName(String outputName)
Set the output file name.
|
getEncodingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdumpgetEncodingpublic static final int GAP
protected Boolean clean
protected File outputDirectory
protected String outputName
protected File outputFile
protected void set(ISource source, IResultSet result) throws SourceDumperException
source - The source.result - The result.SourceDumperException - On setting errors.public Boolean getClean()
ISourceDumpergetClean in interface ISourceDumperpublic void setClean(Boolean clean)
ISourceDumpersetClean in interface ISourceDumperclean - true, to clean previous resources, false, otherwise.public File getOutputDirectory()
public void setOutputDirectory(File outputDirectory)
outputDirectory - The new output.public String getOutputName()
public void setOutputName(String outputName)
outputName - The output name.public File getOutputFile()
public void setOutputFile(File outputFile)
outputFile - The file.protected void setFeatures(ISource source) throws SourceDumperException
source - The specification source.SourceDumperException - On dumper error.protected void outputDirectory()
throws SourceDumperException
SourceDumperException - On dumper error.protected void outputName(ISource source) throws SourceDumperException
source - The reference source.SourceDumperException - On dumper errors.protected void clean(File file) throws ResultException
file - The reference file.ResultException - On cleanup errors.protected String detailReport()
protected nu.xom.Serializer getSerializer(OutputStream fr) throws UnsupportedEncodingException
fr - The output stream.UnsupportedEncodingException - On enconding errors.protected void saveTo(nu.xom.Document doc,
File output)
throws SourceDumperException
doc - The document.output - The target file.SourceDumperException - On dumper errors.protected void checkParent(File output) throws SourceDumperException
output - The output.SourceDumperException - On directory errors.Copyright © 2016. All rights reserved.