public abstract class InputPath
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InputPath.FilePath |
static class |
InputPath.PipePath |
| Modifier | Constructor and Description |
|---|---|
protected |
InputPath(PathType type) |
| Modifier and Type | Method and Description |
|---|---|
abstract ArchiveFormat |
getFormat()
Gets the ArchiveFormat of this input.
|
abstract java.lang.String |
getName()
Gets the name for this input.
|
PathType |
getType()
They type of Input this is.
|
abstract boolean |
isFile()
Gets if this input should be treated as a singular file,
opposed to a folder.
|
abstract java.io.InputStream |
open()
Creates a stream representing this input.
|
abstract java.util.List<java.lang.String> |
readAllLines()
Reads all available lines of the input into a List of strings.
|
abstract java.nio.file.Path |
toPath()
Gets the underlying path representing this input.
|
protected InputPath(PathType type)
public PathType getType()
public abstract boolean isFile()
Always true for PipePath inputs.
public abstract java.nio.file.Path toPath()
PathType.PIPEpublic abstract java.io.InputStream open()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.util.List<java.lang.String> readAllLines()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String getName()
PathType.PIPEpublic abstract ArchiveFormat getFormat()