public abstract class OutputPath
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OutputPath.FilePath |
static class |
OutputPath.NullPath |
static class |
OutputPath.PipePath |
| Constructor and Description |
|---|
OutputPath(PathType type) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
exists()
Gets if this output exists or not.
|
abstract ArchiveFormat |
getFormat() |
abstract java.lang.String |
getName()
Gets the name for this output.
|
PathType |
getType()
They type of Output this is.
|
abstract boolean |
isFile()
Gets if this output should be treated as a singular file,
opposed to a folder.
|
abstract java.io.OutputStream |
open()
Creates a stream representing this output.
|
abstract java.nio.file.Path |
toPath()
Gets the underlying path representing this output.
|
public OutputPath(PathType type)
public PathType getType()
public abstract boolean isFile()
Always true for PipePath outputs.
public abstract boolean exists()
public abstract java.nio.file.Path toPath()
PathType.PIPEpublic abstract java.io.OutputStream open()
throws java.io.IOException
java.io.IOExceptionpublic abstract java.lang.String getName()
PathType.PIPEpublic abstract ArchiveFormat getFormat()