Class Outputter
Object
Outputter
Like
OutputterChecked
but exceptions are reported in a ErrorReporter
.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveSubdirectory
(String subdirectoryName, boolean inheritOutputRulesAndRecording) boolean
Gets the underlying delegate ofOutputter
that throws checked-exceptions instead of using aErrorReporter
.The directory into which outputting occurs.The directory and prefix into which outputting occurs.General settings for outputting.int
hashCode()
Which outputs are enabled or not enabled.toString()
writerMultiplex
(boolean selectSelective) Multiplexes between theselective
andpermissive
writers based on a flag.The writer that allows all outputs.writerSecondLevel
(String outputNameFirstLevel) A writer that performs a second-level check on which outputs occur, but writes to the top-level directory.The writer that allows only certain selected outputs.
-
Constructor Details
-
Outputter
-
-
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:
-
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 theselective
andpermissive
writers 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 ofOutputter
that 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
-