FsFile.Filter
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
boolean |
exists() |
static FileFsFile |
from(java.lang.String... paths)
Construct an FileFsFile from a series of path components.
|
java.lang.String |
getBaseName() |
byte[] |
getBytes() |
java.io.File |
getFile() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
FsFile |
getParent() |
java.lang.String |
getPath() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isFile() |
FsFile |
join(java.lang.String... pathParts) |
long |
length() |
java.lang.String[] |
listFileNames() |
FsFile[] |
listFiles() |
FsFile[] |
listFiles(FsFile.Filter filter) |
java.lang.String |
toString() |
public boolean isDirectory()
isDirectory
in interface FsFile
public FsFile[] listFiles(FsFile.Filter filter)
public java.lang.String[] listFileNames()
listFileNames
in interface FsFile
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface FsFile
java.io.IOException
public byte[] getBytes() throws java.io.IOException
public java.io.File getFile()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String getBaseName()
getBaseName
in interface FsFile
@Nonnull public static FileFsFile from(java.lang.String... paths)
Construct an FileFsFile from a series of path components. Path components that are null or empty string will be ignored.
paths
- Array of path components.