Package com.google.common.jimfs
@CheckReturnValue
@ParametersAreNonnullByDefault
package com.google.common.jimfs
Package containing the Jimfs file system API and implementation. Most users should only need to
use the
Jimfs
and Configuration
classes.-
ClassDescriptionAbstract base class for
FileAttributeView
implementations.Abstract implementation ofWatchService
.A basic implementation ofWatchEvent
.Implementation ofWatchKey
for anAbstractWatchService
.Attribute provider that provides theAclFileAttributeView
("acl").Implementation ofAclFileAttributeView
.Options for how to handle copying of file attributes when copying a file.Abstract provider for handling a specific file attribute view.Service providing all attribute related operations for a file store.Simple implementation ofFileAttribute
.Attribute provider that provides attributes common to all file systems, theBasicFileAttributeView
("basic" or no view prefix), and allows the reading ofBasicFileAttributes
.Implementation ofBasicFileAttributes
.Implementation ofBasicFileAttributeView
.Immutable configuration for an in-memory file system.Mutable builder forConfiguration
objects.A table of directory entries.Entry in a directory, containing references to the directory itself, the file the entry links to and the name of the entry.Attribute provider that provides theDosFileAttributeView
("dos") and allows the reading ofDosFileAttributes
.Implementation ofDosFileAttributes
.Implementation ofDosFileAttributeView
.A thin wrapper around aSecureDirectoryStream
that exists only to implementDirectoryStream
and NOT implementSecureDirectoryStream
.A thin wrapper around aFileChannel
that exists only to implementSeekableByteChannel
but NOT extendFileChannel
.Optional file system features that may be supported or unsupported by a Jimfs file system instance.A file object, containing both the file's metadata and content.Factory for creating new files and copying files.Callback for looking up a file.Object that manages the open/closed state of a file system, ensuring that all open resources are closed when the file system is closed and that file system methods throw an exception when the file system has been closed.View of a file system with a specific working directory.Mode for deleting.A source of the current time as aFileTime
, to enable fake time sources for testing.The tree of directories and files for the file system.Translates globs to regex patterns.Converter state.Indicates that the annotated element should be used only while holding the specified lock.URLStreamHandler
implementation for jimfs.A resizable pseudo-disk acting as a shared space for storing file data.Simple replacement for the real CharMatcher until it's out of @Beta.Wrappers aroundBuffer
methods that are covariantly overridden in Java 9+.Static factory methods for creating new Jimfs file systems.AsynchronousFileChannel
implementation that delegates to aJimfsFileChannel
.Runnable callback that wraps aCompletionHandler
and an attachment.AFileChannel
implementation that reads and writes to aRegularFile
object.A file lock that does nothing, since only one JVM process has access to this file system.FileStore
implementation which provides methods for file creation, lookup and attribute handling.FileSystem
implementation for Jimfs.FileSystemProvider
implementation for Jimfs.Initializes and configures new file system instances.InputStream
for reading from a file'sRegularFile
.OutputStream
for writing to aRegularFile
.Jimfs implementation ofPath
.Secure directory stream implementation that uses aFileSystemView
with the stream's directory as its working directory.Immutable representation of a file name.Utility methods for normalizing user-provided options arrays and sets to canonical immutable sets of options.Attribute provider that provides theFileOwnerAttributeView
("owner").Implementation ofFileOwnerAttributeView
.PathMatcher
factory for any file system.PathMatcher
that matches thetoString()
form of aPath
against a regexPattern
.Normalizations that can be applied to names in paths.Service for creatingJimfsPath
instances and handling other path-related operations.An object defining a specific type of path.Simple result of parsing a path.URLConnection
implementation.Implementation ofWatchService
that polls for changes to directories at registered paths.Attribute provider that provides thePosixFileAttributeView
("posix") and allows reading ofPosixFileAttributes
.Implementation ofPosixFileAttributes
.Implementation ofPosixFileAttributeView
.A mutable, resizable store for bytes.Static registry ofAttributeProvider
implementations for the standard set of file attribute views Jimfs supports.A symbolic link file, containing a path.Implementation of ofFileTimeSource
that gets the current time from the system.FileSystemProvider
implementation for Jimfs that is loaded by the system as a service.Attribute provider that provides the "unix" attribute view.Dummy view interface for the "unix" view, which doesn't have a public view interface.Unix-style path type.Attribute provider that provides theUserDefinedFileAttributeView
("user").Implementation ofUserDefinedFileAttributeView
.UserPrincipalLookupService
implementation.GroupPrincipal
implementation.UserPrincipal
implementation.Base class forUserPrincipal
andGroupPrincipal
implementations.Miscellaneous static utility methods.Configuration for theWatchService
implementation used by a file system.Implementation forWatchServiceConfiguration.polling(long, java.util.concurrent.TimeUnit)
.Windows-style path type.