org.apache.commons.compress.changes

Class ChangeSet



  • public final class ChangeSetextends Object
    ChangeSet collects and performs changes to an archive. Putting delete changes in this ChangeSet from multiple threads can cause conflicts.
    This class is not thread-safe
    • Constructor Detail

    • Method Detail

      • delete

        public void delete(String filename)
        Deletes the file with the filename from the archive.
        Parameters:
        filename - the filename of the file to delete
      • deleteDir

        public void deleteDir(String dirName)
        Deletes the directory tree from the archive.
        Parameters:
        dirName - the name of the directory tree to delete
      • add

        public void add(ArchiveEntry pEntry,       InputStream pInput)
        Adds a new archive entry to the archive.
        Parameters:
        pEntry - the entry to add
        pInput - the datastream to add
      • add

        public void add(ArchiveEntry pEntry,       InputStream pInput,       boolean replace)
        Adds a new archive entry to the archive. If replace is set to true, this change will replace all other additions done in this ChangeSet and all existing entries in the original stream.
        Parameters:
        pEntry - the entry to add
        pInput - the datastream to add
        replace - indicates the this change should replace existing entries

Copyright © 2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14