public static class Input.FolderMultiInput extends Input.MultiInput
Input.ArchiveMultiInput, Input.FolderMultiInput, Input.MultiInput, Input.PathArchiveMultiInput, Input.PipeArchiveMultiInput, Input.SingleInput| Modifier and Type | Field and Description |
|---|---|
java.nio.file.Path |
folder |
| Constructor and Description |
|---|
FolderMultiInput(java.nio.file.Path folder) |
| 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.
|
byte[] |
tryRead(java.lang.String key)
Try and read the given entry as an array of bytes.
|
void |
validate(java.lang.String kind)
Check any preconditions about the input prior to any work occurring.
|
archive, archive, archive, detectedArchive, folder, read, readLinespublic void validate(java.lang.String kind)
throws IOValidationException
InputUsed to check if inputs exist, folders are actually folders, etc.
validate in class Inputkind - Descriptive name of the input. I.E patches, original, changed, etc.IOValidationExceptionpublic 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()
throws java.io.IOException
Input.MultiInputindex in class Input.MultiInputjava.io.IOExceptionpublic byte[] tryRead(java.lang.String key)
throws java.io.IOException
Input.MultiInputtryRead in class Input.MultiInputkey - The entry to read.null.java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in class Input.MultiInput