Package se.datadosen.jalbum
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
-
Constructor Summary
ConstructorDescriptionAlbumManifest
(info.cqs.remotefs.RemoteFS remoteFS, String remoteDir) Get existing manifest from remote serverAlbumManifest
(NavigableSet<info.cqs.remotefs.RemoteFile> content) Create based on local album files -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
getBytes()
Get the raw bytes, compressed using standard zip.NavigableSet<info.cqs.remotefs.RemoteFile>
int
hashCode()
void
putFile
(info.cqs.remotefs.RemoteFile rf) void
removeFile
(info.cqs.remotefs.RemoteFile rf) toString()
void
-
Field Details
-
MANIFEST_NAME
- See Also:
-
-
Constructor Details
-
AlbumManifest
public AlbumManifest() -
AlbumManifest
public AlbumManifest(info.cqs.remotefs.RemoteFS remoteFS, String remoteDir) throws IOException, info.cqs.remotefs.RemoteFSException Get existing manifest from remote server- Throws:
IOException
info.cqs.remotefs.RemoteFSException
-
Method Details
-
getContent
-
putFile
public void putFile(info.cqs.remotefs.RemoteFile rf) -
removeFile
public void removeFile(info.cqs.remotefs.RemoteFile rf) -
hashCode
public int 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
public void write(info.cqs.remotefs.RemoteFS remoteFS, String remoteDir) throws IOException, info.cqs.remotefs.RemoteFSException - Throws:
IOException
info.cqs.remotefs.RemoteFSException
-