public abstract static class Input.ArchiveMultiInput extends Input.MultiInput
Input.ArchiveMultiInput, Input.FolderMultiInput, Input.MultiInput, Input.PathArchiveMultiInput, Input.PipeArchiveMultiInput, Input.SingleInput| Modifier | Constructor and Description |
|---|---|
protected |
ArchiveMultiInput(ArchiveFormat format) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Set<java.lang.String> |
index()
Get the index for this input.
|
void |
open(java.lang.String prefix)
Called to open any internal resources and set up the input for reading.
|
protected abstract java.io.InputStream |
openStream() |
byte[] |
tryRead(java.lang.String key)
Try and read the given entry as an array of bytes.
|
archive, archive, archive, detectedArchive, folder, read, readLinesprotected ArchiveMultiInput(ArchiveFormat format)
protected abstract java.io.InputStream openStream()
throws java.io.IOException
java.io.IOExceptionpublic void open(java.lang.String prefix)
throws java.io.IOException
Input.MultiInputopen in class Input.MultiInputprefix - A prefix directory to read from.java.io.IOExceptionpublic java.util.Set<java.lang.String> index()
Input.MultiInputindex in class Input.MultiInputpublic byte[] tryRead(java.lang.String key)
Input.MultiInputtryRead in class Input.MultiInputkey - The entry to read.null.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in class Input.MultiInputjava.io.IOException