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
FileAttributeViewimplementations.Abstract implementation ofWatchService.A basic implementation ofWatchEvent.Implementation ofWatchKeyfor 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 forConfigurationobjects.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 aSecureDirectoryStreamthat exists only to implementDirectoryStreamand NOT implementSecureDirectoryStream.A thin wrapper around aFileChannelthat exists only to implementSeekableByteChannelbut 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.URLStreamHandlerimplementation 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 aroundBuffermethods that are covariantly overridden in Java 9+.Static factory methods for creating new Jimfs file systems.AsynchronousFileChannelimplementation that delegates to aJimfsFileChannel.Runnable callback that wraps aCompletionHandlerand an attachment.AFileChannelimplementation that reads and writes to aRegularFileobject.A file lock that does nothing, since only one JVM process has access to this file system.FileStoreimplementation which provides methods for file creation, lookup and attribute handling.FileSystemimplementation for Jimfs.FileSystemProviderimplementation for Jimfs.Initializes and configures new file system instances.InputStreamfor reading from a file'sRegularFile.OutputStreamfor writing to aRegularFile.Jimfs implementation ofPath.Secure directory stream implementation that uses aFileSystemViewwith 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.PathMatcherfactory for any file system.PathMatcherthat matches thetoString()form of aPathagainst a regexPattern.Normalizations that can be applied to names in paths.Service for creatingJimfsPathinstances and handling other path-related operations.An object defining a specific type of path.Simple result of parsing a path.URLConnectionimplementation.Implementation ofWatchServicethat 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 ofAttributeProviderimplementations for the standard set of file attribute views Jimfs supports.A symbolic link file, containing a path.Implementation of ofFileTimeSourcethat gets the current time from the system.FileSystemProviderimplementation 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.UserPrincipalLookupServiceimplementation.GroupPrincipalimplementation.UserPrincipalimplementation.Base class forUserPrincipalandGroupPrincipalimplementations.Miscellaneous static utility methods.Configuration for theWatchServiceimplementation used by a file system.Implementation forWatchServiceConfiguration.polling(long, TimeUnit).Windows-style path type.