public static class FileSystemProvider.DefPath extends java.lang.Object implements Path
| 限定符和类型 | 方法和说明 |
|---|---|
Path |
_createDirectories() |
boolean |
_deleteIfExists() |
boolean |
_exists() |
boolean |
_isDirectory() |
java.io.InputStream |
_newInputStream() |
java.io.OutputStream |
_newOutputStream() |
byte[] |
_readAllBytes() |
void |
_walkFileTree(FileVisitor<? super Path> visitor) |
void |
_write(byte[] b) |
Path |
getFileName() |
Path |
getParent() |
Path |
relativize(Path other) |
Path |
resolve(java.lang.String other) |
java.io.File |
toFile() |
java.lang.String |
toString() |
static void |
walk0(FileSystemProvider.DefPath dir,
FileVisitor<? super Path> visitor) |
public DefPath(java.io.File file)
public DefPath(java.io.File file,
java.lang.String name)
public java.lang.String toString()
public Path getFileName()
getFileName 在接口中 Pathpublic byte[] _readAllBytes()
throws java.io.IOException
_readAllBytes 在接口中 Pathjava.io.IOExceptionpublic java.io.OutputStream _newOutputStream()
throws java.io.FileNotFoundException
_newOutputStream 在接口中 Pathjava.io.FileNotFoundExceptionpublic boolean _isDirectory()
_isDirectory 在接口中 Pathpublic Path _createDirectories()
_createDirectories 在接口中 Pathpublic boolean _deleteIfExists()
_deleteIfExists 在接口中 Pathpublic void _write(byte[] b)
throws java.io.IOException
public void _walkFileTree(FileVisitor<? super Path> visitor) throws java.io.IOException
_walkFileTree 在接口中 Pathjava.io.IOExceptionpublic static void walk0(FileSystemProvider.DefPath dir, FileVisitor<? super Path> visitor) throws java.io.IOException
java.io.IOExceptionpublic Path relativize(Path other)
relativize 在接口中 Pathpublic java.io.InputStream _newInputStream()
throws java.io.FileNotFoundException
_newInputStream 在接口中 Pathjava.io.FileNotFoundException