|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.source.core.EncodedImpl
org.specrunner.dumper.core.AbstractSourceDumperFile
public abstract class AbstractSourceDumperFile
A partial dumper which writes data to files.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.specrunner.source.IEncoded |
|---|
DEFAULT_ENCODING, FEATURE_ENCODING |
| Constructor Summary | |
|---|---|
AbstractSourceDumperFile()
|
|
| Method Summary | |
|---|---|
protected void |
appendResources(File output)
Append resources to a output file. |
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. |
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. |
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. |
| Methods inherited from class org.specrunner.source.core.EncodedImpl |
|---|
getEncoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.specrunner.dumper.ISourceDumper |
|---|
dump |
| Methods inherited from interface org.specrunner.source.IEncoded |
|---|
getEncoding |
| Field Detail |
|---|
public static final int GAP
protected File outputDirectory
protected String outputName
protected File outputFile
| Constructor Detail |
|---|
public AbstractSourceDumperFile()
| Method Detail |
|---|
protected void set(ISource source,
IResultSet result)
throws SourceDumperException
source - The source.result - The result.
SourceDumperException - On setting errors.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.
protected void appendResources(File output)
throws SourceDumperException
output - The output file.
SourceDumperException - On dumper errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||