public static class OutputPath.NullPath extends OutputPath
OutputPath.FilePath, OutputPath.NullPath, OutputPath.PipePath| Modifier and Type | Field and Description |
|---|---|
static OutputPath.NullPath |
INSTANCE |
| Constructor and Description |
|---|
NullPath() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Gets if this output exists or not.
|
ArchiveFormat |
getFormat() |
java.lang.String |
getName()
Gets the name for this output.
|
boolean |
isFile()
Gets if this output should be treated as a singular file,
opposed to a folder.
|
java.io.OutputStream |
open()
Creates a stream representing this output.
|
java.nio.file.Path |
toPath()
Gets the underlying path representing this output.
|
getTypepublic static final OutputPath.NullPath INSTANCE
public boolean isFile()
OutputPathAlways true for PipePath outputs.
isFile in class OutputPathpublic boolean exists()
OutputPathexists in class OutputPathpublic java.nio.file.Path toPath()
OutputPathPathType.PIPEtoPath in class OutputPathpublic java.io.OutputStream open()
OutputPathopen in class OutputPathpublic java.lang.String getName()
OutputPathPathType.PIPEgetName in class OutputPathpublic ArchiveFormat getFormat()
getFormat in class OutputPath