Class AlbumManifest

java.lang.Object
se.datadosen.jalbum.AlbumManifest

public class AlbumManifest extends Object
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 Details

  • Constructor Details

    • AlbumManifest

      public AlbumManifest(NavigableSet<info.cqs.remotefs.RemoteFile> content)
      Create based on local album files
    • 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

      public NavigableSet<info.cqs.remotefs.RemoteFile> getContent()
    • putFile

      public void putFile(info.cqs.remotefs.RemoteFile rf)
    • removeFile

      public void removeFile(info.cqs.remotefs.RemoteFile rf)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBytes

      public byte[] getBytes() throws IOException
      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