Class AutoDigestFileSystem
java.lang.Object
org.codehaus.mojo.mrm.api.BaseFileSystem
org.codehaus.mojo.mrm.impl.digest.AutoDigestFileSystem
- All Implemented Interfaces:
FileSystem
A delegating file system that will automatically provide digests of any files that are missing digests from
the backing file system.
- Since:
- 1.0
-
Constructor Summary
ConstructorDescriptionAutoDigestFileSystem
(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 suppliedDigestFileEntryFactory
s to add any missing digests to the backing file system. -
Method Summary
Modifier and TypeMethodDescriptionlong
getLastModified
(DirectoryEntry entry) Entry[]
listEntries
(DirectoryEntry directory) put
(DirectoryEntry parent, String name, InputStream content) Methods inherited from class org.codehaus.mojo.mrm.api.BaseFileSystem
get, getRoot
-
Constructor Details
-
AutoDigestFileSystem
Creates an instance that will add SHA1 and MD5 digests to the backing file system for any entries that are missing digests.- Parameters:
backing
- the backing file system.- Since:
- 1.0
-
AutoDigestFileSystem
Creates an instance that will use the suppliedDigestFileEntryFactory
s to add any missing digests to the backing file system.- Parameters:
backing
- the backing file system.digestFactories
- the digest factories.- Since:
- 1.0
-
-
Method Details
-
listEntries
-
getLastModified
- Throws:
IOException
-
get
- Specified by:
get
in interfaceFileSystem
- Overrides:
get
in classBaseFileSystem
-
put
- Throws:
IOException
-