public static class OutputPath.FilePath extends OutputPath
OutputPath.FilePath, OutputPath.NullPath, OutputPath.PipePath| Constructor and Description |
|---|
FilePath(java.nio.file.Path path,
ArchiveFormat format,
java.nio.file.OpenOption... opts) |
| 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 FilePath(java.nio.file.Path path,
ArchiveFormat format,
java.nio.file.OpenOption... opts)
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()
throws java.io.IOException
OutputPathopen in class OutputPathjava.io.IOExceptionpublic java.lang.String getName()
OutputPathPathType.PIPEgetName in class OutputPathpublic ArchiveFormat getFormat()
getFormat in class OutputPath