Class ZipServiceImpl

  • All Implemented Interfaces:
    ZipService

    @Service
    public class ZipServiceImpl
    extends java.lang.Object
    implements ZipService
    Zips content from File Storage.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void zipDirectory​(Account account, long dirId, java.io.OutputStream outputStream)
      Zips a directory and all its contents.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • zipDirectory

        public void zipDirectory​(Account account,
                                 long dirId,
                                 java.io.OutputStream outputStream)
                          throws MopsException
        Zips a directory and all its contents.
        Specified by:
        zipDirectory in interface ZipService
        Parameters:
        account - user credentials
        dirId - id of the directory to be zipped
        outputStream - output stream to write the zipped contents to
        Throws:
        MopsException