| Modifier and Type | Class and Description |
|---|---|
static class |
Input.InputType
Indicates if the files should be loaded from an external file system or
the class path.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
base |
protected Input.InputType |
inputType |
protected ZipFile |
zip |
| Constructor and Description |
|---|
Input() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release internal state.
|
String |
getBase()
Optional base for resolving names against when
Input#getInputType() is InputType#EXTERNAL. |
InputStream |
getInputStream(String name) |
Input.InputType |
getInputType() |
void |
setBase(String base) |
void |
setInputType(Input.InputType inputType) |
void |
validate() |
protected Input.InputType inputType
protected String base
protected ZipFile zip
public Input.InputType getInputType()
public void setInputType(Input.InputType inputType)
type - the type to setpublic String getBase()
Input#getInputType() is InputType#EXTERNAL.
If it resolves to a File, then it is treated as a ZIP file, otherwise it is treated as a directory.
public void setBase(String base)
public InputStream getInputStream(String name) throws IOException
IOExceptionpublic void close()
throws IOException
Note that this will close any InputStreams linked to a base Zip file.
IOExceptionpublic void validate()
Copyright © 2019 Australian e-Health Research Centre. All Rights Reserved.