Class Outputter
Object
org.anchoranalysis.io.output.outputter.Outputter
public class Outputter extends Object
Like
OutputterChecked but exceptions are reported in a ErrorReporter.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description Outputter(OutputterChecked delegate, ErrorReporter errorReporter) -
Method Summary
Modifier and Type Method Description OutputterderiveSubdirectory(String subdirectoryName, boolean inheritOutputRulesAndRecording)booleanequals(Object obj)OutputterCheckedgetChecked()Gets the underlying delegate ofOutputterthat throws checked-exceptions instead of using aErrorReporter.ErrorReportergetErrorReporter()PathgetOutputDirectory()The directory into which outputting occurs.DirectoryWithPrefixgetPrefix()The directory and prefix into which outputting occurs.OutputWriteSettingsgetSettings()General settings for outputting.inthashCode()MultiLevelOutputEnabledoutputsEnabled()Which outputs are enabled or not enabled.StringtoString()WriterRouterErrorswriterMultiplex(boolean selectSelective)Multiplexes between theselectiveandpermissivewriters based on a flag.WriterRouterErrorswriterPermissive()The writer that allows all outputs.WriterRouterErrorswriterSecondLevel(String outputNameFirstLevel)A writer that performs a second-level check on which outputs occur, but writes to the top-level directory.WriterRouterErrorswriterSelective()The writer that allows only certain selected outputs.
-
Constructor Details
-
Method Details
-
deriveSubdirectory
public Outputter deriveSubdirectory(String subdirectoryName, boolean inheritOutputRulesAndRecording)- Parameters:
subdirectoryName- the subdirectory-name.inheritOutputRulesAndRecording- if true, the output rules and recording are inherited from the parent directory. if false, they are not, and all outputs are allowed and are unrecorded.- Returns:
- the new output manager.
- See Also:
OutputterChecked.deriveSubdirectory(java.lang.String, boolean)
-
writerPermissive
The writer that allows all outputs.- Returns:
- the permissive writer
-
writerSelective
The writer that allows only certain selected outputs.- Returns:
- the non-permissive writer
-
writerMultiplex
Multiplexes between theselectiveandpermissivewriters based on a flag.- Parameters:
selectSelective- if true,writerSelective()is returned, otherwisewriterPermissive().- Returns:
- the chosen writer
-
writerSecondLevel
A writer that performs a second-level check on which outputs occur, but writes to the top-level directory.- Parameters:
outputNameFirstLevel- the first-level outputName with which second-level checks are performed.- Returns:
- a newly created writer checking on particular second-level output names.
-
equals
-
hashCode
public int hashCode() -
getSettings
General settings for outputting.- Returns:
- the settings.
-
getOutputDirectory
The directory into which outputting occurs.- Returns:
- a path to the directory.
-
toString
-
outputsEnabled
Which outputs are enabled or not enabled.- Returns:
- an object indicating which outputs are enabled.
-
getChecked
Gets the underlying delegate ofOutputterthat throws checked-exceptions instead of using aErrorReporter.- Returns:
- the checked-ouputter.
-
getPrefix
The directory and prefix into which outputting occurs.- Returns:
- the directory and prefix.
-
getErrorReporter
-