InputPath.FilePath, InputPath.NullPath, InputPath.PipePath| Modifier and Type | Field and Description |
|---|---|
static InputPath.NullPath |
INSTANCE |
| Constructor and Description |
|---|
NullPath() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Gets if this input exists or not.
|
ArchiveFormat |
getFormat()
Gets the ArchiveFormat of this input.
|
java.lang.String |
getName()
Gets the name for this input.
|
boolean |
isFile()
Gets if this input should be treated as a singular file,
opposed to a folder.
|
java.io.InputStream |
open()
Creates a stream representing this input.
|
java.util.List<java.lang.String> |
readAllLines()
Reads all available lines of the input into a List of strings.
|
java.nio.file.Path |
toPath()
Gets the underlying path representing this input.
|
public static final InputPath.NullPath INSTANCE
public boolean isFile()
InputPathAlways true for PipePath inputs.
public boolean exists()
InputPathpublic java.nio.file.Path toPath()
InputPathPathType.PIPEpublic java.io.InputStream open()
InputPathpublic java.util.List<java.lang.String> readAllLines()
InputPathreadAllLines in class InputPathpublic java.lang.String getName()
InputPathPathType.PIPEpublic ArchiveFormat getFormat()
InputPath