Class AlbumManifest
java.lang.Object
se.datadosen.jalbum.AlbumManifest
Representation of the set of files in an album along with their size and modification date
A manifest file is uploaded along with the album in order to facilitate
publishing album udpdates. The manifest is stored as a zip file containing either
a plain text representation or a DES encrypted text representation in order to
prevent web users from figuring out what files an album consists of
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAlbumManifest(NavigableSet<RemoteFile> content) Create based on local album filesAlbumManifest(RemoteFS remoteFS, String remoteDir) Get existing manifest from remote server -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getBytes()Get the raw bytes, compressed using standard zip.inthashCode()voidputFile(RemoteFile rf) voidremoveFile(RemoteFile rf) toString()void
-
Field Details
-
MANIFEST_NAME
- See Also:
-
-
Constructor Details
-
AlbumManifest
public AlbumManifest() -
AlbumManifest
Get existing manifest from remote server- Throws:
IOExceptionRemoteFSException
-
Method Details
-
getContent
-
putFile
-
removeFile
-
hashCode
-
equals
-
toString
-
getBytes
Get the raw bytes, compressed using standard zip. The content is either plain UTF-8 encoded text or DES encrypted UTF-8 encoded text- Throws:
IOException
-
write
- Throws:
IOExceptionRemoteFSException
-