java.nio.file
47 classes of the module java.base.
Load them with:
using {
"java.nio.file"
}
AccessDeniedException#
class · extends FileSystemException · java.nio.file.AccessDeniedException
Constructors
new AccessDeniedException(String file) |
new AccessDeniedException(String file, String other, String reason) |
Ring: new AccessDeniedException(args) uses the constructor with the fewest parameters (at least one); new AccessDeniedException makes the object with the constructor without parameters; the others: (new AccessDeniedException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
AccessMode#
enum · extends Enum · java.nio.file.AccessMode
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
READ | AccessMode | constant · static | o.READ |
WRITE | AccessMode | constant · static | o.WRITE |
EXECUTE | AccessMode | constant · static | o.EXECUTE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static AccessMode valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static AccessMode[] values() |
The methods and fields of Enum are inherited.
AtomicMoveNotSupportedException#
class · extends FileSystemException · java.nio.file.AtomicMoveNotSupportedException
Constructors
new AtomicMoveNotSupportedException(String source, String target, String reason) |
Ring: new AtomicMoveNotSupportedException(args) uses the constructor with the fewest parameters (at least one); new AtomicMoveNotSupportedException makes the object with the constructor without parameters; the others: (new AtomicMoveNotSupportedException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
ClosedDirectoryStreamException#
class · extends IllegalStateException · java.nio.file.ClosedDirectoryStreamException
Constructors
new ClosedDirectoryStreamException() |
Ring: new ClosedDirectoryStreamException(args) uses the constructor with the fewest parameters (at least one); new ClosedDirectoryStreamException makes the object with the constructor without parameters; the others: (new ClosedDirectoryStreamException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
ClosedFileSystemException#
class · extends IllegalStateException · java.nio.file.ClosedFileSystemException
Constructors
new ClosedFileSystemException() |
Ring: new ClosedFileSystemException(args) uses the constructor with the fewest parameters (at least one); new ClosedFileSystemException makes the object with the constructor without parameters; the others: (new ClosedFileSystemException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
ClosedWatchServiceException#
class · extends IllegalStateException · java.nio.file.ClosedWatchServiceException
Constructors
new ClosedWatchServiceException() |
Ring: new ClosedWatchServiceException(args) uses the constructor with the fewest parameters (at least one); new ClosedWatchServiceException makes the object with the constructor without parameters; the others: (new ClosedWatchServiceException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalStateException are inherited.
CopyOption#
interface · java.nio.file.CopyOption
DirectoryIteratorException#
class final · extends ConcurrentModificationException · java.nio.file.DirectoryIteratorException
Constructors
new DirectoryIteratorException(IOException cause) |
Ring: new DirectoryIteratorException(args) uses the constructor with the fewest parameters (at least one); new DirectoryIteratorException makes the object with the constructor without parameters; the others: (new DirectoryIteratorException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of ConcurrentModificationException are inherited.
DirectoryNotEmptyException#
class · extends FileSystemException · java.nio.file.DirectoryNotEmptyException
Constructors
new DirectoryNotEmptyException(String dir) |
Ring: new DirectoryNotEmptyException(args) uses the constructor with the fewest parameters (at least one); new DirectoryNotEmptyException makes the object with the constructor without parameters; the others: (new DirectoryNotEmptyException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
DirectoryStream#
interface · java.nio.file.DirectoryStream
DirectoryStreamFilter#
interface · java.nio.file.DirectoryStream$Filter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(entry) | boolean accept(Object entry) |
FileAlreadyExistsException#
class · extends FileSystemException · java.nio.file.FileAlreadyExistsException
Constructors
new FileAlreadyExistsException(String file) |
new FileAlreadyExistsException(String file, String other, String reason) |
Ring: new FileAlreadyExistsException(args) uses the constructor with the fewest parameters (at least one); new FileAlreadyExistsException makes the object with the constructor without parameters; the others: (new FileAlreadyExistsException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
Files#
class final · extends Object · java.nio.file.Files
Methods
| Method | Ring call | Java overloads |
|---|---|---|
copy | copy([source,out])copy([ :source = v, :out = v ])copy([source,target,options])copy([ :source = v, :target = v, :options = v ]) | static long copy(Path source, OutputStream out)static Path copy(Path source, Path target, CopyOption[] options)static long copy(InputStream in, Path target, CopyOption[] options) |
createDirectories | createDirectories(dir,attrs) | static Path createDirectories(Path dir, FileAttribute[] attrs) |
createDirectory | createDirectory(dir,attrs) | static Path createDirectory(Path dir, FileAttribute[] attrs) |
createFile | createFile(path,attrs) | static Path createFile(Path path, FileAttribute[] attrs) |
createLink | createLink(link,existing) | static Path createLink(Path link, Path existing) |
createSymbolicLink | createSymbolicLink(link,target,attrs) | static Path createSymbolicLink(Path link, Path target, FileAttribute[] attrs) |
createTempDirectory | createTempDirectory([prefix,attrs])createTempDirectory([ :prefix = v, :attrs = v ])createTempDirectory([dir,prefix,attrs])createTempDirectory([ :dir = v, :prefix = v, :attrs = v ]) | static Path createTempDirectory(String prefix, FileAttribute[] attrs)static Path createTempDirectory(Path dir, String prefix, FileAttribute[] attrs) |
createTempFile | createTempFile([prefix,suffix,attrs])createTempFile([ :prefix = v, :suffix = v, :attrs = v ])createTempFile([dir,prefix,suffix,attrs])createTempFile([ :dir = v, :prefix = v, :suffix = v, :attrs = v ]) | static Path createTempFile(String prefix, String suffix, FileAttribute[] attrs)static Path createTempFile(Path dir, String prefix, String suffix, FileAttribute[] attrs) |
delete | delete(path) | static void delete(Path path) |
deleteIfExists | deleteIfExists(path) | static boolean deleteIfExists(Path path) |
exists | exists(path,options) | static boolean exists(Path path, LinkOption[] options) |
find | find(start,maxDepth,matcher,options) | static Stream find(Path start, int maxDepth, BiPredicate matcher, FileVisitOption[] options) |
getAttribute | getAttribute(path,attribute,options) | static Object getAttribute(Path path, String attribute, LinkOption[] options) |
getFileAttributeView | getFileAttributeView(path,type,options) | static FileAttributeView getFileAttributeView(Path path, Class type, LinkOption[] options) |
getFileStore | getFileStore(path) | static FileStore getFileStore(Path path) |
getLastModifiedTime | getLastModifiedTime(path,options) | static FileTime getLastModifiedTime(Path path, LinkOption[] options) |
getOwner | getOwner(path,options) | static UserPrincipal getOwner(Path path, LinkOption[] options) |
getPosixFilePermissions | getPosixFilePermissions(path,options) | static Set getPosixFilePermissions(Path path, LinkOption[] options) |
isDirectory | isDirectory(path,options) | static boolean isDirectory(Path path, LinkOption[] options) |
isExecutable | isExecutable(path) | static boolean isExecutable(Path path) |
isHidden | isHidden(path) | static boolean isHidden(Path path) |
isReadable | isReadable(path) | static boolean isReadable(Path path) |
isRegularFile | isRegularFile(path,options) | static boolean isRegularFile(Path path, LinkOption[] options) |
isSameFile | isSameFile(path,path2) | static boolean isSameFile(Path path, Path path2) |
isSymbolicLink | isSymbolicLink(path) | static boolean isSymbolicLink(Path path) |
isWritable | isWritable(path) | static boolean isWritable(Path path) |
lines | lines(path)lines([path,cs])lines([ :path = v, :cs = v ]) | static Stream lines(Path path)static Stream lines(Path path, Charset cs) |
list | list(dir) | static Stream list(Path dir) |
mismatch | mismatch(path,path2) | static long mismatch(Path path, Path path2) |
move | move(source,target,options) | static Path move(Path source, Path target, CopyOption[] options) |
newBufferedReader | newBufferedReader(path)newBufferedReader([path,cs])newBufferedReader([ :path = v, :cs = v ]) | static BufferedReader newBufferedReader(Path path)static BufferedReader newBufferedReader(Path path, Charset cs) |
newBufferedWriter | newBufferedWriter([path,options])newBufferedWriter([ :path = v, :options = v ])newBufferedWriter([path,cs,options])newBufferedWriter([ :path = v, :cs = v, :options = v ]) | static BufferedWriter newBufferedWriter(Path path, OpenOption[] options)static BufferedWriter newBufferedWriter(Path path, Charset cs, OpenOption[] options) |
newByteChannel | newByteChannel([path,options])newByteChannel([ :path = v, :options = v ])newByteChannel([path,options,attrs])newByteChannel([ :path = v, :options = v, :attrs = v ]) | static SeekableByteChannel newByteChannel(Path path, OpenOption[] options)static SeekableByteChannel newByteChannel(Path path, Set options, FileAttribute[] attrs) |
newDirectoryStream | newDirectoryStream(dir)newDirectoryStream([dir,glob])newDirectoryStream([ :dir = v, :glob = v ]) | static DirectoryStream newDirectoryStream(Path dir)static DirectoryStream newDirectoryStream(Path dir, String glob)static DirectoryStream newDirectoryStream(Path dir, Filter filter) |
newInputStream | newInputStream(path,options) | static InputStream newInputStream(Path path, OpenOption[] options) |
newOutputStream | newOutputStream(path,options) | static OutputStream newOutputStream(Path path, OpenOption[] options) |
notExists | notExists(path,options) | static boolean notExists(Path path, LinkOption[] options) |
probeContentType | probeContentType(path) | static String probeContentType(Path path) |
readAllBytes | readAllBytes(path) | static byte[] readAllBytes(Path path) |
readAllLines | readAllLines(path)readAllLines([path,cs])readAllLines([ :path = v, :cs = v ]) | static List readAllLines(Path path)static List readAllLines(Path path, Charset cs) |
readAttributes | readAttributes(path,type,options) | static BasicFileAttributes readAttributes(Path path, Class type, LinkOption[] options)static Map readAttributes(Path path, String attributes, LinkOption[] options) |
readString | readString(path)readString([path,cs])readString([ :path = v, :cs = v ]) | static String readString(Path path)static String readString(Path path, Charset cs) |
readSymbolicLink | readSymbolicLink(link) | static Path readSymbolicLink(Path link) |
setAttribute | setAttribute(path,attribute,value,options) | static Path setAttribute(Path path, String attribute, Object value, LinkOption[] options) |
setLastModifiedTime | setLastModifiedTime(path,time) | static Path setLastModifiedTime(Path path, FileTime time) |
setOwner | setOwner(path,owner) | static Path setOwner(Path path, UserPrincipal owner) |
setPosixFilePermissions | setPosixFilePermissions(path,perms) | static Path setPosixFilePermissions(Path path, Set perms) |
size | size(path) | static long size(Path path) |
walk | walk([start,options])walk([ :start = v, :options = v ])walk([start,maxDepth,options])walk([ :start = v, :maxDepth = v, :options = v ]) | static Stream walk(Path start, FileVisitOption[] options)static Stream walk(Path start, int maxDepth, FileVisitOption[] options) |
walkFileTree | walkFileTree([start,visitor])walkFileTree([ :start = v, :visitor = v ])walkFileTree([start,options,maxDepth,visitor])walkFileTree([ :start = v, :options = v, :maxDepth = v, :visitor = v ]) | static Path walkFileTree(Path start, FileVisitor visitor)static Path walkFileTree(Path start, Set options, int maxDepth, FileVisitor visitor) |
write | write([path,lines,options])write([ :path = v, :lines = v, :options = v ])write([path,lines,cs,options])write([ :path = v, :lines = v, :cs = v, :options = v ]) | static Path write(Path path, Iterable lines, OpenOption[] options)static Path write(Path path, byte[] bytes, OpenOption[] options)static Path write(Path path, Iterable lines, Charset cs, OpenOption[] options) |
writeString | writeString([path,csq,options])writeString([ :path = v, :csq = v, :options = v ])writeString([path,csq,cs,options])writeString([ :path = v, :csq = v, :cs = v, :options = v ]) | static Path writeString(Path path, CharSequence csq, OpenOption[] options)static Path writeString(Path path, CharSequence csq, Charset cs, OpenOption[] options) |
The methods and fields of Object are inherited.
FileStore#
abstract · extends Object · java.nio.file.FileStore
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAttribute | getAttribute(attribute) | Object getAttribute(String attribute) |
getBlockSize | getBlockSize() | long getBlockSize() |
getFileStoreAttributeView | getFileStoreAttributeView(type) | FileStoreAttributeView getFileStoreAttributeView(Class type) |
getTotalSpace | getTotalSpace() | long getTotalSpace() |
getUnallocatedSpace | getUnallocatedSpace() | long getUnallocatedSpace() |
getUsableSpace | getUsableSpace() | long getUsableSpace() |
isReadOnly | isReadOnly() | boolean isReadOnly() |
name | name() | String name() |
supportsFileAttributeView | supportsFileAttributeView(type) | boolean supportsFileAttributeView(Class type)boolean supportsFileAttributeView(String name) |
type | type() | String type() |
The methods and fields of Object are inherited.
FileSystem#
abstract · extends Object · java.nio.file.FileSystem
Implements: Closeable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
getFileStores | getFileStores() | Iterable getFileStores() |
getPath | getPath(first,more) | Path getPath(String first, String[] more) |
getPathMatcher | getPathMatcher(syntaxAndPattern) | PathMatcher getPathMatcher(String syntaxAndPattern) |
getRootDirectories | getRootDirectories() | Iterable getRootDirectories() |
getSeparator | getSeparator() | String getSeparator() |
getUserPrincipalLookupService | getUserPrincipalLookupService() | UserPrincipalLookupService getUserPrincipalLookupService() |
isOpen | isOpen() | boolean isOpen() |
isReadOnly | isReadOnly() | boolean isReadOnly() |
newWatchService | newWatchService() | WatchService newWatchService() |
provider | provider() | FileSystemProvider provider() |
supportedFileAttributeViews | supportedFileAttributeViews() | Set supportedFileAttributeViews() |
The methods and fields of Object are inherited.
FileSystemAlreadyExistsException#
class · extends RuntimeException · java.nio.file.FileSystemAlreadyExistsException
Constructors
new FileSystemAlreadyExistsException() |
new FileSystemAlreadyExistsException(String msg) |
Ring: new FileSystemAlreadyExistsException(args) uses the constructor with the fewest parameters (at least one); new FileSystemAlreadyExistsException makes the object with the constructor without parameters; the others: (new FileSystemAlreadyExistsException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
FileSystemException#
class · extends IOException · java.nio.file.FileSystemException
Constructors
new FileSystemException(String file) |
new FileSystemException(String file, String other, String reason) |
Ring: new FileSystemException(args) uses the constructor with the fewest parameters (at least one); new FileSystemException makes the object with the constructor without parameters; the others: (new FileSystemException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getFile | getFile() | String getFile() |
getOtherFile | getOtherFile() | String getOtherFile() |
getReason | getReason() | String getReason() |
The methods and fields of IOException are inherited.
FileSystemLoopException#
class · extends FileSystemException · java.nio.file.FileSystemLoopException
Constructors
new FileSystemLoopException(String file) |
Ring: new FileSystemLoopException(args) uses the constructor with the fewest parameters (at least one); new FileSystemLoopException makes the object with the constructor without parameters; the others: (new FileSystemLoopException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
FileSystemNotFoundException#
class · extends RuntimeException · java.nio.file.FileSystemNotFoundException
Constructors
new FileSystemNotFoundException() |
new FileSystemNotFoundException(String msg) |
Ring: new FileSystemNotFoundException(args) uses the constructor with the fewest parameters (at least one); new FileSystemNotFoundException makes the object with the constructor without parameters; the others: (new FileSystemNotFoundException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
FileSystems#
class final · extends Object · java.nio.file.FileSystems
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDefault | getDefault() | static FileSystem getDefault() |
getFileSystem | getFileSystem(uri) | static FileSystem getFileSystem(URI uri) |
newFileSystem | newFileSystem(path)newFileSystem([path,env])newFileSystem([ :path = v, :env = v ])newFileSystem([path,env,loader])newFileSystem([ :path = v, :env = v, :loader = v ]) | static FileSystem newFileSystem(Path path)static FileSystem newFileSystem(Path path, Map env)static FileSystem newFileSystem(Path path, ClassLoader loader)static FileSystem newFileSystem(URI uri, Map env)static FileSystem newFileSystem(Path path, Map env, ClassLoader loader)static FileSystem newFileSystem(URI uri, Map env, ClassLoader loader) |
The methods and fields of Object are inherited.
FileVisitOption#
enum · extends Enum · java.nio.file.FileVisitOption
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
FOLLOW_LINKS | FileVisitOption | constant · static | o.FOLLOW_LINKS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static FileVisitOption valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static FileVisitOption[] values() |
The methods and fields of Enum are inherited.
FileVisitor#
interface · java.nio.file.FileVisitor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
postVisitDirectory | postVisitDirectory(dir,exc) | FileVisitResult postVisitDirectory(Object dir, IOException exc) |
preVisitDirectory | preVisitDirectory(dir,attrs) | FileVisitResult preVisitDirectory(Object dir, BasicFileAttributes attrs) |
visitFile | visitFile(file,attrs) | FileVisitResult visitFile(Object file, BasicFileAttributes attrs) |
visitFileFailed | visitFileFailed(file,exc) | FileVisitResult visitFileFailed(Object file, IOException exc) |
FileVisitResult#
enum · extends Enum · java.nio.file.FileVisitResult
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CONTINUE | FileVisitResult | constant · static | o.@CONTINUE |
TERMINATE | FileVisitResult | constant · static | o.TERMINATE |
SKIP_SUBTREE | FileVisitResult | constant · static | o.SKIP_SUBTREE |
SKIP_SIBLINGS | FileVisitResult | constant · static | o.SKIP_SIBLINGS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static FileVisitResult valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static FileVisitResult[] values() |
The methods and fields of Enum are inherited.
InvalidPathException#
class · extends IllegalArgumentException · java.nio.file.InvalidPathException
Constructors
new InvalidPathException(String input, String reason) |
new InvalidPathException(String input, String reason, int index) |
Ring: new InvalidPathException(args) uses the constructor with the fewest parameters (at least one); new InvalidPathException makes the object with the constructor without parameters; the others: (new InvalidPathException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getIndex | getIndex() | int getIndex() |
getInput | getInput() | String getInput() |
getReason | getReason() | String getReason() |
The methods and fields of IllegalArgumentException are inherited.
LinkOption#
enum · extends Enum · java.nio.file.LinkOption
Implements: OpenOption, CopyOption
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
NOFOLLOW_LINKS | LinkOption | constant · static | o.NOFOLLOW_LINKS |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static LinkOption valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static LinkOption[] values() |
The methods and fields of Enum are inherited.
LinkPermission#
class final · extends BasicPermission · java.nio.file.LinkPermission
Constructors
new LinkPermission(String name) |
new LinkPermission(String name, String actions) |
Ring: new LinkPermission(args) uses the constructor with the fewest parameters (at least one); new LinkPermission makes the object with the constructor without parameters; the others: (new LinkPermission).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of BasicPermission are inherited.
NoSuchFileException#
class · extends FileSystemException · java.nio.file.NoSuchFileException
Constructors
new NoSuchFileException(String file) |
new NoSuchFileException(String file, String other, String reason) |
Ring: new NoSuchFileException(args) uses the constructor with the fewest parameters (at least one); new NoSuchFileException makes the object with the constructor without parameters; the others: (new NoSuchFileException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
NotDirectoryException#
class · extends FileSystemException · java.nio.file.NotDirectoryException
Constructors
new NotDirectoryException(String file) |
Ring: new NotDirectoryException(args) uses the constructor with the fewest parameters (at least one); new NotDirectoryException makes the object with the constructor without parameters; the others: (new NotDirectoryException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
NotLinkException#
class · extends FileSystemException · java.nio.file.NotLinkException
Constructors
new NotLinkException(String file) |
new NotLinkException(String file, String other, String reason) |
Ring: new NotLinkException(args) uses the constructor with the fewest parameters (at least one); new NotLinkException makes the object with the constructor without parameters; the others: (new NotLinkException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of FileSystemException are inherited.
OpenOption#
interface · java.nio.file.OpenOption
Path#
interface · java.nio.file.Path
Extends: Comparable, Iterable, Watchable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
compareTo | compareTo(other) | int compareTo(Path other) |
endsWith | endsWith(other) | boolean endsWith(String other)boolean endsWith(Path other) |
equals | equals(other) | boolean equals(Object other) |
getFileName | getFileName() | Path getFileName() |
getFileSystem | getFileSystem() | FileSystem getFileSystem() |
getName | getName(index) | Path getName(int index) |
getNameCount | getNameCount() | int getNameCount() |
getParent | getParent() | Path getParent() |
getRoot | getRoot() | Path getRoot() |
hashCode | hashCode() | int hashCode() |
isAbsolute | isAbsolute() | boolean isAbsolute() |
iterator | iterator() | Iterator iterator() |
normalize | normalize() | Path normalize() |
of | of(uri)of([first,more])of([ :first = v, :more = v ]) | static Path of(URI uri)static Path of(String first, String[] more) |
register | register([watcher,events])register([ :watcher = v, :events = v ])register([watcher,events,modifiers])register([ :watcher = v, :events = v, :modifiers = v ]) | WatchKey register(WatchService watcher, Kind[] events)WatchKey register(WatchService watcher, Kind[] events, Modifier[] modifiers) |
relativize | relativize(other) | Path relativize(Path other) |
resolve | resolve(other)resolve([first,more])resolve([ :first = v, :more = v ]) | Path resolve(String other)Path resolve(Path other)Path resolve(String first, String[] more)Path resolve(Path first, Path[] more) |
resolveSibling | resolveSibling(other) | Path resolveSibling(Path other)Path resolveSibling(String other) |
spliterator | spliterator() | Spliterator spliterator() |
startsWith | startsWith(other) | boolean startsWith(Path other)boolean startsWith(String other) |
subpath | subpath(beginIndex,endIndex) | Path subpath(int beginIndex, int endIndex) |
toAbsolutePath | toAbsolutePath() | Path toAbsolutePath() |
toFile | toFile() | File toFile() |
toRealPath | toRealPath(options) | Path toRealPath(LinkOption[] options) |
toUri | toUri() | URI toUri() |
PathMatcher#
interface · java.nio.file.PathMatcher
Methods
| Method | Ring call | Java overloads |
|---|---|---|
matches | matches(path) | boolean matches(Path path) |
Paths#
class final · extends Object · java.nio.file.Paths
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@get | @get(uri)@get([first,more])@get([ :first = v, :more = v ]) | static Path get(URI uri)static Path get(String first, String[] more) |
The methods and fields of Object are inherited.
ProviderMismatchException#
class · extends IllegalArgumentException · java.nio.file.ProviderMismatchException
Constructors
new ProviderMismatchException() |
new ProviderMismatchException(String msg) |
Ring: new ProviderMismatchException(args) uses the constructor with the fewest parameters (at least one); new ProviderMismatchException makes the object with the constructor without parameters; the others: (new ProviderMismatchException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of IllegalArgumentException are inherited.
ProviderNotFoundException#
class · extends RuntimeException · java.nio.file.ProviderNotFoundException
Constructors
new ProviderNotFoundException() |
new ProviderNotFoundException(String msg) |
Ring: new ProviderNotFoundException(args) uses the constructor with the fewest parameters (at least one); new ProviderNotFoundException makes the object with the constructor without parameters; the others: (new ProviderNotFoundException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of RuntimeException are inherited.
ReadOnlyFileSystemException#
class · extends UnsupportedOperationException · java.nio.file.ReadOnlyFileSystemException
Constructors
new ReadOnlyFileSystemException() |
Ring: new ReadOnlyFileSystemException(args) uses the constructor with the fewest parameters (at least one); new ReadOnlyFileSystemException makes the object with the constructor without parameters; the others: (new ReadOnlyFileSystemException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of UnsupportedOperationException are inherited.
SecureDirectoryStream#
interface · java.nio.file.SecureDirectoryStream
Extends: DirectoryStream
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
close | close() | void close() |
deleteDirectory | deleteDirectory(path) | void deleteDirectory(Object path) |
deleteFile | deleteFile(path) | void deleteFile(Object path) |
getFileAttributeView | getFileAttributeView(type)getFileAttributeView([path,type,options])getFileAttributeView([ :path = v, :type = v, :options = v ]) | FileAttributeView getFileAttributeView(Class type)FileAttributeView getFileAttributeView(Object path, Class type, LinkOption[] options) |
iterator | iterator() | Iterator iterator() |
move | move(srcpath,targetdir,targetpath) | void move(Object srcpath, SecureDirectoryStream targetdir, Object targetpath) |
newByteChannel | newByteChannel(path,options,attrs) | SeekableByteChannel newByteChannel(Object path, Set options, FileAttribute[] attrs) |
newDirectoryStream | newDirectoryStream(path,options) | SecureDirectoryStream newDirectoryStream(Object path, LinkOption[] options) |
spliterator | spliterator() | Spliterator spliterator() |
SimpleFileVisitor#
class · extends Object · java.nio.file.SimpleFileVisitor
Implements: FileVisitor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
postVisitDirectory | postVisitDirectory(dir,exc) | FileVisitResult postVisitDirectory(Object dir, IOException exc) |
preVisitDirectory | preVisitDirectory(dir,attrs) | FileVisitResult preVisitDirectory(Object dir, BasicFileAttributes attrs) |
visitFile | visitFile(file,attrs) | FileVisitResult visitFile(Object file, BasicFileAttributes attrs) |
visitFileFailed | visitFileFailed(file,exc) | FileVisitResult visitFileFailed(Object file, IOException exc) |
The methods and fields of Object are inherited.
StandardCopyOption#
enum · extends Enum · java.nio.file.StandardCopyOption
Implements: CopyOption
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
REPLACE_EXISTING | StandardCopyOption | constant · static | o.REPLACE_EXISTING |
COPY_ATTRIBUTES | StandardCopyOption | constant · static | o.COPY_ATTRIBUTES |
ATOMIC_MOVE | StandardCopyOption | constant · static | o.ATOMIC_MOVE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static StandardCopyOption valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static StandardCopyOption[] values() |
The methods and fields of Enum are inherited.
StandardOpenOption#
enum · extends Enum · java.nio.file.StandardOpenOption
Implements: OpenOption
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
READ | StandardOpenOption | constant · static | o.READ |
WRITE | StandardOpenOption | constant · static | o.WRITE |
APPEND | StandardOpenOption | constant · static | o.APPEND |
TRUNCATE_EXISTING | StandardOpenOption | constant · static | o.TRUNCATE_EXISTING |
CREATE | StandardOpenOption | constant · static | o.CREATE |
CREATE_NEW | StandardOpenOption | constant · static | o.CREATE_NEW |
DELETE_ON_CLOSE | StandardOpenOption | constant · static | o.DELETE_ON_CLOSE |
SPARSE | StandardOpenOption | constant · static | o.SPARSE |
SYNC | StandardOpenOption | constant · static | o.SYNC |
DSYNC | StandardOpenOption | constant · static | o.DSYNC |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static StandardOpenOption valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static StandardOpenOption[] values() |
The methods and fields of Enum are inherited.
StandardWatchEventKinds#
class final · extends Object · java.nio.file.StandardWatchEventKinds
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
OVERFLOW | Kind | constant · static | o.OVERFLOW |
ENTRY_CREATE | Kind | constant · static | o.ENTRY_CREATE |
ENTRY_DELETE | Kind | constant · static | o.ENTRY_DELETE |
ENTRY_MODIFY | Kind | constant · static | o.ENTRY_MODIFY |
The methods and fields of Object are inherited.
Watchable#
interface · java.nio.file.Watchable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
register | register([watcher,events])register([ :watcher = v, :events = v ])register([watcher,events,modifiers])register([ :watcher = v, :events = v, :modifiers = v ]) | WatchKey register(WatchService watcher, Kind[] events)WatchKey register(WatchService watcher, Kind[] events, Modifier[] modifiers) |
WatchEvent#
interface · java.nio.file.WatchEvent
Methods
| Method | Ring call | Java overloads |
|---|---|---|
context | context() | Object context() |
count | count() | int count() |
kind | kind() | Kind kind() |
WatchEventKind#
interface · java.nio.file.WatchEvent$Kind
Methods
| Method | Ring call | Java overloads |
|---|---|---|
name | name() | String name() |
type | type() | Class type() |
WatchEventModifier#
interface · java.nio.file.WatchEvent$Modifier
Methods
| Method | Ring call | Java overloads |
|---|---|---|
name | name() | String name() |
WatchKey#
interface · java.nio.file.WatchKey
Methods
| Method | Ring call | Java overloads |
|---|---|---|
cancel | cancel() | void cancel() |
isValid | isValid() | boolean isValid() |
pollEvents | pollEvents() | List pollEvents() |
reset | reset() | boolean reset() |
watchable | watchable() | Watchable watchable() |
WatchService#
interface · java.nio.file.WatchService
Extends: Closeable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@poll | @poll([timeout,unit])@poll([ :timeout = v, :unit = v ]) | WatchKey poll(long timeout, TimeUnit unit) |
close | close() | void close() |
poll | poll() | WatchKey poll() |
take | take() | WatchKey take() |