- accept(A, CompletionHandler<AsynchronousSocketChannel, ? super A>) - Method in class java.nio.channels.AsynchronousServerSocketChannel
-
Accepts a connection.
- accept() - Method in class java.nio.channels.AsynchronousServerSocketChannel
-
Accepts a connection.
- accept() - Method in class java.nio.channels.ServerSocketChannel
-
Accepts a connection made to this channel's socket.
- accept(T) - Method in interface java.nio.file.DirectoryStream.Filter
-
Decides if the given directory entry should be accepted or filtered.
- AcceptPendingException - Exception in java.nio.channels
-
Unchecked exception thrown when an attempt is made to initiate an accept
operation on a channel and a previous accept operation has not completed.
- AcceptPendingException() - Constructor for exception java.nio.channels.AcceptPendingException
-
Constructs an instance of this class.
- AccessDeniedException - Exception in java.nio.file
-
Checked exception thrown when a file system operation is denied, typically
due to a file permission or other access check.
- AccessDeniedException(String) - Constructor for exception java.nio.file.AccessDeniedException
-
Constructs an instance of this class.
- AccessDeniedException(String, String, String) - Constructor for exception java.nio.file.AccessDeniedException
-
Constructs an instance of this class.
- AccessMode - Enum in java.nio.file
-
Defines access modes used to test the accessibility of a file.
- AclEntry - Class in java.nio.file.attribute
-
An entry in an access control list (ACL).
- AclEntry.Builder - Class in java.nio.file.attribute
-
- AclEntryFlag - Enum in java.nio.file.attribute
-
Defines the flags for used by the flags component of an ACL
entry.
- AclEntryPermission - Enum in java.nio.file.attribute
-
Defines the permissions for use with the permissions component of an ACL
entry.
- AclEntryType - Enum in java.nio.file.attribute
-
A typesafe enumeration of the access control entry types.
- AclFileAttributeView - Interface in java.nio.file.attribute
-
A file attribute view that supports reading or updating a file's Access
Control Lists (ACL) or file owner attributes.
- acquiredBy() - Method in class java.nio.channels.FileLock
-
Returns the channel upon whose file this lock was acquired.
- ADD_FILE - Static variable in enum java.nio.file.attribute.AclEntryPermission
-
- ADD_SUBDIRECTORY - Static variable in enum java.nio.file.attribute.AclEntryPermission
-
- AlreadyBoundException - Exception in java.nio.channels
-
Unchecked exception thrown when an attempt is made to bind the socket a
network oriented channel that is already bound.
- AlreadyBoundException() - Constructor for exception java.nio.channels.AlreadyBoundException
-
Constructs an instance of this class.
- asFileAttribute(Set<PosixFilePermission>) - Static method in class java.nio.file.attribute.PosixFilePermissions
-
- AsynchronousByteChannel - Interface in java.nio.channels
-
An asynchronous channel that can read and write bytes.
- AsynchronousChannel - Interface in java.nio.channels
-
A channel that supports asynchronous I/O operations.
- AsynchronousChannelGroup - Class in java.nio.channels
-
A grouping of asynchronous channels for the purpose of resource sharing.
- AsynchronousChannelGroup(AsynchronousChannelProvider) - Constructor for class java.nio.channels.AsynchronousChannelGroup
-
Initialize a new instance of this class.
- AsynchronousChannelProvider - Class in java.nio.channels.spi
-
Service-provider class for asynchronous channels.
- AsynchronousChannelProvider() - Constructor for class java.nio.channels.spi.AsynchronousChannelProvider
-
Initializes a new instance of this class.
- AsynchronousFileChannel - Class in java.nio.channels
-
An asynchronous channel for reading, writing, and manipulating a file.
- AsynchronousFileChannel() - Constructor for class java.nio.channels.AsynchronousFileChannel
-
Initializes a new instance of this class.
- AsynchronousServerSocketChannel - Class in java.nio.channels
-
An asynchronous channel for stream-oriented listening sockets.
- AsynchronousServerSocketChannel(AsynchronousChannelProvider) - Constructor for class java.nio.channels.AsynchronousServerSocketChannel
-
Initializes a new instance of this class.
- AsynchronousSocketChannel - Class in java.nio.channels
-
An asynchronous channel for stream-oriented connecting sockets.
- AsynchronousSocketChannel(AsynchronousChannelProvider) - Constructor for class java.nio.channels.AsynchronousSocketChannel
-
Initializes a new instance of this class.
- AtomicMoveNotSupportedException - Exception in java.nio.file
-
Checked exception thrown when a file cannot be moved as an atomic file system
operation.
- AtomicMoveNotSupportedException(String, String, String) - Constructor for exception java.nio.file.AtomicMoveNotSupportedException
-
Constructs an instance of this class.
- AttributeView - Interface in java.nio.file.attribute
-
An object that provides a read-only or updatable view of non-opaque
values associated with an object in a filesystem.
- awaitTermination(long, TimeUnit) - Method in class java.nio.channels.AsynchronousChannelGroup
-
Awaits termination of the group.
- cancel() - Method in interface java.nio.file.WatchKey
-
Cancels the registration with the watch service.
- canExecute() - Method in class java.io.File
-
Tests whether the application can execute the file denoted by this
abstract pathname.
- canRead() - Method in class java.io.File
-
Tests whether the application can read the file denoted by this
abstract pathname.
- canWrite() - Method in class java.io.File
-
Tests whether the application can modify the file denoted by this
abstract pathname.
- channel() - Method in class java.nio.channels.FileLock
-
Returns the file channel upon whose file this lock was acquired.
- channel() - Method in class java.nio.channels.MembershipKey
-
Returns the channel for which this membership key was created.
- Channels - Class in java.nio.channels
-
Utility methods for channels and streams.
- checkAccess(Path, AccessMode...) - Method in class java.nio.file.spi.FileSystemProvider
-
Checks the existence, and optionally the accessibility, of a file.
- close() - Method in interface java.nio.channels.AsynchronousChannel
-
Closes this channel.
- close() - Method in class java.nio.channels.FileLock
-
- close() - Method in interface java.nio.channels.MulticastChannel
-
Closes this channel.
- close() - Method in class java.nio.file.FileSystem
-
Closes this file system.
- close() - Method in interface java.nio.file.WatchService
-
Closes this watch service.
- close() - Method in class java.util.Scanner
-
Closes this scanner.
- ClosedDirectoryStreamException - Exception in java.nio.file
-
Unchecked exception thrown when an attempt is made to invoke an operation on
a directory stream that is closed.
- ClosedDirectoryStreamException() - Constructor for exception java.nio.file.ClosedDirectoryStreamException
-
Constructs an instance of this class.
- ClosedFileSystemException - Exception in java.nio.file
-
Unchecked exception thrown when an attempt is made to invoke an operation on
a file and the file system is closed.
- ClosedFileSystemException() - Constructor for exception java.nio.file.ClosedFileSystemException
-
Constructs an instance of this class.
- ClosedWatchServiceException - Exception in java.nio.file
-
Unchecked exception thrown when an attempt is made to invoke an operation on
a watch service that is closed.
- ClosedWatchServiceException() - Constructor for exception java.nio.file.ClosedWatchServiceException
-
Constructs an instance of this class.
- compareTo(File) - Method in class java.io.File
-
Compares two abstract pathnames lexicographically.
- compareTo(FileTime) - Method in class java.nio.file.attribute.FileTime
-
Compares the value of two FileTime objects for order.
- compareTo(Path) - Method in interface java.nio.file.Path
-
Compares two abstract paths lexicographically.
- completed(V, A) - Method in interface java.nio.channels.CompletionHandler
-
Invoked when an operation has completed.
- CompletionHandler<V,A> - Interface in java.nio.channels
-
A handler for consuming the result of an asynchronous I/O operation.
- connect(SocketAddress, A, CompletionHandler<Void, ? super A>) - Method in class java.nio.channels.AsynchronousSocketChannel
-
Connects this channel.
- connect(SocketAddress) - Method in class java.nio.channels.AsynchronousSocketChannel
-
Connects this channel.
- connect(SocketAddress) - Method in class java.nio.channels.DatagramChannel
-
Connects this channel's socket.
- connect(SocketAddress) - Method in class java.nio.channels.SocketChannel
-
Connects this channel's socket.
- context() - Method in interface java.nio.file.WatchEvent
-
Returns the context for the event.
- copy(Path, Path, CopyOption...) - Static method in class java.nio.file.Files
-
Copy a file to a target file.
- copy(InputStream, Path, CopyOption...) - Static method in class java.nio.file.Files
-
Copies all bytes from an input stream to a file.
- copy(Path, OutputStream) - Static method in class java.nio.file.Files
-
Copies all bytes from a file to an output stream.
- copy(Path, Path, CopyOption...) - Method in class java.nio.file.spi.FileSystemProvider
-
Copy a file to a target file.
- CopyOption - Interface in java.nio.file
-
An object that configures how to copy or move a file.
- count() - Method in interface java.nio.file.WatchEvent
-
Returns the event count.
- createDirectories(Path, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates a directory by creating all nonexistent parent directories first.
- createDirectory(Path, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates a new directory.
- createDirectory(Path, FileAttribute<?>...) - Method in class java.nio.file.spi.FileSystemProvider
-
Creates a new directory.
- createFile(Path, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates a new and empty file, failing if the file already exists.
- createLink(Path, Path) - Static method in class java.nio.file.Files
-
Creates a new link (directory entry) for an existing file (optional
operation).
- createLink(Path, Path) - Method in class java.nio.file.spi.FileSystemProvider
-
Creates a new link (directory entry) for an existing file.
- createNewFile() - Method in class java.io.File
-
Atomically creates a new, empty file named by this abstract pathname if
and only if a file with this name does not yet exist.
- createSymbolicLink(Path, Path, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates a symbolic link to a target (optional operation).
- createSymbolicLink(Path, Path, FileAttribute<?>...) - Method in class java.nio.file.spi.FileSystemProvider
-
Creates a symbolic link to a target.
- createTempDirectory(Path, String, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates a new directory in the specified directory, using the given
prefix to generate its name.
- createTempDirectory(String, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates a new directory in the default temporary-file directory, using
the given prefix and suffix to generate its name.
- createTempFile(String, String, File) - Static method in class java.io.File
-
Creates a new empty file in the specified directory, using the
given prefix and suffix strings to generate its name.
- createTempFile(String, String) - Static method in class java.io.File
-
Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name.
- createTempFile(Path, String, String, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates a new empty file in the specified directory, using the given
prefix and suffix strings to generate its name.
- createTempFile(String, String, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name.
- creationTime() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Returns the creation time.
- failed(Throwable, A) - Method in interface java.nio.channels.CompletionHandler
-
Invoked when an operation fails.
- File - Class in java.io
-
An abstract representation of file and directory pathnames.
- File(String) - Constructor for class java.io.File
-
Creates a new File instance by converting the given
pathname string into an abstract pathname.
- File(String, String) - Constructor for class java.io.File
-
Creates a new File instance from a parent pathname string
and a child pathname string.
- File(File, String) - Constructor for class java.io.File
-
Creates a new File instance from a parent abstract
pathname and a child pathname string.
- File(URI) - Constructor for class java.io.File
-
Creates a new File instance by converting the given
file: URI into an abstract pathname.
- FileAlreadyExistsException - Exception in java.nio.file
-
Checked exception thrown when an attempt is made to create a file or
directory and a file of that name already exists.
- FileAlreadyExistsException(String) - Constructor for exception java.nio.file.FileAlreadyExistsException
-
Constructs an instance of this class.
- FileAlreadyExistsException(String, String, String) - Constructor for exception java.nio.file.FileAlreadyExistsException
-
Constructs an instance of this class.
- FileAttribute<T> - Interface in java.nio.file.attribute
-
An object that encapsulates the value of a file attribute that can be set
atomically when creating a new file or directory by invoking the
createFile or
createDirectory methods.
- FileAttributeView - Interface in java.nio.file.attribute
-
An attribute view that is a read-only or updatable view of non-opaque
values associated with a file in a filesystem.
- FileChannel - Class in java.nio.channels
-
A channel for reading, writing, mapping, and manipulating a file.
- FileChannel() - Constructor for class java.nio.channels.FileChannel
-
Initializes a new instance of this class.
- FileChannel.MapMode - Class in java.nio.channels
-
A typesafe enumeration for file-mapping modes.
- fileKey() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Returns an object that uniquely identifies the given file, or null if a file key is not available.
- FileLock - Class in java.nio.channels
-
A token representing a lock on a region of a file.
- FileLock(FileChannel, long, long, boolean) - Constructor for class java.nio.channels.FileLock
-
Initializes a new instance of this class.
- FileLock(AsynchronousFileChannel, long, long, boolean) - Constructor for class java.nio.channels.FileLock
-
Initializes a new instance of this class.
- FileOwnerAttributeView - Interface in java.nio.file.attribute
-
A file attribute view that supports reading or updating the owner of a file.
- FilePermission - Class in java.io
-
This class represents access to a file or directory.
- FilePermission(String, String) - Constructor for class java.io.FilePermission
-
Creates a new FilePermission object with the specified actions.
- Files - Class in java.nio.file
-
This class consists exclusively of static methods that operate on files,
directories, or other types of files.
- FileStore - Class in java.nio.file
-
Storage for files.
- FileStore() - Constructor for class java.nio.file.FileStore
-
Initializes a new instance of this class.
- FileStoreAttributeView - Interface in java.nio.file.attribute
-
An attribute view that is a read-only or updatable view of the attributes of
a
FileStore.
- FileSystem - Class in java.nio.file
-
Provides an interface to a file system and is the factory for objects to
access files and other objects in the file system.
- FileSystem() - Constructor for class java.nio.file.FileSystem
-
Initializes a new instance of this class.
- FileSystemAlreadyExistsException - Exception in java.nio.file
-
Runtime exception thrown when an attempt is made to create a file system that
already exists.
- FileSystemAlreadyExistsException() - Constructor for exception java.nio.file.FileSystemAlreadyExistsException
-
Constructs an instance of this class.
- FileSystemAlreadyExistsException(String) - Constructor for exception java.nio.file.FileSystemAlreadyExistsException
-
Constructs an instance of this class.
- FileSystemException - Exception in java.nio.file
-
Thrown when a file system operation fails on one or two files.
- FileSystemException(String) - Constructor for exception java.nio.file.FileSystemException
-
Constructs an instance of this class.
- FileSystemException(String, String, String) - Constructor for exception java.nio.file.FileSystemException
-
Constructs an instance of this class.
- FileSystemLoopException - Exception in java.nio.file
-
Checked exception thrown when a file system loop, or cycle, is encountered.
- FileSystemLoopException(String) - Constructor for exception java.nio.file.FileSystemLoopException
-
Constructs an instance of this class.
- FileSystemNotFoundException - Exception in java.nio.file
-
Runtime exception thrown when a file system cannot be found.
- FileSystemNotFoundException() - Constructor for exception java.nio.file.FileSystemNotFoundException
-
Constructs an instance of this class.
- FileSystemNotFoundException(String) - Constructor for exception java.nio.file.FileSystemNotFoundException
-
Constructs an instance of this class.
- FileSystemProvider - Class in java.nio.file.spi
-
Service-provider class for file systems.
- FileSystemProvider() - Constructor for class java.nio.file.spi.FileSystemProvider
-
Initializes a new instance of this class.
- FileSystems - Class in java.nio.file
-
Factory methods for file systems.
- FileTime - Class in java.nio.file.attribute
-
Represents the value of a file's time stamp attribute.
- FileTypeDetector - Class in java.nio.file.spi
-
A file type detector for probing a file to guess its file type.
- FileTypeDetector() - Constructor for class java.nio.file.spi.FileTypeDetector
-
Initializes a new instance of this class.
- FileVisitOption - Enum in java.nio.file
-
Defines the file tree traversal options.
- FileVisitor<T> - Interface in java.nio.file
-
A visitor of files.
- FileVisitResult - Enum in java.nio.file
-
- findInLine(String) - Method in class java.util.Scanner
-
Attempts to find the next occurrence of a pattern constructed from the
specified string, ignoring delimiters.
- findInLine(Pattern) - Method in class java.util.Scanner
-
Attempts to find the next occurrence of the specified pattern ignoring
delimiters.
- findWithinHorizon(String, int) - Method in class java.util.Scanner
-
Attempts to find the next occurrence of a pattern constructed from the
specified string, ignoring delimiters.
- findWithinHorizon(Pattern, int) - Method in class java.util.Scanner
-
Attempts to find the next occurrence of the specified pattern.
- finishConnect() - Method in class java.nio.channels.SocketChannel
-
Finishes the process of connecting a socket channel.
- flags() - Method in class java.nio.file.attribute.AclEntry
-
Returns a copy of the flags component.
- force(boolean) - Method in class java.nio.channels.AsynchronousFileChannel
-
Forces any updates to this channel's file to be written to the storage
device that contains it.
- force(boolean) - Method in class java.nio.channels.FileChannel
-
Forces any updates to this channel's file to be written to the storage
device that contains it.
- from(long, TimeUnit) - Static method in class java.nio.file.attribute.FileTime
-
Returns a FileTime representing a value at the given unit of
granularity.
- fromMillis(long) - Static method in class java.nio.file.attribute.FileTime
-
Returns a FileTime representing the given value in milliseconds.
- fromString(String) - Static method in class java.nio.file.attribute.PosixFilePermissions
-
Returns the set of permissions corresponding to a given String
representation.
- get(String, String...) - Static method in class java.nio.file.Paths
-
Converts a path string, or a sequence of strings that when joined form
a path string, to a Path.
- get(URI) - Static method in class java.nio.file.Paths
-
Converts the given URI to a
Path object.
- getAbsoluteFile() - Method in class java.io.File
-
Returns the absolute form of this abstract pathname.
- getAbsolutePath() - Method in class java.io.File
-
Returns the absolute pathname string of this abstract pathname.
- getAcl() - Method in interface java.nio.file.attribute.AclFileAttributeView
-
Reads the access control list.
- getActions() - Method in class java.io.FilePermission
-
Returns the "canonical string representation" of the actions.
- getAttribute(Path, String, LinkOption...) - Static method in class java.nio.file.Files
-
Reads the value of a file attribute.
- getAttribute(String) - Method in class java.nio.file.FileStore
-
Reads the value of a file store attribute.
- getCanonicalFile() - Method in class java.io.File
-
Returns the canonical form of this abstract pathname.
- getCanonicalPath() - Method in class java.io.File
-
Returns the canonical pathname string of this abstract pathname.
- getCause() - Method in exception java.nio.file.DirectoryIteratorException
-
Returns the cause of this exception.
- getCount() - Method in interface java.nio.BufferPoolMXBean
-
Returns an estimate of the number of buffers in the pool.
- getDefault() - Static method in class java.nio.file.FileSystems
-
Returns the default FileSystem.
- getFile() - Method in exception java.nio.file.FileSystemException
-
Returns the file used to create this exception.
- getFileAttributeView(Path, Class<V>, LinkOption...) - Static method in class java.nio.file.Files
-
Returns a file attribute view of a given type.
- getFileAttributeView(Class<V>) - Method in interface java.nio.file.SecureDirectoryStream
-
Returns a new file attribute view to access the file attributes of this
directory.
- getFileAttributeView(T, Class<V>, LinkOption...) - Method in interface java.nio.file.SecureDirectoryStream
-
Returns a new file attribute view to access the file attributes of a file
in this directory.
- getFileAttributeView(Path, Class<V>, LinkOption...) - Method in class java.nio.file.spi.FileSystemProvider
-
Returns a file attribute view of a given type.
- getFileName() - Method in interface java.nio.file.Path
-
Returns the name of the file or directory denoted by this path as a
Path object.
- getFileStore(Path) - Static method in class java.nio.file.Files
-
Returns the
FileStore representing the file store where a file
is located.
- getFileStore(Path) - Method in class java.nio.file.spi.FileSystemProvider
-
Returns the
FileStore representing the file store where a file
is located.
- getFileStoreAttributeView(Class<V>) - Method in class java.nio.file.FileStore
-
Returns a FileStoreAttributeView of the given type.
- getFileStores() - Method in class java.nio.file.FileSystem
-
Returns an object to iterate over the underlying file stores.
- getFileSystem(URI) - Static method in class java.nio.file.FileSystems
-
Returns a reference to an existing FileSystem.
- getFileSystem() - Method in interface java.nio.file.Path
-
Returns the file system that created this object.
- getFileSystem(URI) - Method in class java.nio.file.spi.FileSystemProvider
-
Returns an existing FileSystem created by this provider.
- getFreeSpace() - Method in class java.io.File
-
Returns the number of unallocated bytes in the partition
named by this abstract path name.
- getIndex() - Method in exception java.nio.file.InvalidPathException
-
Returns an index into the input string of the position at which the
error occurred, or -1 if this position is not known.
- getInput() - Method in exception java.nio.file.InvalidPathException
-
Returns the input string.
- getLastModifiedTime(Path, LinkOption...) - Static method in class java.nio.file.Files
-
Returns a file's last modified time.
- getLocalAddress() - Method in interface java.nio.channels.NetworkChannel
-
Returns the socket address that this channel's socket is bound to, or
null if the socket is not bound.
- getMemoryUsed() - Method in interface java.nio.BufferPoolMXBean
-
Returns an estimate of the memory that the Java virtual machine is using
for this buffer pool.
- getMessage() - Method in exception java.nio.file.FileSystemException
-
Returns the detail message string.
- getMessage() - Method in exception java.nio.file.InvalidPathException
-
Returns a string describing the error.
- getName() - Method in class java.io.File
-
Returns the name of the file or directory denoted by this abstract
pathname.
- getName() - Method in interface java.nio.BufferPoolMXBean
-
Returns the name representing this buffer pool.
- getName() - Method in exception java.nio.file.attribute.UserPrincipalNotFoundException
-
Returns the user principal name if this exception was created with the
user principal name that was not found, otherwise null.
- getName(int) - Method in interface java.nio.file.Path
-
Returns a name element of this path as a Path object.
- getNameCount() - Method in interface java.nio.file.Path
-
Returns the number of name elements in the path.
- getOption(SocketOption<T>) - Method in interface java.nio.channels.NetworkChannel
-
Returns the value of a socket option.
- getOtherFile() - Method in exception java.nio.file.FileSystemException
-
Returns the other file used to create this exception.
- getOwner() - Method in interface java.nio.file.attribute.FileOwnerAttributeView
-
Read the file owner.
- getOwner(Path, LinkOption...) - Static method in class java.nio.file.Files
-
Returns the owner of a file.
- getParent() - Method in class java.io.File
-
Returns the pathname string of this abstract pathname's parent, or
null if this pathname does not name a parent directory.
- getParent() - Method in interface java.nio.file.Path
-
Returns the parent path, or null if this path does not
have a parent.
- getParentFile() - Method in class java.io.File
-
Returns the abstract pathname of this abstract pathname's parent,
or null if this pathname does not name a parent
directory.
- getPath() - Method in class java.io.File
-
Converts this abstract pathname into a pathname string.
- getPath(String, String...) - Method in class java.nio.file.FileSystem
-
Converts a path string, or a sequence of strings that when joined form
a path string, to a Path.
- getPath(URI) - Method in class java.nio.file.spi.FileSystemProvider
-
Return a
Path object by converting the given
URI.
- getPathMatcher(String) - Method in class java.nio.file.FileSystem
-
Returns a
PathMatcher that performs match operations on the
String representation of
Path objects by interpreting a
given pattern.
- getPosixFilePermissions(Path, LinkOption...) - Static method in class java.nio.file.Files
-
Returns a file's POSIX file permissions.
- getReason() - Method in exception java.nio.file.FileSystemException
-
Returns the string explaining why the file system operation failed.
- getReason() - Method in exception java.nio.file.InvalidPathException
-
Returns a string explaining why the input string was rejected.
- getRemoteAddress() - Method in class java.nio.channels.AsynchronousSocketChannel
-
Returns the remote address to which this channel's socket is connected.
- getRemoteAddress() - Method in class java.nio.channels.DatagramChannel
-
Returns the remote address to which this channel's socket is connected.
- getRemoteAddress() - Method in class java.nio.channels.SocketChannel
-
Returns the remote address to which this channel's socket is connected.
- getRoot() - Method in interface java.nio.file.Path
-
Returns the root component of this path as a Path object,
or null if this path does not have a root component.
- getRootDirectories() - Method in class java.nio.file.FileSystem
-
Returns an object to iterate over the paths of the root directories.
- getScheme() - Method in class java.nio.file.spi.FileSystemProvider
-
Returns the URI scheme that identifies this provider.
- getSeparator() - Method in class java.nio.file.FileSystem
-
Returns the name separator, represented as a string.
- getTotalCapacity() - Method in interface java.nio.BufferPoolMXBean
-
Returns an estimate of the total capacity of the buffers in this pool.
- getTotalSpace() - Method in class java.io.File
-
Returns the size of the partition
named by this
abstract pathname.
- getTotalSpace() - Method in class java.nio.file.FileStore
-
Returns the size, in bytes, of the file store.
- getUnallocatedSpace() - Method in class java.nio.file.FileStore
-
Returns the number of unallocated bytes in the file store.
- getUsableSpace() - Method in class java.io.File
-
Returns the number of bytes available to this virtual machine on the
partition
named by this abstract pathname.
- getUsableSpace() - Method in class java.nio.file.FileStore
-
Returns the number of bytes available to this Java virtual machine on the
file store.
- getUserPrincipalLookupService() - Method in class java.nio.file.FileSystem
-
Returns the UserPrincipalLookupService for this file system
(optional operation).
- group() - Method in class java.nio.channels.MembershipKey
-
Returns the multicast group for which this membership key was created.
- group() - Method in interface java.nio.file.attribute.PosixFileAttributes
-
Returns the group owner of the file.
- GroupPrincipal - Interface in java.nio.file.attribute
-
A UserPrincipal representing a group identity, used to
determine access rights to objects in a file system.
- IllegalChannelGroupException - Exception in java.nio.channels
-
Unchecked exception thrown when an attempt is made to open a channel
in a group that was not created by the same provider.
- IllegalChannelGroupException() - Constructor for exception java.nio.channels.IllegalChannelGroupException
-
Constructs an instance of this class.
- implies(Permission) - Method in class java.io.FilePermission
-
Checks if this FilePermission object "implies" the specified permission.
- inheritedChannel() - Method in class java.nio.channels.spi.SelectorProvider
-
Returns the channel inherited from the entity that created this
Java virtual machine.
- installedProviders() - Static method in class java.nio.file.spi.FileSystemProvider
-
Returns a list of the installed file system providers.
- InterruptedByTimeoutException - Exception in java.nio.channels
-
Checked exception received by a thread when a timeout elapses before an
asynchronous operation completes.
- InterruptedByTimeoutException() - Constructor for exception java.nio.channels.InterruptedByTimeoutException
-
Constructs an instance of this class.
- InvalidPathException - Exception in java.nio.file
-
Unchecked exception thrown when path string cannot be converted into a
Path because the path string contains invalid characters, or
the path string is invalid for other file system specific reasons.
- InvalidPathException(String, String, int) - Constructor for exception java.nio.file.InvalidPathException
-
Constructs an instance from the given input string, reason, and error
index.
- InvalidPathException(String, String) - Constructor for exception java.nio.file.InvalidPathException
-
Constructs an instance from the given input string and reason.
- ioException() - Method in class java.util.Scanner
-
Returns the IOException last thrown by this
Scanner's underlying Readable.
- IP_MULTICAST_IF - Static variable in class java.net.StandardSocketOption
-
The network interface for Internet Protocol (IP) multicast datagrams.
- IP_MULTICAST_LOOP - Static variable in class java.net.StandardSocketOption
-
Loopback for Internet Protocol (IP) multicast datagrams.
- IP_MULTICAST_TTL - Static variable in class java.net.StandardSocketOption
-
The time-to-live for Internet Protocol (IP) multicast datagrams.
- IP_TOS - Static variable in class java.net.StandardSocketOption
-
The Type of Service (ToS) octet in the Internet Protocol (IP) header.
- isAbsolute() - Method in class java.io.File
-
Tests whether this abstract pathname is absolute.
- isAbsolute() - Method in interface java.nio.file.Path
-
Tells whether or not this path is absolute.
- isArchive() - Method in interface java.nio.file.attribute.DosFileAttributes
-
Returns the value of the archive attribute.
- isConnected() - Method in class java.nio.channels.DatagramChannel
-
Tells whether or not this channel's socket is connected.
- isConnected() - Method in class java.nio.channels.SocketChannel
-
Tells whether or not this channel's network socket is connected.
- isConnectionPending() - Method in class java.nio.channels.SocketChannel
-
Tells whether or not a connection operation is in progress on this
channel.
- isDirectory() - Method in class java.io.File
-
Tests whether the file denoted by this abstract pathname is a
directory.
- isDirectory() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Tells whether the file is a directory.
- isDirectory(Path, LinkOption...) - Static method in class java.nio.file.Files
-
Tests whether a file is a directory.
- isExecutable(Path) - Static method in class java.nio.file.Files
-
Tests whether a file is executable.
- isFile() - Method in class java.io.File
-
Tests whether the file denoted by this abstract pathname is a normal
file.
- isHidden() - Method in class java.io.File
-
Tests whether the file named by this abstract pathname is a hidden
file.
- isHidden() - Method in interface java.nio.file.attribute.DosFileAttributes
-
Returns the value of the hidden attribute.
- isHidden(Path) - Static method in class java.nio.file.Files
-
Tells whether or not a file is considered hidden.
- isHidden(Path) - Method in class java.nio.file.spi.FileSystemProvider
-
Tells whether or not a file is considered hidden.
- isOpen() - Method in class java.nio.file.FileSystem
-
Tells whether or not this file system is open.
- isOther() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Tells whether the file is something other than a regular file, directory,
or symbolic link.
- isReadable(Path) - Static method in class java.nio.file.Files
-
Tests whether a file is readable.
- isReadOnly() - Method in interface java.nio.file.attribute.DosFileAttributes
-
Returns the value of the read-only attribute.
- isReadOnly() - Method in class java.nio.file.FileStore
-
Tells whether this file store is read-only.
- isReadOnly() - Method in class java.nio.file.FileSystem
-
Tells whether or not this file system allows only read-only access to
its file stores.
- isRegularFile() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Tells whether the file is a regular file with opaque content.
- isRegularFile(Path, LinkOption...) - Static method in class java.nio.file.Files
-
Tests whether a file is a regular file with opaque content.
- isSameFile(Path, Path) - Static method in class java.nio.file.Files
-
Tests if two paths locate the same file.
- isSameFile(Path, Path) - Method in class java.nio.file.spi.FileSystemProvider
-
Tests if two paths locate the same file.
- isShared() - Method in class java.nio.channels.FileLock
-
Tells whether this lock is shared.
- isShutdown() - Method in class java.nio.channels.AsynchronousChannelGroup
-
Tells whether or not this asynchronous channel group is shutdown.
- isSymbolicLink() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Tells whether the file is a symbolic link.
- isSymbolicLink(Path) - Static method in class java.nio.file.Files
-
Tests whether a file is a symbolic link.
- isSystem() - Method in interface java.nio.file.attribute.DosFileAttributes
-
Returns the value of the system attribute.
- isTerminated() - Method in class java.nio.channels.AsynchronousChannelGroup
-
Tells whether or not this group has terminated.
- isValid() - Method in class java.nio.channels.FileLock
-
Tells whether or not this lock is valid.
- isValid() - Method in class java.nio.channels.MembershipKey
-
Tells whether or not this membership is valid.
- isValid() - Method in interface java.nio.file.WatchKey
-
Tells whether or not this watch key is valid.
- isWritable(Path) - Static method in class java.nio.file.Files
-
Tests whether a file is writable.
- iterator() - Method in interface java.nio.file.DirectoryStream
-
Returns the iterator associated with this DirectoryStream.
- iterator() - Method in interface java.nio.file.Path
-
Returns an iterator over the name elements of this path.
- java.io - package java.io
-
Provides for system input and output through data streams,
serialization and the file system.
- java.net - package java.net
-
Provides the classes for implementing networking applications.
- java.nio - package java.nio
-
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
- java.nio.channels - package java.nio.channels
-
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
- java.nio.channels.spi - package java.nio.channels.spi
-
- java.nio.file - package java.nio.file
-
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
- java.nio.file.attribute - package java.nio.file.attribute
-
Interfaces and classes providing access to file and file system attributes.
- java.nio.file.spi - package java.nio.file.spi
-
- java.util - package java.util
-
Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array).
- join(InetAddress, NetworkInterface) - Method in interface java.nio.channels.MulticastChannel
-
Joins a multicast group to begin receiving all datagrams sent to the group,
returning a membership key.
- join(InetAddress, NetworkInterface, InetAddress) - Method in interface java.nio.channels.MulticastChannel
-
Joins a multicast group to begin receiving datagrams sent to the group
from a given source address.
- lastAccessTime() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Returns the time of last access.
- lastModified() - Method in class java.io.File
-
Returns the time that the file denoted by this abstract pathname was
last modified.
- lastModifiedTime() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Returns the time of last modification.
- length() - Method in class java.io.File
-
Returns the length of the file denoted by this abstract pathname.
- LinkOption - Enum in java.nio.file
-
Defines the options as to how symbolic links are handled.
- LinkPermission - Class in java.nio.file
-
The Permission class for link creation operations.
- LinkPermission(String) - Constructor for class java.nio.file.LinkPermission
-
Constructs a LinkPermission with the specified name.
- LinkPermission(String, String) - Constructor for class java.nio.file.LinkPermission
-
Constructs a LinkPermission with the specified name.
- list() - Method in class java.io.File
-
Returns an array of strings naming the files and directories in the
directory denoted by this abstract pathname.
- list(FilenameFilter) - Method in class java.io.File
-
Returns an array of strings naming the files and directories in the
directory denoted by this abstract pathname that satisfy the specified
filter.
- list() - Method in interface java.nio.file.attribute.UserDefinedFileAttributeView
-
Returns a list containing the names of the user-defined attributes.
- LIST_DIRECTORY - Static variable in enum java.nio.file.attribute.AclEntryPermission
-
- listFiles() - Method in class java.io.File
-
Returns an array of abstract pathnames denoting the files in the
directory denoted by this abstract pathname.
- listFiles(FilenameFilter) - Method in class java.io.File
-
Returns an array of abstract pathnames denoting the files and
directories in the directory denoted by this abstract pathname that
satisfy the specified filter.
- listFiles(FileFilter) - Method in class java.io.File
-
Returns an array of abstract pathnames denoting the files and
directories in the directory denoted by this abstract pathname that
satisfy the specified filter.
- listRoots() - Static method in class java.io.File
-
List the available filesystem roots.
- locale() - Method in class java.util.Scanner
-
Returns this scanner's locale.
- lock(long, long, boolean, A, CompletionHandler<FileLock, ? super A>) - Method in class java.nio.channels.AsynchronousFileChannel
-
Acquires a lock on the given region of this channel's file.
- lock(A, CompletionHandler<FileLock, ? super A>) - Method in class java.nio.channels.AsynchronousFileChannel
-
Acquires an exclusive lock on this channel's file.
- lock(long, long, boolean) - Method in class java.nio.channels.AsynchronousFileChannel
-
Acquires a lock on the given region of this channel's file.
- lock() - Method in class java.nio.channels.AsynchronousFileChannel
-
Acquires an exclusive lock on this channel's file.
- lock(long, long, boolean) - Method in class java.nio.channels.FileChannel
-
Acquires a lock on the given region of this channel's file.
- lock() - Method in class java.nio.channels.FileChannel
-
Acquires an exclusive lock on this channel's file.
- lookupPrincipalByGroupName(String) - Method in class java.nio.file.attribute.UserPrincipalLookupService
-
Lookup a group principal by group name.
- lookupPrincipalByName(String) - Method in class java.nio.file.attribute.UserPrincipalLookupService
-
Lookup a user principal by name.
- name() - Method in interface java.net.ProtocolFamily
-
Returns the name of the protocol family.
- name() - Method in interface java.net.SocketOption
-
Returns the name of the socket option.
- name() - Method in interface java.nio.file.attribute.AclFileAttributeView
-
Returns the name of the attribute view.
- name() - Method in interface java.nio.file.attribute.AttributeView
-
Returns the name of the attribute view.
- name() - Method in interface java.nio.file.attribute.BasicFileAttributeView
-
Returns the name of the attribute view.
- name() - Method in interface java.nio.file.attribute.DosFileAttributeView
-
Returns the name of the attribute view.
- name() - Method in interface java.nio.file.attribute.FileAttribute
-
Returns the attribute name.
- name() - Method in interface java.nio.file.attribute.FileOwnerAttributeView
-
Returns the name of the attribute view.
- name() - Method in interface java.nio.file.attribute.PosixFileAttributeView
-
Returns the name of the attribute view.
- name() - Method in interface java.nio.file.attribute.UserDefinedFileAttributeView
-
Returns the name of this attribute view.
- name() - Method in class java.nio.file.FileStore
-
Returns the name of this file store.
- name() - Method in interface java.nio.file.WatchEvent.Kind
-
Returns the name of the event kind.
- name() - Method in interface java.nio.file.WatchEvent.Modifier
-
Returns the name of the modifier.
- NetworkChannel - Interface in java.nio.channels
-
A channel to a network socket.
- networkInterface() - Method in class java.nio.channels.MembershipKey
-
Returns the network interface for which this membership key was created.
- newAsynchronousFileChannel(Path, Set<? extends OpenOption>, ExecutorService, FileAttribute<?>...) - Method in class java.nio.file.spi.FileSystemProvider
-
Opens or creates a file for reading and/or writing, returning an
asynchronous file channel to access the file.
- newBufferedReader(Path, Charset) - Static method in class java.nio.file.Files
-
Opens a file for reading, returning a BufferedReader that may be
used to read text from the file in an efficient manner.
- newBufferedWriter(Path, Charset, OpenOption...) - Static method in class java.nio.file.Files
-
Opens or creates a file for writing, returning a BufferedWriter
that may be used to write text to the file in an efficient manner.
- newBuilder() - Static method in class java.nio.file.attribute.AclEntry
-
Constructs a new builder.
- newBuilder(AclEntry) - Static method in class java.nio.file.attribute.AclEntry
-
Constructs a new builder with the components of an existing ACL entry.
- newByteChannel(Path, Set<? extends OpenOption>, FileAttribute<?>...) - Static method in class java.nio.file.Files
-
Opens or creates a file, returning a seekable byte channel to access the
file.
- newByteChannel(Path, OpenOption...) - Static method in class java.nio.file.Files
-
Opens or creates a file, returning a seekable byte channel to access the
file.
- newByteChannel(T, Set<? extends OpenOption>, FileAttribute<?>...) - Method in interface java.nio.file.SecureDirectoryStream
-
Opens or creates a file in this directory, returning a seekable byte
channel to access the file.
- newByteChannel(Path, Set<? extends OpenOption>, FileAttribute<?>...) - Method in class java.nio.file.spi.FileSystemProvider
-
Opens or creates a file, returning a seekable byte channel to access the
file.
- newChannel(InputStream) - Static method in class java.nio.channels.Channels
-
Constructs a channel that reads bytes from the given stream.
- newChannel(OutputStream) - Static method in class java.nio.channels.Channels
-
Constructs a channel that writes bytes to the given stream.
- newDirectoryStream(Path) - Static method in class java.nio.file.Files
-
Opens a directory, returning a
DirectoryStream to iterate over
all entries in the directory.
- newDirectoryStream(Path, String) - Static method in class java.nio.file.Files
-
Opens a directory, returning a
DirectoryStream to iterate over
the entries in the directory.
- newDirectoryStream(Path, DirectoryStream.Filter<? super Path>) - Static method in class java.nio.file.Files
-
Opens a directory, returning a
DirectoryStream to iterate over
the entries in the directory.
- newDirectoryStream(T, LinkOption...) - Method in interface java.nio.file.SecureDirectoryStream
-
Opens the directory identified by the given path, returning a SecureDirectoryStream to iterate over the entries in the directory.
- newDirectoryStream(Path, DirectoryStream.Filter<? super Path>) - Method in class java.nio.file.spi.FileSystemProvider
-
Opens a directory, returning a DirectoryStream to iterate over
the entries in the directory.
- newFileChannel(Path, Set<? extends OpenOption>, FileAttribute<?>...) - Method in class java.nio.file.spi.FileSystemProvider
-
Opens or creates a file for reading and/or writing, returning a file
channel to access the file.
- newFileSystem(URI, Map<String, ?>) - Static method in class java.nio.file.FileSystems
-
Constructs a new file system that is identified by a
URI
- newFileSystem(URI, Map<String, ?>, ClassLoader) - Static method in class java.nio.file.FileSystems
-
Constructs a new file system that is identified by a
URI
- newFileSystem(Path, ClassLoader) - Static method in class java.nio.file.FileSystems
-
Constructs a new FileSystem to access the contents of a file as a
file system.
- newFileSystem(URI, Map<String, ?>) - Method in class java.nio.file.spi.FileSystemProvider
-
Constructs a new FileSystem object identified by a URI.
- newFileSystem(Path, Map<String, ?>) - Method in class java.nio.file.spi.FileSystemProvider
-
Constructs a new FileSystem to access the contents of a file as a
file system.
- newInputStream(ReadableByteChannel) - Static method in class java.nio.channels.Channels
-
Constructs a stream that reads bytes from the given channel.
- newInputStream(AsynchronousByteChannel) - Static method in class java.nio.channels.Channels
-
Constructs a stream that reads bytes from the given channel.
- newInputStream(Path, OpenOption...) - Static method in class java.nio.file.Files
-
Opens a file, returning an input stream to read from the file.
- newInputStream(Path, OpenOption...) - Method in class java.nio.file.spi.FileSystemProvider
-
Opens a file, returning an input stream to read from the file.
- newOutputStream(WritableByteChannel) - Static method in class java.nio.channels.Channels
-
Constructs a stream that writes bytes to the given channel.
- newOutputStream(AsynchronousByteChannel) - Static method in class java.nio.channels.Channels
-
Constructs a stream that writes bytes to the given channel.
- newOutputStream(Path, OpenOption...) - Static method in class java.nio.file.Files
-
Opens or creates a file, returning an output stream that may be used to
write bytes to the file.
- newOutputStream(Path, OpenOption...) - Method in class java.nio.file.spi.FileSystemProvider
-
Opens or creates a file, returning an output stream that may be used to
write bytes to the file.
- newPermissionCollection() - Method in class java.io.FilePermission
-
Returns a new PermissionCollection object for storing FilePermission
objects.
- newReader(ReadableByteChannel, CharsetDecoder, int) - Static method in class java.nio.channels.Channels
-
Constructs a reader that decodes bytes from the given channel using the
given decoder.
- newReader(ReadableByteChannel, String) - Static method in class java.nio.channels.Channels
-
Constructs a reader that decodes bytes from the given channel according
to the named charset.
- newWatchService() - Method in class java.nio.file.FileSystem
-
- newWriter(WritableByteChannel, CharsetEncoder, int) - Static method in class java.nio.channels.Channels
-
Constructs a writer that encodes characters using the given encoder and
writes the resulting bytes to the given channel.
- newWriter(WritableByteChannel, String) - Static method in class java.nio.channels.Channels
-
Constructs a writer that encodes characters according to the named
charset and writes the resulting bytes to the given channel.
- next() - Method in class java.util.Scanner
-
Finds and returns the next complete token from this scanner.
- next(String) - Method in class java.util.Scanner
-
Returns the next token if it matches the pattern constructed from the
specified string.
- next(Pattern) - Method in class java.util.Scanner
-
Returns the next token if it matches the specified pattern.
- nextBigDecimal() - Method in class java.util.Scanner
-
Scans the next token of the input as a
BigDecimal.
- nextBigInteger() - Method in class java.util.Scanner
-
Scans the next token of the input as a
BigInteger.
- nextBigInteger(int) - Method in class java.util.Scanner
-
Scans the next token of the input as a
BigInteger.
- nextBoolean() - Method in class java.util.Scanner
-
Scans the next token of the input into a boolean value and returns
that value.
- nextByte() - Method in class java.util.Scanner
-
Scans the next token of the input as a byte.
- nextByte(int) - Method in class java.util.Scanner
-
Scans the next token of the input as a byte.
- nextDouble() - Method in class java.util.Scanner
-
Scans the next token of the input as a double.
- nextFloat() - Method in class java.util.Scanner
-
Scans the next token of the input as a float.
- nextInt() - Method in class java.util.Scanner
-
Scans the next token of the input as an int.
- nextInt(int) - Method in class java.util.Scanner
-
Scans the next token of the input as an int.
- nextLine() - Method in class java.util.Scanner
-
Advances this scanner past the current line and returns the input
that was skipped.
- nextLong() - Method in class java.util.Scanner
-
Scans the next token of the input as a long.
- nextLong(int) - Method in class java.util.Scanner
-
Scans the next token of the input as a long.
- nextShort() - Method in class java.util.Scanner
-
Scans the next token of the input as a short.
- nextShort(int) - Method in class java.util.Scanner
-
Scans the next token of the input as a short.
- normalize() - Method in interface java.nio.file.Path
-
Returns a path that is this path with redundant name elements eliminated.
- NoSuchFileException - Exception in java.nio.file
-
Checked exception thrown when an attempt is made to access a file that does
not exist.
- NoSuchFileException(String) - Constructor for exception java.nio.file.NoSuchFileException
-
Constructs an instance of this class.
- NoSuchFileException(String, String, String) - Constructor for exception java.nio.file.NoSuchFileException
-
Constructs an instance of this class.
- NotDirectoryException - Exception in java.nio.file
-
Checked exception thrown when a file system operation, intended for a
directory, fails because the file is not a directory.
- NotDirectoryException(String) - Constructor for exception java.nio.file.NotDirectoryException
-
Constructs an instance of this class.
- notExists(Path, LinkOption...) - Static method in class java.nio.file.Files
-
Tests whether the file located by this path does not exist.
- NotLinkException - Exception in java.nio.file
-
Checked exception thrown when a file system operation fails because a file
is not a symbolic link.
- NotLinkException(String) - Constructor for exception java.nio.file.NotLinkException
-
Constructs an instance of this class.
- NotLinkException(String, String, String) - Constructor for exception java.nio.file.NotLinkException
-
Constructs an instance of this class.
- open(Path, Set<? extends OpenOption>, ExecutorService, FileAttribute<?>...) - Static method in class java.nio.channels.AsynchronousFileChannel
-
Opens or creates a file for reading and/or writing, returning an
asynchronous file channel to access the file.
- open(Path, OpenOption...) - Static method in class java.nio.channels.AsynchronousFileChannel
-
Opens or creates a file for reading and/or writing, returning an
asynchronous file channel to access the file.
- open(AsynchronousChannelGroup) - Static method in class java.nio.channels.AsynchronousServerSocketChannel
-
Opens an asynchronous server-socket channel.
- open() - Static method in class java.nio.channels.AsynchronousServerSocketChannel
-
Opens an asynchronous server-socket channel.
- open(AsynchronousChannelGroup) - Static method in class java.nio.channels.AsynchronousSocketChannel
-
Opens an asynchronous socket channel.
- open() - Static method in class java.nio.channels.AsynchronousSocketChannel
-
Opens an asynchronous socket channel.
- open() - Static method in class java.nio.channels.DatagramChannel
-
Opens a datagram channel.
- open(ProtocolFamily) - Static method in class java.nio.channels.DatagramChannel
-
Opens a datagram channel.
- open(Path, Set<? extends OpenOption>, FileAttribute<?>...) - Static method in class java.nio.channels.FileChannel
-
Opens or creates a file, returning a file channel to access the file.
- open(Path, OpenOption...) - Static method in class java.nio.channels.FileChannel
-
Opens or creates a file, returning a file channel to access the file.
- open() - Static method in class java.nio.channels.ServerSocketChannel
-
Opens a server-socket channel.
- open() - Static method in class java.nio.channels.SocketChannel
-
Opens a socket channel.
- open(SocketAddress) - Static method in class java.nio.channels.SocketChannel
-
Opens a socket channel and connects it to a remote address.
- openAsynchronousChannelGroup(int, ThreadFactory) - Method in class java.nio.channels.spi.AsynchronousChannelProvider
-
Constructs a new asynchronous channel group with a fixed thread pool.
- openAsynchronousChannelGroup(ExecutorService, int) - Method in class java.nio.channels.spi.AsynchronousChannelProvider
-
Constructs a new asynchronous channel group with the given thread pool.
- openAsynchronousServerSocketChannel(AsynchronousChannelGroup) - Method in class java.nio.channels.spi.AsynchronousChannelProvider
-
Opens an asynchronous server-socket channel.
- openAsynchronousSocketChannel(AsynchronousChannelGroup) - Method in class java.nio.channels.spi.AsynchronousChannelProvider
-
Opens an asynchronous socket channel.
- openDatagramChannel() - Method in class java.nio.channels.spi.SelectorProvider
-
Opens a datagram channel.
- openDatagramChannel(ProtocolFamily) - Method in class java.nio.channels.spi.SelectorProvider
-
Opens a datagram channel.
- OpenOption - Interface in java.nio.file
-
An object that configures how to open or create a file.
- openPipe() - Method in class java.nio.channels.spi.SelectorProvider
-
Opens a pipe.
- openSelector() - Method in class java.nio.channels.spi.SelectorProvider
-
Opens a selector.
- openServerSocketChannel() - Method in class java.nio.channels.spi.SelectorProvider
-
Opens a server-socket channel.
- openSocketChannel() - Method in class java.nio.channels.spi.SelectorProvider
-
Opens a socket channel.
- OVERFLOW - Static variable in class java.nio.file.StandardWatchEventKind
-
A special event to indicate that events may have been lost or
discarded.
- overlaps(long, long) - Method in class java.nio.channels.FileLock
-
Tells whether or not this lock overlaps the given lock range.
- owner() - Method in interface java.nio.file.attribute.PosixFileAttributes
-
Returns the owner of the file.
- Path - Interface in java.nio.file
-
An object that may be used to locate a file in a file system.
- PathMatcher - Interface in java.nio.file
-
An interface that is implemented by objects that perform match operations on
paths.
- Paths - Class in java.nio.file
-
This class consists exclusively of static methods that return a
Path
by converting a path string or
URI.
- pathSeparator - Static variable in class java.io.File
-
The system-dependent path-separator character, represented as a string
for convenience.
- pathSeparatorChar - Static variable in class java.io.File
-
The system-dependent path-separator character.
- permissions() - Method in class java.nio.file.attribute.AclEntry
-
Returns a copy of the permissions component.
- permissions() - Method in interface java.nio.file.attribute.PosixFileAttributes
-
Returns the permissions of the file.
- poll() - Method in interface java.nio.file.WatchService
-
Retrieves and removes the next watch key, or null if none are
present.
- poll(long, TimeUnit) - Method in interface java.nio.file.WatchService
-
Retrieves and removes the next watch key, waiting if necessary up to the
specified wait time if none are yet present.
- pollEvents() - Method in interface java.nio.file.WatchKey
-
Retrieves and removes all pending events for this watch key, returning
a List of the events that were retrieved.
- position() - Method in class java.nio.channels.FileChannel
-
Returns this channel's file position.
- position(long) - Method in class java.nio.channels.FileChannel
-
Sets this channel's file position.
- position() - Method in class java.nio.channels.FileLock
-
Returns the position within the file of the first byte of the locked
region.
- position() - Method in interface java.nio.channels.SeekableByteChannel
-
Returns this channel's position.
- position(long) - Method in interface java.nio.channels.SeekableByteChannel
-
Sets this channel's position.
- PosixFileAttributes - Interface in java.nio.file.attribute
-
File attributes associated with files on file systems used by operating systems
that implement the Portable Operating System Interface (POSIX) family of
standards.
- PosixFileAttributeView - Interface in java.nio.file.attribute
-
A file attribute view that provides a view of the file attributes commonly
associated with files on file systems used by operating systems that implement
the Portable Operating System Interface (POSIX) family of standards.
- PosixFilePermission - Enum in java.nio.file.attribute
-
Defines the bits for use with the
permissions attribute.
- PosixFilePermissions - Class in java.nio.file.attribute
-
This class consists exclusively of static methods that operate on sets of
PosixFilePermission objects.
- postVisitDirectory(T, IOException) - Method in interface java.nio.file.FileVisitor
-
Invoked for a directory after entries in the directory, and all of their
descendants, have been visited.
- postVisitDirectory(T, IOException) - Method in class java.nio.file.SimpleFileVisitor
-
Invoked for a directory after entries in the directory, and all of their
descendants, have been visited.
- preVisitDirectory(T, BasicFileAttributes) - Method in interface java.nio.file.FileVisitor
-
Invoked for a directory before entries in the directory are visited.
- preVisitDirectory(T, BasicFileAttributes) - Method in class java.nio.file.SimpleFileVisitor
-
Invoked for a directory before entries in the directory are visited.
- principal() - Method in class java.nio.file.attribute.AclEntry
-
Returns the principal component.
- PRIVATE - Static variable in class java.nio.channels.FileChannel.MapMode
-
Mode for a private (copy-on-write) mapping.
- probeContentType(Path) - Static method in class java.nio.file.Files
-
Probes the content type of a file.
- probeContentType(Path) - Method in class java.nio.file.spi.FileTypeDetector
-
Probes the given file to guess its content type.
- ProtocolFamily - Interface in java.net
-
Represents a family of communication protocols.
- provider() - Method in class java.nio.channels.AsynchronousChannelGroup
-
Returns the provider that created this channel group.
- provider() - Method in class java.nio.channels.AsynchronousServerSocketChannel
-
Returns the provider that created this channel.
- provider() - Method in class java.nio.channels.AsynchronousSocketChannel
-
Returns the provider that created this channel.
- provider() - Static method in class java.nio.channels.spi.AsynchronousChannelProvider
-
Returns the system-wide default asynchronous channel provider for this
invocation of the Java virtual machine.
- provider() - Static method in class java.nio.channels.spi.SelectorProvider
-
Returns the system-wide default selector provider for this invocation of
the Java virtual machine.
- provider() - Method in class java.nio.file.FileSystem
-
Returns the provider that created this file system.
- ProviderMismatchException - Exception in java.nio.file
-
Unchecked exception thrown when an attempt is made to invoke a method on an
object created by one file system provider with a parameter created by a
different file system provider.
- ProviderMismatchException() - Constructor for exception java.nio.file.ProviderMismatchException
-
Constructs an instance of this class.
- ProviderMismatchException(String) - Constructor for exception java.nio.file.ProviderMismatchException
-
Constructs an instance of this class.
- ProviderNotFoundException - Exception in java.nio.file
-
Runtime exception thrown when a provider of the required type cannot be found.
- ProviderNotFoundException() - Constructor for exception java.nio.file.ProviderNotFoundException
-
Constructs an instance of this class.
- ProviderNotFoundException(String) - Constructor for exception java.nio.file.ProviderNotFoundException
-
Constructs an instance of this class.
- radix() - Method in class java.util.Scanner
-
Returns this scanner's default radix.
- read(ByteBuffer, A, CompletionHandler<Integer, ? super A>) - Method in interface java.nio.channels.AsynchronousByteChannel
-
Reads a sequence of bytes from this channel into the given buffer.
- read(ByteBuffer) - Method in interface java.nio.channels.AsynchronousByteChannel
-
Reads a sequence of bytes from this channel into the given buffer.
- read(ByteBuffer, long, A, CompletionHandler<Integer, ? super A>) - Method in class java.nio.channels.AsynchronousFileChannel
-
Reads a sequence of bytes from this channel into the given buffer,
starting at the given file position.
- read(ByteBuffer, long) - Method in class java.nio.channels.AsynchronousFileChannel
-
Reads a sequence of bytes from this channel into the given buffer,
starting at the given file position.
- read(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, ? super A>) - Method in class java.nio.channels.AsynchronousSocketChannel
-
Reads a sequence of bytes from this channel into the given buffer.
- read(ByteBuffer, A, CompletionHandler<Integer, ? super A>) - Method in class java.nio.channels.AsynchronousSocketChannel
-
- read(ByteBuffer) - Method in class java.nio.channels.AsynchronousSocketChannel
-
- read(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, ? super A>) - Method in class java.nio.channels.AsynchronousSocketChannel
-
Reads a sequence of bytes from this channel into a subsequence of the
given buffers.
- read(ByteBuffer) - Method in class java.nio.channels.DatagramChannel
-
Reads a datagram from this channel.
- read(ByteBuffer[], int, int) - Method in class java.nio.channels.DatagramChannel
-
Reads a datagram from this channel.
- read(ByteBuffer[]) - Method in class java.nio.channels.DatagramChannel
-
Reads a datagram from this channel.
- read(ByteBuffer) - Method in class java.nio.channels.FileChannel
-
Reads a sequence of bytes from this channel into the given buffer.
- read(ByteBuffer[], int, int) - Method in class java.nio.channels.FileChannel
-
Reads a sequence of bytes from this channel into a subsequence of the
given buffers.
- read(ByteBuffer[]) - Method in class java.nio.channels.FileChannel
-
Reads a sequence of bytes from this channel into the given buffers.
- read(ByteBuffer, long) - Method in class java.nio.channels.FileChannel
-
Reads a sequence of bytes from this channel into the given buffer,
starting at the given file position.
- read(ByteBuffer) - Method in interface java.nio.channels.SeekableByteChannel
-
Reads a sequence of bytes from this channel into the given buffer.
- read(ByteBuffer) - Method in class java.nio.channels.SocketChannel
-
- read(ByteBuffer[], int, int) - Method in class java.nio.channels.SocketChannel
-
- read(ByteBuffer[]) - Method in class java.nio.channels.SocketChannel
-
- read(String, ByteBuffer) - Method in interface java.nio.file.attribute.UserDefinedFileAttributeView
-
Read the value of a user-defined attribute into a buffer.
- READ_ONLY - Static variable in class java.nio.channels.FileChannel.MapMode
-
Mode for a read-only mapping.
- READ_WRITE - Static variable in class java.nio.channels.FileChannel.MapMode
-
Mode for a read/write mapping.
- readAllBytes(Path) - Static method in class java.nio.file.Files
-
Read all the bytes from a file.
- readAllLines(Path, Charset) - Static method in class java.nio.file.Files
-
Read all lines from a file.
- readAttributes() - Method in interface java.nio.file.attribute.BasicFileAttributeView
-
Reads the basic file attributes as a bulk operation.
- readAttributes() - Method in interface java.nio.file.attribute.DosFileAttributeView
-
- readAttributes() - Method in interface java.nio.file.attribute.PosixFileAttributeView
-
- readAttributes(Path, Class<A>, LinkOption...) - Static method in class java.nio.file.Files
-
Reads a file's attributes as a bulk operation.
- readAttributes(Path, String, LinkOption...) - Static method in class java.nio.file.Files
-
Reads a set of file attributes as a bulk operation.
- readAttributes(Path, Class<A>, LinkOption...) - Method in class java.nio.file.spi.FileSystemProvider
-
Reads a file's attributes as a bulk operation.
- readAttributes(Path, String, LinkOption...) - Method in class java.nio.file.spi.FileSystemProvider
-
Reads a set of file attributes as a bulk operation.
- ReadOnlyFileSystemException - Exception in java.nio.file
-
Unchecked exception thrown when an attempt is made to update an object
associated with a
read-only FileSystem.
- ReadOnlyFileSystemException() - Constructor for exception java.nio.file.ReadOnlyFileSystemException
-
Constructs an instance of this class.
- ReadPendingException - Exception in java.nio.channels
-
Unchecked exception thrown when an attempt is made to read from an
asynchronous socket channel and a previous read has not completed.
- ReadPendingException() - Constructor for exception java.nio.channels.ReadPendingException
-
Constructs an instance of this class.
- readSymbolicLink(Path) - Static method in class java.nio.file.Files
-
Reads the target of a symbolic link (optional operation).
- readSymbolicLink(Path) - Method in class java.nio.file.spi.FileSystemProvider
-
Reads the target of a symbolic link.
- receive(ByteBuffer) - Method in class java.nio.channels.DatagramChannel
-
Receives a datagram via this channel.
- register(WatchService, WatchEvent.Kind<?>[], WatchEvent.Modifier...) - Method in interface java.nio.file.Path
-
Registers the file located by this path with a watch service.
- register(WatchService, WatchEvent.Kind<?>...) - Method in interface java.nio.file.Path
-
Registers the file located by this path with a watch service.
- register(WatchService, WatchEvent.Kind<?>[], WatchEvent.Modifier...) - Method in interface java.nio.file.Watchable
-
Registers an object with a watch service.
- register(WatchService, WatchEvent.Kind<?>...) - Method in interface java.nio.file.Watchable
-
Registers an object with a watch service.
- relativize(Path) - Method in interface java.nio.file.Path
-
Constructs a relative path between this path and a given path.
- release() - Method in class java.nio.channels.FileLock
-
Releases this lock.
- remove() - Method in class java.util.Scanner
-
The remove operation is not supported by this implementation of
Iterator.
- renameTo(File) - Method in class java.io.File
-
Renames the file denoted by this abstract pathname.
- reset() - Method in interface java.nio.file.WatchKey
-
Resets this watch key.
- reset() - Method in class java.util.Scanner
-
Resets this scanner.
- resolve(Path) - Method in interface java.nio.file.Path
-
Resolve the given path against this path.
- resolve(String) - Method in interface java.nio.file.Path
-
Converts a given path string to a
Path and resolves it against
this
Path in exactly the manner specified by the
resolve method.
- resolveSibling(Path) - Method in interface java.nio.file.Path
-
Resolves the given path against this path's
parent
path.
- resolveSibling(String) - Method in interface java.nio.file.Path
-
Converts a given path string to a
Path and resolves it against
this path's
parent path in exactly the manner
specified by the
resolveSibling method.
- Scanner - Class in java.util
-
A simple text scanner which can parse primitive types and strings using
regular expressions.
- Scanner(Readable) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified source.
- Scanner(InputStream) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified input stream.
- Scanner(InputStream, String) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified input stream.
- Scanner(File) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified file.
- Scanner(File, String) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified file.
- Scanner(Path) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified file.
- Scanner(Path, String) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified file.
- Scanner(String) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified string.
- Scanner(ReadableByteChannel) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified channel.
- Scanner(ReadableByteChannel, String) - Constructor for class java.util.Scanner
-
Constructs a new Scanner that produces values scanned
from the specified channel.
- SecureDirectoryStream<T> - Interface in java.nio.file
-
A DirectoryStream that defines operations on files that are located
relative to an open directory.
- SeekableByteChannel - Interface in java.nio.channels
-
A byte channel that maintains a current position and allows the
position to be changed.
- SelectorProvider - Class in java.nio.channels.spi
-
Service-provider class for selectors and selectable channels.
- SelectorProvider() - Constructor for class java.nio.channels.spi.SelectorProvider
-
Initializes a new instance of this class.
- send(ByteBuffer, SocketAddress) - Method in class java.nio.channels.DatagramChannel
-
Sends a datagram via this channel.
- separator - Static variable in class java.io.File
-
The system-dependent default name-separator character, represented as a
string for convenience.
- separatorChar - Static variable in class java.io.File
-
The system-dependent default name-separator character.
- ServerSocketChannel - Class in java.nio.channels
-
A selectable channel for stream-oriented listening sockets.
- ServerSocketChannel(SelectorProvider) - Constructor for class java.nio.channels.ServerSocketChannel
-
Initializes a new instance of this class.
- setAcl(List<AclEntry>) - Method in interface java.nio.file.attribute.AclFileAttributeView
-
Updates (replace) the access control list.
- setArchive(boolean) - Method in interface java.nio.file.attribute.DosFileAttributeView
-
Updates the value of the archive attribute.
- setAttribute(Path, String, Object, LinkOption...) - Static method in class java.nio.file.Files
-
Sets the value of a file attribute.
- setAttribute(Path, String, Object, LinkOption...) - Method in class java.nio.file.spi.FileSystemProvider
-
Sets the value of a file attribute.
- setExecutable(boolean, boolean) - Method in class java.io.File
-
Sets the owner's or everybody's execute permission for this abstract
pathname.
- setExecutable(boolean) - Method in class java.io.File
-
A convenience method to set the owner's execute permission for this abstract
pathname.
- setFlags(Set<AclEntryFlag>) - Method in class java.nio.file.attribute.AclEntry.Builder
-
Sets the flags component of this builder.
- setFlags(AclEntryFlag...) - Method in class java.nio.file.attribute.AclEntry.Builder
-
Sets the flags component of this builder.
- setGroup(GroupPrincipal) - Method in interface java.nio.file.attribute.PosixFileAttributeView
-
Updates the file group-owner.
- setHidden(boolean) - Method in interface java.nio.file.attribute.DosFileAttributeView
-
Updates the value of the hidden attribute.
- setLastModified(long) - Method in class java.io.File
-
Sets the last-modified time of the file or directory named by this
abstract pathname.
- setLastModifiedTime(Path, FileTime) - Static method in class java.nio.file.Files
-
Updates a file's last modified time attribute.
- setOption(SocketOption<T>, T) - Method in class java.nio.channels.AsynchronousServerSocketChannel
-
- setOption(SocketOption<T>, T) - Method in class java.nio.channels.AsynchronousSocketChannel
-
- setOption(SocketOption<T>, T) - Method in class java.nio.channels.DatagramChannel
-
- setOption(SocketOption<T>, T) - Method in interface java.nio.channels.NetworkChannel
-
Sets the value of a socket option.
- setOption(SocketOption<T>, T) - Method in class java.nio.channels.ServerSocketChannel
-
- setOption(SocketOption<T>, T) - Method in class java.nio.channels.SocketChannel
-
- setOwner(UserPrincipal) - Method in interface java.nio.file.attribute.FileOwnerAttributeView
-
Updates the file owner.
- setOwner(Path, UserPrincipal) - Static method in class java.nio.file.Files
-
Updates the file owner.
- setPermissions(Set<AclEntryPermission>) - Method in class java.nio.file.attribute.AclEntry.Builder
-
Sets the permissions component of this builder.
- setPermissions(AclEntryPermission...) - Method in class java.nio.file.attribute.AclEntry.Builder
-
Sets the permissions component of this builder.
- setPermissions(Set<PosixFilePermission>) - Method in interface java.nio.file.attribute.PosixFileAttributeView
-
Updates the file permissions.
- setPosixFilePermissions(Path, Set<PosixFilePermission>) - Static method in class java.nio.file.Files
-
Sets a file's POSIX permissions.
- setPrincipal(UserPrincipal) - Method in class java.nio.file.attribute.AclEntry.Builder
-
Sets the principal component of this builder.
- setReadable(boolean, boolean) - Method in class java.io.File
-
Sets the owner's or everybody's read permission for this abstract
pathname.
- setReadable(boolean) - Method in class java.io.File
-
A convenience method to set the owner's read permission for this abstract
pathname.
- setReadOnly() - Method in class java.io.File
-
Marks the file or directory named by this abstract pathname so that
only read operations are allowed.
- setReadOnly(boolean) - Method in interface java.nio.file.attribute.DosFileAttributeView
-
Updates the value of the read-only attribute.
- setSystem(boolean) - Method in interface java.nio.file.attribute.DosFileAttributeView
-
Updates the value of the system attribute.
- setTimes(FileTime, FileTime, FileTime) - Method in interface java.nio.file.attribute.BasicFileAttributeView
-
Updates any or all of the file's last modified time, last access time,
and create time attributes.
- setType(AclEntryType) - Method in class java.nio.file.attribute.AclEntry.Builder
-
Sets the type component of this builder.
- setWritable(boolean, boolean) - Method in class java.io.File
-
Sets the owner's or everybody's write permission for this abstract
pathname.
- setWritable(boolean) - Method in class java.io.File
-
A convenience method to set the owner's write permission for this abstract
pathname.
- shutdown() - Method in class java.nio.channels.AsynchronousChannelGroup
-
Initiates an orderly shutdown of the group.
- ShutdownChannelGroupException - Exception in java.nio.channels
-
Unchecked exception thrown when an attempt is made to construct a channel in
a group that is shutdown or the completion handler for an I/O operation
cannot be invoked because the channel group has terminated.
- ShutdownChannelGroupException() - Constructor for exception java.nio.channels.ShutdownChannelGroupException
-
Constructs an instance of this class.
- shutdownInput() - Method in class java.nio.channels.AsynchronousSocketChannel
-
Shutdown the connection for reading without closing the channel.
- shutdownInput() - Method in class java.nio.channels.SocketChannel
-
Shutdown the connection for reading without closing the channel.
- shutdownNow() - Method in class java.nio.channels.AsynchronousChannelGroup
-
Shuts down the group and closes all open channels in the group.
- shutdownOutput() - Method in class java.nio.channels.AsynchronousSocketChannel
-
Shutdown the connection for writing without closing the channel.
- shutdownOutput() - Method in class java.nio.channels.SocketChannel
-
Shutdown the connection for writing without closing the channel.
- SimpleFileVisitor<T> - Class in java.nio.file
-
A simple visitor of files with default behavior to visit all files and to
re-throw I/O errors.
- SimpleFileVisitor() - Constructor for class java.nio.file.SimpleFileVisitor
-
Initializes a new instance of this class.
- size() - Method in class java.nio.channels.AsynchronousFileChannel
-
Returns the current size of this channel's file.
- size() - Method in class java.nio.channels.FileChannel
-
Returns the current size of this channel's file.
- size() - Method in class java.nio.channels.FileLock
-
Returns the size of the locked region in bytes.
- size() - Method in interface java.nio.channels.SeekableByteChannel
-
Returns the current size of entity to which this channel is connected.
- size() - Method in interface java.nio.file.attribute.BasicFileAttributes
-
Returns the size of the file (in bytes).
- size(String) - Method in interface java.nio.file.attribute.UserDefinedFileAttributeView
-
Returns the size of the value of a user-defined attribute.
- size(Path) - Static method in class java.nio.file.Files
-
Returns the size of a file (in bytes).
- skip(Pattern) - Method in class java.util.Scanner
-
Skips input that matches the specified pattern, ignoring delimiters.
- skip(String) - Method in class java.util.Scanner
-
Skips input that matches a pattern constructed from the specified
string.
- SO_BROADCAST - Static variable in class java.net.StandardSocketOption
-
Allow transmission of broadcast datagrams.
- SO_KEEPALIVE - Static variable in class java.net.StandardSocketOption
-
Keep connection alive.
- SO_LINGER - Static variable in class java.net.StandardSocketOption
-
Linger on close if data is present.
- SO_RCVBUF - Static variable in class java.net.StandardSocketOption
-
The size of the socket receive buffer.
- SO_REUSEADDR - Static variable in class java.net.StandardSocketOption
-
Re-use address.
- SO_SNDBUF - Static variable in class java.net.StandardSocketOption
-
The size of the socket send buffer.
- socket() - Method in class java.nio.channels.DatagramChannel
-
Retrieves a datagram socket associated with this channel.
- socket() - Method in class java.nio.channels.ServerSocketChannel
-
Retrieves a server socket associated with this channel.
- socket() - Method in class java.nio.channels.SocketChannel
-
Retrieves a socket associated with this channel.
- SocketChannel - Class in java.nio.channels
-
A selectable channel for stream-oriented connecting sockets.
- SocketChannel(SelectorProvider) - Constructor for class java.nio.channels.SocketChannel
-
Initializes a new instance of this class.
- SocketOption<T> - Interface in java.net
-
A socket option associated with a socket.
- sourceAddress() - Method in class java.nio.channels.MembershipKey
-
Returns the source address if this membership key is source-specific,
or null if this membership is not source-specific.
- StandardCopyOption - Enum in java.nio.file
-
Defines the standard copy options.
- StandardOpenOption - Enum in java.nio.file
-
Defines the standard open options.
- StandardProtocolFamily - Enum in java.net
-
Defines the standard families of communication protocols.
- StandardSocketOption - Class in java.net
-
Defines the standard socket options.
- StandardWatchEventKind - Class in java.nio.file
-
Defines the standard event kinds.
- startsWith(Path) - Method in interface java.nio.file.Path
-
Tests if this path starts with the given path.
- startsWith(String) - Method in interface java.nio.file.Path
-
Tests if this path starts with a
Path, constructed by converting
the given path string, in exactly the manner specified by the
startsWith(Path) method.
- subpath(int, int) - Method in interface java.nio.file.Path
-
Returns a relative Path that is a subsequence of the name
elements of this path.
- supportedFileAttributeViews() - Method in class java.nio.file.FileSystem
-
Returns the set of the
names of the file
attribute views supported by this
FileSystem.
- supportedOptions() - Method in interface java.nio.channels.NetworkChannel
-
Returns a set of the socket options supported by this channel.
- supportsFileAttributeView(Class<? extends FileAttributeView>) - Method in class java.nio.file.FileStore
-
Tells whether or not this file store supports the file attributes
identified by the given file attribute view.
- supportsFileAttributeView(String) - Method in class java.nio.file.FileStore
-
Tells whether or not this file store supports the file attributes
identified by the given file attribute view.
- take() - Method in interface java.nio.file.WatchService
-
Retrieves and removes next watch key, waiting if none are yet present.
- TCP_NODELAY - Static variable in class java.net.StandardSocketOption
-
Disable the Nagle algorithm.
- to(TimeUnit) - Method in class java.nio.file.attribute.FileTime
-
Returns the value at the given unit of granularity.
- toAbsolutePath() - Method in interface java.nio.file.Path
-
Returns a Path object representing the absolute path of this
path.
- toFile() - Method in interface java.nio.file.Path
-
Returns a
File object representing this path.
- toMillis() - Method in class java.nio.file.attribute.FileTime
-
Returns the value in milliseconds.
- toPath() - Method in class java.io.File
-
- toRealPath(boolean) - Method in interface java.nio.file.Path
-
Returns the real path of an existing file.
- toString() - Method in class java.io.File
-
Returns the pathname string of this abstract pathname.
- toString() - Method in class java.nio.channels.FileChannel.MapMode
-
Returns a string describing this file-mapping mode.
- toString() - Method in class java.nio.channels.FileLock
-
Returns a string describing the range, type, and validity of this lock.
- toString() - Method in class java.nio.file.attribute.AclEntry
-
Returns the string representation of this ACL entry.
- toString() - Method in class java.nio.file.attribute.FileTime
-
Returns the string representation of this FileTime.
- toString(Set<PosixFilePermission>) - Static method in class java.nio.file.attribute.PosixFilePermissions
-
Returns the String representation of a set of permissions.
- toString() - Method in interface java.nio.file.Path
-
Returns the string representation of this path.
- toString() - Method in class java.util.Scanner
-
Returns the string representation of this Scanner.
- toURI() - Method in class java.io.File
-
Constructs a file: URI that represents this abstract pathname.
- toUri() - Method in interface java.nio.file.Path
-
Returns a URI to represent this path.
- toURL() - Method in class java.io.File
-
Deprecated.
This method does not automatically escape characters that
are illegal in URLs. It is recommended that new code convert an
abstract pathname into a URL by first converting it into a URI, via the
toURI method, and then converting the URI into a URL
via the URI.toURL method.
- transferFrom(ReadableByteChannel, long, long) - Method in class java.nio.channels.FileChannel
-
Transfers bytes into this channel's file from the given readable byte
channel.
- transferTo(long, long, WritableByteChannel) - Method in class java.nio.channels.FileChannel
-
Transfers bytes from this channel's file to the given writable byte
channel.
- truncate(long) - Method in class java.nio.channels.AsynchronousFileChannel
-
Truncates this channel's file to the given size.
- truncate(long) - Method in class java.nio.channels.FileChannel
-
Truncates this channel's file to the given size.
- truncate(long) - Method in interface java.nio.channels.SeekableByteChannel
-
Truncates the entity, to which this channel is connected, to the given
size.
- tryLock(long, long, boolean) - Method in class java.nio.channels.AsynchronousFileChannel
-
Attempts to acquire a lock on the given region of this channel's file.
- tryLock() - Method in class java.nio.channels.AsynchronousFileChannel
-
Attempts to acquire an exclusive lock on this channel's file.
- tryLock(long, long, boolean) - Method in class java.nio.channels.FileChannel
-
Attempts to acquire a lock on the given region of this channel's file.
- tryLock() - Method in class java.nio.channels.FileChannel
-
Attempts to acquire an exclusive lock on this channel's file.
- type() - Method in interface java.net.SocketOption
-
Returns the type of the socket option value.
- type() - Method in class java.nio.file.attribute.AclEntry
-
Returns the ACL entry type.
- type() - Method in class java.nio.file.FileStore
-
Returns the type of this file store.
- type() - Method in interface java.nio.file.WatchEvent.Kind
-
Returns the type of the
context value.
- validOps() - Method in class java.nio.channels.DatagramChannel
-
Returns an operation set identifying this channel's supported
operations.
- validOps() - Method in class java.nio.channels.ServerSocketChannel
-
Returns an operation set identifying this channel's supported
operations.
- validOps() - Method in class java.nio.channels.SocketChannel
-
Returns an operation set identifying this channel's supported
operations.
- value() - Method in interface java.nio.file.attribute.FileAttribute
-
Returns the attribute value.
- valueOf(String) - Static method in enum java.net.StandardProtocolFamily
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.AccessMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.attribute.AclEntryFlag
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.attribute.AclEntryPermission
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.attribute.AclEntryType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.attribute.PosixFilePermission
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.FileVisitOption
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.FileVisitResult
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.LinkOption
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.StandardCopyOption
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum java.nio.file.StandardOpenOption
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum java.net.StandardProtocolFamily
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.AccessMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.attribute.AclEntryFlag
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.attribute.AclEntryPermission
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.attribute.AclEntryType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.attribute.PosixFilePermission
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.FileVisitOption
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.FileVisitResult
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.LinkOption
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.StandardCopyOption
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum java.nio.file.StandardOpenOption
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- visitFile(T, BasicFileAttributes) - Method in interface java.nio.file.FileVisitor
-
Invoked for a file in a directory.
- visitFile(T, BasicFileAttributes) - Method in class java.nio.file.SimpleFileVisitor
-
Invoked for a file in a directory.
- visitFileFailed(T, IOException) - Method in interface java.nio.file.FileVisitor
-
Invoked for a file that could not be visited.
- visitFileFailed(T, IOException) - Method in class java.nio.file.SimpleFileVisitor
-
Invoked for a file that could not be visited.
- walkFileTree(Path, Set<FileVisitOption>, int, FileVisitor<? super Path>) - Static method in class java.nio.file.Files
-
Walks a file tree.
- walkFileTree(Path, FileVisitor<? super Path>) - Static method in class java.nio.file.Files
-
Walks a file tree.
- Watchable - Interface in java.nio.file
-
An object that may be registered with a watch service so that it can be
watched for changes and events.
- WatchEvent<T> - Interface in java.nio.file
-
An event or a repeated event for an object that is registered with a
WatchService.
- WatchEvent.Kind<T> - Interface in java.nio.file
-
An event kind, for the purposes of identification.
- WatchEvent.Modifier - Interface in java.nio.file
-
- WatchKey - Interface in java.nio.file
-
- WatchService - Interface in java.nio.file
-
A watch service that watches registered objects for changes and
events.
- withCachedThreadPool(ExecutorService, int) - Static method in class java.nio.channels.AsynchronousChannelGroup
-
Creates an asynchronous channel group with a given thread pool that
creates new threads as needed.
- withFixedThreadPool(int, ThreadFactory) - Static method in class java.nio.channels.AsynchronousChannelGroup
-
Creates an asynchronous channel group with a fixed thread pool.
- withThreadPool(ExecutorService) - Static method in class java.nio.channels.AsynchronousChannelGroup
-
Creates an asynchronous channel group with a given thread pool.
- write(ByteBuffer, A, CompletionHandler<Integer, ? super A>) - Method in interface java.nio.channels.AsynchronousByteChannel
-
Writes a sequence of bytes to this channel from the given buffer.
- write(ByteBuffer) - Method in interface java.nio.channels.AsynchronousByteChannel
-
Writes a sequence of bytes to this channel from the given buffer.
- write(ByteBuffer, long, A, CompletionHandler<Integer, ? super A>) - Method in class java.nio.channels.AsynchronousFileChannel
-
Writes a sequence of bytes to this channel from the given buffer, starting
at the given file position.
- write(ByteBuffer, long) - Method in class java.nio.channels.AsynchronousFileChannel
-
Writes a sequence of bytes to this channel from the given buffer, starting
at the given file position.
- write(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, ? super A>) - Method in class java.nio.channels.AsynchronousSocketChannel
-
Writes a sequence of bytes to this channel from the given buffer.
- write(ByteBuffer, A, CompletionHandler<Integer, ? super A>) - Method in class java.nio.channels.AsynchronousSocketChannel
-
- write(ByteBuffer) - Method in class java.nio.channels.AsynchronousSocketChannel
-
- write(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, ? super A>) - Method in class java.nio.channels.AsynchronousSocketChannel
-
Writes a sequence of bytes to this channel from a subsequence of the given
buffers.
- write(ByteBuffer) - Method in class java.nio.channels.DatagramChannel
-
Writes a datagram to this channel.
- write(ByteBuffer[], int, int) - Method in class java.nio.channels.DatagramChannel
-
Writes a datagram to this channel.
- write(ByteBuffer[]) - Method in class java.nio.channels.DatagramChannel
-
Writes a datagram to this channel.
- write(ByteBuffer) - Method in class java.nio.channels.FileChannel
-
Writes a sequence of bytes to this channel from the given buffer.
- write(ByteBuffer[], int, int) - Method in class java.nio.channels.FileChannel
-
Writes a sequence of bytes to this channel from a subsequence of the
given buffers.
- write(ByteBuffer[]) - Method in class java.nio.channels.FileChannel
-
Writes a sequence of bytes to this channel from the given buffers.
- write(ByteBuffer, long) - Method in class java.nio.channels.FileChannel
-
Writes a sequence of bytes to this channel from the given buffer,
starting at the given file position.
- write(ByteBuffer) - Method in interface java.nio.channels.SeekableByteChannel
-
Writes a sequence of bytes to this channel from the given buffer.
- write(ByteBuffer) - Method in class java.nio.channels.SocketChannel
-
- write(ByteBuffer[], int, int) - Method in class java.nio.channels.SocketChannel
-
- write(ByteBuffer[]) - Method in class java.nio.channels.SocketChannel
-
- write(String, ByteBuffer) - Method in interface java.nio.file.attribute.UserDefinedFileAttributeView
-
Writes the value of a user-defined attribute from a buffer.
- write(Path, byte[], OpenOption...) - Static method in class java.nio.file.Files
-
Writes bytes to a file.
- write(Path, Iterable<? extends CharSequence>, Charset, OpenOption...) - Static method in class java.nio.file.Files
-
Write lines of text to a file.
- WritePendingException - Exception in java.nio.channels
-
Unchecked exception thrown when an attempt is made to write to an
asynchronous socket channel and a previous write has not completed.
- WritePendingException() - Constructor for exception java.nio.channels.WritePendingException
-
Constructs an instance of this class.