public class AutoDigestFileSystem extends BaseFileSystem
| Constructor and Description |
|---|
AutoDigestFileSystem(FileSystem backing)
Creates an instance that will add SHA1 and MD5 digests to the backing file system for any entries that are
missing digests.
|
AutoDigestFileSystem(FileSystem backing,
DigestFileEntryFactory[] digestFactories)
Creates an instance that will use the supplied
DigestFileEntryFactorys to add any missing digests to the
backing file system. |
| Modifier and Type | Method and Description |
|---|---|
Entry |
get(String path) |
long |
getLastModified(DirectoryEntry entry) |
Entry[] |
listEntries(DirectoryEntry directory) |
FileEntry |
put(DirectoryEntry parent,
String name,
InputStream content) |
public AutoDigestFileSystem(FileSystem backing)
backing - the backing file system.public AutoDigestFileSystem(FileSystem backing, DigestFileEntryFactory[] digestFactories)
DigestFileEntryFactorys to add any missing digests to the
backing file system.backing - the backing file system.digestFactories - the digest factories.public Entry[] listEntries(DirectoryEntry directory)
public long getLastModified(DirectoryEntry entry) throws IOException
IOExceptionpublic Entry get(String path)
get in interface FileSystemget in class BaseFileSystempublic FileEntry put(DirectoryEntry parent, String name, InputStream content) throws IOException
put in interface FileSystemput in class BaseFileSystemIOExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.