public class Outputter extends Object
OutputterChecked
but exceptions are reported in a ErrorReporter
.Constructor and Description |
---|
Outputter(OutputterChecked delegate,
ErrorReporter errorReporter) |
Modifier and Type | Method and Description |
---|---|
Outputter |
deriveSubdirectory(String subdirectoryName,
boolean inheritOutputRulesAndRecording)
|
boolean |
equals(Object obj) |
OutputterChecked |
getChecked()
Gets the underlying delegate of
Outputter that throws checked-exceptions instead of
using a ErrorReporter . |
ErrorReporter |
getErrorReporter() |
Path |
getOutputDirectory() |
DirectoryWithPrefix |
getPrefix() |
OutputWriteSettings |
getSettings() |
int |
hashCode() |
MultiLevelOutputEnabled |
outputsEnabled() |
String |
toString() |
WriterRouterErrors |
writerMultiplex(boolean selectSelective)
Multiplexes between the
selective and permissive writers based on a flag. |
WriterRouterErrors |
writerPermissive()
The writer that allows all outputs.
|
WriterRouterErrors |
writerSecondLevel(String outputNameFirstLevel)
A writer that performs a second-level check on which outputs occur, but writes to the
top-level directory.
|
WriterRouterErrors |
writerSelective()
The writer that allows only certain selected outputs.
|
public Outputter(OutputterChecked delegate, ErrorReporter errorReporter)
public Outputter deriveSubdirectory(String subdirectoryName, boolean inheritOutputRulesAndRecording)
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.OutputterChecked.deriveSubdirectory(java.lang.String, boolean)
public WriterRouterErrors writerPermissive()
public WriterRouterErrors writerSelective()
public WriterRouterErrors writerMultiplex(boolean selectSelective)
selective
and permissive
writers based on a flag.selectSelective
- if true, writerSelective()
is returned, otherwise writerPermissive()
.public WriterRouterErrors writerSecondLevel(String outputNameFirstLevel)
public OutputWriteSettings getSettings()
public Path getOutputDirectory()
public MultiLevelOutputEnabled outputsEnabled()
public OutputterChecked getChecked()
Outputter
that throws checked-exceptions instead of
using a ErrorReporter
.public DirectoryWithPrefix getPrefix()
public ErrorReporter getErrorReporter()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.