public static class Output.SingleOutput.ToPath extends Output.SingleOutput
Output.SingleOutput.ToPath, Output.SingleOutput.ToStreamOutput.ArchiveMultiOutput, Output.FolderMultiOutput, Output.MultiOutput, Output.PathArchiveMultiOutput, Output.PipeArchiveMultiOutput, Output.SingleOutput| Constructor and Description |
|---|
ToPath(java.nio.file.Path path,
java.nio.file.OpenOption... opts) |
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
open()
Open the output for writing.
|
void |
validate(java.lang.String kind)
Check any preconditions about the output prior to any work occurring.
|
path, pipeisSamePathpublic void validate(java.lang.String kind)
throws IOValidationException
OutputUsed to check if folder outputs are actually folders, or archives are actually zips, etc.
validate in class Outputkind - Descriptive name of the output. I.E patches, outputs, rejects, etc.IOValidationExceptionpublic java.io.OutputStream open()
throws java.io.IOException
Output.SingleOutputopen in class Output.SingleOutputjava.io.IOException