public abstract static class Output.ArchiveMultiOutput extends Output.MultiOutput
Output.ArchiveMultiOutput, Output.FolderMultiOutput, Output.MultiOutput, Output.PathArchiveMultiOutput, Output.PipeArchiveMultiOutput, Output.SingleOutput| Constructor and Description |
|---|
ArchiveMultiOutput(ArchiveFormat format) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(boolean clearOutput)
Called to open any internal resources and set up the output for writing.
|
protected abstract java.io.OutputStream |
openStream() |
void |
write(java.lang.String path,
byte[] data)
Called to write a file to the output.
|
archive, archive, detectedArchive, folderisSamePath, validatepublic ArchiveMultiOutput(ArchiveFormat format)
protected abstract java.io.OutputStream openStream()
throws java.io.IOException
java.io.IOExceptionpublic void open(boolean clearOutput)
throws java.io.IOException
Output.MultiOutputopen in class Output.MultiOutputclearOutput - If the output should be wiped, or written over top of.
This only effects Output.FolderMultiOutput. Archives
are always rewritten.java.io.IOExceptionpublic void write(java.lang.String path,
byte[] data)
throws java.io.IOException
Output.MultiOutputwrite in class Output.MultiOutputpath - The relative path of the output. Will not contain a starting slash.data - The data.java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in class Output.MultiOutputjava.io.IOException