RingJavafor Ring

java.nio.file

47 classes of the module java.base.

Load them with:

using {
	"java.nio.file"
}

All packages

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

NameTypeAccessIn Ring
READAccessModeconstant · statico.READ
WRITEAccessModeconstant · statico.WRITE
EXECUTEAccessModeconstant · statico.EXECUTE

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static AccessMode valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()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

Extends: Closeable, Iterable

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
closeclose()void close()
iteratoriterator()Iterator iterator()
spliteratorspliterator()Spliterator spliterator()

DirectoryStreamFilter#

interface · java.nio.file.DirectoryStream$Filter

Methods

MethodRing callJava overloads
acceptaccept(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

MethodRing callJava overloads
copycopy([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)
createDirectoriescreateDirectories(dir,attrs)static Path createDirectories(Path dir, FileAttribute[] attrs)
createDirectorycreateDirectory(dir,attrs)static Path createDirectory(Path dir, FileAttribute[] attrs)
createFilecreateFile(path,attrs)static Path createFile(Path path, FileAttribute[] attrs)
createLinkcreateLink(link,existing)static Path createLink(Path link, Path existing)
createSymbolicLinkcreateSymbolicLink(link,target,attrs)static Path createSymbolicLink(Path link, Path target, FileAttribute[] attrs)
createTempDirectorycreateTempDirectory([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)
createTempFilecreateTempFile([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)
deletedelete(path)static void delete(Path path)
deleteIfExistsdeleteIfExists(path)static boolean deleteIfExists(Path path)
existsexists(path,options)static boolean exists(Path path, LinkOption[] options)
findfind(start,maxDepth,matcher,options)static Stream find(Path start, int maxDepth, BiPredicate matcher, FileVisitOption[] options)
getAttributegetAttribute(path,attribute,options)static Object getAttribute(Path path, String attribute, LinkOption[] options)
getFileAttributeViewgetFileAttributeView(path,type,options)static FileAttributeView getFileAttributeView(Path path, Class type, LinkOption[] options)
getFileStoregetFileStore(path)static FileStore getFileStore(Path path)
getLastModifiedTimegetLastModifiedTime(path,options)static FileTime getLastModifiedTime(Path path, LinkOption[] options)
getOwnergetOwner(path,options)static UserPrincipal getOwner(Path path, LinkOption[] options)
getPosixFilePermissionsgetPosixFilePermissions(path,options)static Set getPosixFilePermissions(Path path, LinkOption[] options)
isDirectoryisDirectory(path,options)static boolean isDirectory(Path path, LinkOption[] options)
isExecutableisExecutable(path)static boolean isExecutable(Path path)
isHiddenisHidden(path)static boolean isHidden(Path path)
isReadableisReadable(path)static boolean isReadable(Path path)
isRegularFileisRegularFile(path,options)static boolean isRegularFile(Path path, LinkOption[] options)
isSameFileisSameFile(path,path2)static boolean isSameFile(Path path, Path path2)
isSymbolicLinkisSymbolicLink(path)static boolean isSymbolicLink(Path path)
isWritableisWritable(path)static boolean isWritable(Path path)
lineslines(path)
lines([path,cs])
lines([ :path = v, :cs = v ])
static Stream lines(Path path)
static Stream lines(Path path, Charset cs)
listlist(dir)static Stream list(Path dir)
mismatchmismatch(path,path2)static long mismatch(Path path, Path path2)
movemove(source,target,options)static Path move(Path source, Path target, CopyOption[] options)
newBufferedReadernewBufferedReader(path)
newBufferedReader([path,cs])
newBufferedReader([ :path = v, :cs = v ])
static BufferedReader newBufferedReader(Path path)
static BufferedReader newBufferedReader(Path path, Charset cs)
newBufferedWriternewBufferedWriter([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)
newByteChannelnewByteChannel([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)
newDirectoryStreamnewDirectoryStream(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)
newInputStreamnewInputStream(path,options)static InputStream newInputStream(Path path, OpenOption[] options)
newOutputStreamnewOutputStream(path,options)static OutputStream newOutputStream(Path path, OpenOption[] options)
notExistsnotExists(path,options)static boolean notExists(Path path, LinkOption[] options)
probeContentTypeprobeContentType(path)static String probeContentType(Path path)
readAllBytesreadAllBytes(path)static byte[] readAllBytes(Path path)
readAllLinesreadAllLines(path)
readAllLines([path,cs])
readAllLines([ :path = v, :cs = v ])
static List readAllLines(Path path)
static List readAllLines(Path path, Charset cs)
readAttributesreadAttributes(path,type,options)static BasicFileAttributes readAttributes(Path path, Class type, LinkOption[] options)
static Map readAttributes(Path path, String attributes, LinkOption[] options)
readStringreadString(path)
readString([path,cs])
readString([ :path = v, :cs = v ])
static String readString(Path path)
static String readString(Path path, Charset cs)
readSymbolicLinkreadSymbolicLink(link)static Path readSymbolicLink(Path link)
setAttributesetAttribute(path,attribute,value,options)static Path setAttribute(Path path, String attribute, Object value, LinkOption[] options)
setLastModifiedTimesetLastModifiedTime(path,time)static Path setLastModifiedTime(Path path, FileTime time)
setOwnersetOwner(path,owner)static Path setOwner(Path path, UserPrincipal owner)
setPosixFilePermissionssetPosixFilePermissions(path,perms)static Path setPosixFilePermissions(Path path, Set perms)
sizesize(path)static long size(Path path)
walkwalk([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)
walkFileTreewalkFileTree([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)
writewrite([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)
writeStringwriteString([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

MethodRing callJava overloads
getAttributegetAttribute(attribute)Object getAttribute(String attribute)
getBlockSizegetBlockSize()long getBlockSize()
getFileStoreAttributeViewgetFileStoreAttributeView(type)FileStoreAttributeView getFileStoreAttributeView(Class type)
getTotalSpacegetTotalSpace()long getTotalSpace()
getUnallocatedSpacegetUnallocatedSpace()long getUnallocatedSpace()
getUsableSpacegetUsableSpace()long getUsableSpace()
isReadOnlyisReadOnly()boolean isReadOnly()
namename()String name()
supportsFileAttributeViewsupportsFileAttributeView(type)boolean supportsFileAttributeView(Class type)
boolean supportsFileAttributeView(String name)
typetype()String type()

The methods and fields of Object are inherited.

FileSystem#

abstract · extends Object · java.nio.file.FileSystem

Implements: Closeable

Methods

MethodRing callJava overloads
closeclose()void close()
getFileStoresgetFileStores()Iterable getFileStores()
getPathgetPath(first,more)Path getPath(String first, String[] more)
getPathMatchergetPathMatcher(syntaxAndPattern)PathMatcher getPathMatcher(String syntaxAndPattern)
getRootDirectoriesgetRootDirectories()Iterable getRootDirectories()
getSeparatorgetSeparator()String getSeparator()
getUserPrincipalLookupServicegetUserPrincipalLookupService()UserPrincipalLookupService getUserPrincipalLookupService()
isOpenisOpen()boolean isOpen()
isReadOnlyisReadOnly()boolean isReadOnly()
newWatchServicenewWatchService()WatchService newWatchService()
providerprovider()FileSystemProvider provider()
supportedFileAttributeViewssupportedFileAttributeViews()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

MethodRing callJava overloads
getFilegetFile()String getFile()
getOtherFilegetOtherFile()String getOtherFile()
getReasongetReason()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

MethodRing callJava overloads
getDefaultgetDefault()static FileSystem getDefault()
getFileSystemgetFileSystem(uri)static FileSystem getFileSystem(URI uri)
newFileSystemnewFileSystem(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

NameTypeAccessIn Ring
FOLLOW_LINKSFileVisitOptionconstant · statico.FOLLOW_LINKS

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static FileVisitOption valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static FileVisitOption[] values()

The methods and fields of Enum are inherited.

FileVisitor#

interface · java.nio.file.FileVisitor

Methods

MethodRing callJava overloads
postVisitDirectorypostVisitDirectory(dir,exc)FileVisitResult postVisitDirectory(Object dir, IOException exc)
preVisitDirectorypreVisitDirectory(dir,attrs)FileVisitResult preVisitDirectory(Object dir, BasicFileAttributes attrs)
visitFilevisitFile(file,attrs)FileVisitResult visitFile(Object file, BasicFileAttributes attrs)
visitFileFailedvisitFileFailed(file,exc)FileVisitResult visitFileFailed(Object file, IOException exc)

FileVisitResult#

enum · extends Enum · java.nio.file.FileVisitResult

Fields

NameTypeAccessIn Ring
CONTINUEFileVisitResultconstant · statico.@CONTINUE
TERMINATEFileVisitResultconstant · statico.TERMINATE
SKIP_SUBTREEFileVisitResultconstant · statico.SKIP_SUBTREE
SKIP_SIBLINGSFileVisitResultconstant · statico.SKIP_SIBLINGS

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static FileVisitResult valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()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

MethodRing callJava overloads
getIndexgetIndex()int getIndex()
getInputgetInput()String getInput()
getReasongetReason()String getReason()

The methods and fields of IllegalArgumentException are inherited.

LinkOption#

enum · extends Enum · java.nio.file.LinkOption

Implements: OpenOption, CopyOption

Fields

NameTypeAccessIn Ring
NOFOLLOW_LINKSLinkOptionconstant · statico.NOFOLLOW_LINKS

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static LinkOption valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()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

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
compareTocompareTo(other)int compareTo(Path other)
endsWithendsWith(other)boolean endsWith(String other)
boolean endsWith(Path other)
equalsequals(other)boolean equals(Object other)
getFileNamegetFileName()Path getFileName()
getFileSystemgetFileSystem()FileSystem getFileSystem()
getNamegetName(index)Path getName(int index)
getNameCountgetNameCount()int getNameCount()
getParentgetParent()Path getParent()
getRootgetRoot()Path getRoot()
hashCodehashCode()int hashCode()
isAbsoluteisAbsolute()boolean isAbsolute()
iteratoriterator()Iterator iterator()
normalizenormalize()Path normalize()
ofof(uri)
of([first,more])
of([ :first = v, :more = v ])
static Path of(URI uri)
static Path of(String first, String[] more)
registerregister([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)
relativizerelativize(other)Path relativize(Path other)
resolveresolve(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)
resolveSiblingresolveSibling(other)Path resolveSibling(Path other)
Path resolveSibling(String other)
spliteratorspliterator()Spliterator spliterator()
startsWithstartsWith(other)boolean startsWith(Path other)
boolean startsWith(String other)
subpathsubpath(beginIndex,endIndex)Path subpath(int beginIndex, int endIndex)
toAbsolutePathtoAbsolutePath()Path toAbsolutePath()
toFiletoFile()File toFile()
toRealPathtoRealPath(options)Path toRealPath(LinkOption[] options)
toUritoUri()URI toUri()

PathMatcher#

interface · java.nio.file.PathMatcher

Methods

MethodRing callJava overloads
matchesmatches(path)boolean matches(Path path)

Paths#

class final · extends Object · java.nio.file.Paths

Methods

MethodRing callJava 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

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
closeclose()void close()
deleteDirectorydeleteDirectory(path)void deleteDirectory(Object path)
deleteFiledeleteFile(path)void deleteFile(Object path)
getFileAttributeViewgetFileAttributeView(type)
getFileAttributeView([path,type,options])
getFileAttributeView([ :path = v, :type = v, :options = v ])
FileAttributeView getFileAttributeView(Class type)
FileAttributeView getFileAttributeView(Object path, Class type, LinkOption[] options)
iteratoriterator()Iterator iterator()
movemove(srcpath,targetdir,targetpath)void move(Object srcpath, SecureDirectoryStream targetdir, Object targetpath)
newByteChannelnewByteChannel(path,options,attrs)SeekableByteChannel newByteChannel(Object path, Set options, FileAttribute[] attrs)
newDirectoryStreamnewDirectoryStream(path,options)SecureDirectoryStream newDirectoryStream(Object path, LinkOption[] options)
spliteratorspliterator()Spliterator spliterator()

SimpleFileVisitor#

class · extends Object · java.nio.file.SimpleFileVisitor

Implements: FileVisitor

Methods

MethodRing callJava overloads
postVisitDirectorypostVisitDirectory(dir,exc)FileVisitResult postVisitDirectory(Object dir, IOException exc)
preVisitDirectorypreVisitDirectory(dir,attrs)FileVisitResult preVisitDirectory(Object dir, BasicFileAttributes attrs)
visitFilevisitFile(file,attrs)FileVisitResult visitFile(Object file, BasicFileAttributes attrs)
visitFileFailedvisitFileFailed(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

NameTypeAccessIn Ring
REPLACE_EXISTINGStandardCopyOptionconstant · statico.REPLACE_EXISTING
COPY_ATTRIBUTESStandardCopyOptionconstant · statico.COPY_ATTRIBUTES
ATOMIC_MOVEStandardCopyOptionconstant · statico.ATOMIC_MOVE

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static StandardCopyOption valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static StandardCopyOption[] values()

The methods and fields of Enum are inherited.

StandardOpenOption#

enum · extends Enum · java.nio.file.StandardOpenOption

Implements: OpenOption

Fields

NameTypeAccessIn Ring
READStandardOpenOptionconstant · statico.READ
WRITEStandardOpenOptionconstant · statico.WRITE
APPENDStandardOpenOptionconstant · statico.APPEND
TRUNCATE_EXISTINGStandardOpenOptionconstant · statico.TRUNCATE_EXISTING
CREATEStandardOpenOptionconstant · statico.CREATE
CREATE_NEWStandardOpenOptionconstant · statico.CREATE_NEW
DELETE_ON_CLOSEStandardOpenOptionconstant · statico.DELETE_ON_CLOSE
SPARSEStandardOpenOptionconstant · statico.SPARSE
SYNCStandardOpenOptionconstant · statico.SYNC
DSYNCStandardOpenOptionconstant · statico.DSYNC

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static StandardOpenOption valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static StandardOpenOption[] values()

The methods and fields of Enum are inherited.

StandardWatchEventKinds#

class final · extends Object · java.nio.file.StandardWatchEventKinds

Fields

NameTypeAccessIn Ring
OVERFLOWKindconstant · statico.OVERFLOW
ENTRY_CREATEKindconstant · statico.ENTRY_CREATE
ENTRY_DELETEKindconstant · statico.ENTRY_DELETE
ENTRY_MODIFYKindconstant · statico.ENTRY_MODIFY

The methods and fields of Object are inherited.

Watchable#

interface · java.nio.file.Watchable

Methods

MethodRing callJava overloads
registerregister([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

MethodRing callJava overloads
contextcontext()Object context()
countcount()int count()
kindkind()Kind kind()

WatchEventKind#

interface · java.nio.file.WatchEvent$Kind

Methods

MethodRing callJava overloads
namename()String name()
typetype()Class type()

WatchEventModifier#

interface · java.nio.file.WatchEvent$Modifier

Methods

MethodRing callJava overloads
namename()String name()

WatchKey#

interface · java.nio.file.WatchKey

Methods

MethodRing callJava overloads
cancelcancel()void cancel()
isValidisValid()boolean isValid()
pollEventspollEvents()List pollEvents()
resetreset()boolean reset()
watchablewatchable()Watchable watchable()

WatchService#

interface · java.nio.file.WatchService

Extends: Closeable

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
WatchKey poll(long timeout, TimeUnit unit)
closeclose()void close()
pollpoll()WatchKey poll()
taketake()WatchKey take()
RingJava - use Java classes and methods from Ring programs.