Package de.uplanet.io

Klasse TarHelper

java.lang.Object
de.uplanet.io.TarHelper

@Scriptable public final class TarHelper extends Object
IOHelper class utility
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static void
    tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, File p_dirSrc, boolean p_bTarMarkedDirs, Set<File> p_filesToExclude)
    Veraltet.
    static void
    tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, Path p_dirSrc, boolean p_bTarMarkedDirs, DirectoryStream.Filter<Path> p_filter)
    Copy a directory recursively to a tar output stream.
    p_dest is the parent directory of the new directory
    static void
    tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, Path p_dirSrc, boolean p_bTarMarkedDirs, DirectoryStream.Filter<Path> p_filter, de.uplanet.util.Progress p_progress)
    Copy a directory recursively to a tar output stream.
    p_dest is the parent directory of the new directory
    static void
    tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, Path p_dirSrc, boolean p_bTarMarkedDirs, Set<Path> p_filesToExclude)
    Copy a directory recursively to a tar output stream.
    p_dest is the parent directory of the new directory
    static void
    untarDir(File p_fileArchive, String p_strFileNameEncoding, String p_strRootDir, File p_dirDst)
    Veraltet.
    static boolean
    untarDir(File p_fileArchive, String p_strFileNameEncoding, String p_strRootDir, File p_dirDst, de.uplanet.util.Progress p_progress)
    Veraltet.
    static boolean
    untarDirectories(Path p_fileArchive, String p_strFileNameEncoding, Path p_dirDst, de.uplanet.util.Progress p_progress, boolean p_bExclusiveMode, String... p_rootDirs)
    Copy a directory recursively from a tar, tgz or tar.gz file.
    p_dirDst is the parent directory of the new directory.
    static boolean
    untarDirectories(Path p_fileArchive, String p_strFileNameEncoding, Path p_dirDst, de.uplanet.util.Progress p_progress, String... p_rootDirs)
    Copy a directory recursively from a tar, tgz or tar.gz file.
    p_dirDst is the parent directory of the new directory.

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • TarHelper

      public TarHelper()
  • Methodendetails

    • tarDir

      public static void tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, Path p_dirSrc, boolean p_bTarMarkedDirs, Set<Path> p_filesToExclude) throws IOException
      Copy a directory recursively to a tar output stream.
      p_dest is the parent directory of the new directory
      Parameter:
      p_tar - tar output stream
      p_strRootDir - root dir for the added files, or null, if top level
      p_dirSrc - directory to copy
      p_bTarMarkedDirs - zips directories, event if they are marked with a ".noexport" file. If this parameter is set to false, the destination directory entry is created with a .noxexport entry as the only content.
      p_filesToExclude - files which are not exported parameter is set to false, the directory is exported as it would be empty.
      Löst aus:
      IOException - If an I/O-error occurs.
    • tarDir

      public static void tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, Path p_dirSrc, boolean p_bTarMarkedDirs, DirectoryStream.Filter<Path> p_filter) throws IOException
      Copy a directory recursively to a tar output stream.
      p_dest is the parent directory of the new directory
      Parameter:
      p_tar - tar output stream
      p_strRootDir - root dir for the added files, or null, if top level
      p_dirSrc - directory to copy
      p_bTarMarkedDirs - zips directories, event if they are marked with a ".noexport" file. If this parameter is set to false, the destination directory entry is created with a .noxexport entry as the only content.
      p_filter - files which are not exported parameter is set to false, the directory is exported as it would be empty.
      Löst aus:
      IOException - If an I/O-error occurs.
    • tarDir

      public static void tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, Path p_dirSrc, boolean p_bTarMarkedDirs, DirectoryStream.Filter<Path> p_filter, de.uplanet.util.Progress p_progress) throws IOException
      Copy a directory recursively to a tar output stream.
      p_dest is the parent directory of the new directory
      Parameter:
      p_tar - tar output stream
      p_strRootDir - root dir for the added files, or null, if top level
      p_dirSrc - directory to copy
      p_bTarMarkedDirs - zips directories, event if they are marked with a ".noexport" file. If this parameter is set to false, the destination directory entry is created with a .noxexport entry as the only content.
      p_filter - files which are not exported parameter is set to false, the directory is exported as it would be empty.
      p_progress - The progress (could be null).
      Löst aus:
      IOException - If an I/O-error occurs.
      Seit:
      11.9
    • untarDirectories

      public static boolean untarDirectories(Path p_fileArchive, String p_strFileNameEncoding, Path p_dirDst, de.uplanet.util.Progress p_progress, String... p_rootDirs) throws IOException
      Copy a directory recursively from a tar, tgz or tar.gz file.
      p_dirDst is the parent directory of the new directory. If p_progess is null the extraction will be faster, because we not need to calculate the numbers of files, for returning a progress.
      Parameter:
      p_fileArchive - The file to be untared.
      p_strFileNameEncoding - encoding used for file names in tar archive
      p_dirDst - The destination directory.
      p_progress - The progress callback to be used. May be null.
      p_rootDirs - The root dirs of the files in the archive, or null, if top level.
      Gibt zurück:
      true, if this method created any files or directories, false otherwise
      Löst aus:
      IOException - If an I/O-error occurs.
    • untarDirectories

      public static boolean untarDirectories(Path p_fileArchive, String p_strFileNameEncoding, Path p_dirDst, de.uplanet.util.Progress p_progress, boolean p_bExclusiveMode, String... p_rootDirs) throws IOException
      Copy a directory recursively from a tar, tgz or tar.gz file.
      p_dirDst is the parent directory of the new directory. If p_progess is null the extraction will be faster, because we not need to calculate the numbers of files, for returning a progress.
      Parameter:
      p_fileArchive - The file to be untared.
      p_strFileNameEncoding - encoding used for file names in tar archive
      p_dirDst - The destination directory.
      p_progress - The progress callback to be used. May be null.
      p_bExclusiveMode - if true All files/directories not in p_rootDirs will untared otherwise only files/directories set in p_rootDirs will be untared.
      p_rootDirs - The root dirs of the files in the archive, or null, if top level.
      Gibt zurück:
      true, if this method created any files or directories, false otherwise
      Löst aus:
      IOException - If an I/O-error occurs.
    • tarDir

      @Deprecated public static void tarDir(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_tar, String p_strRootDir, File p_dirSrc, boolean p_bTarMarkedDirs, Set<File> p_filesToExclude) throws IOException
      Veraltet.
      Löst aus:
      IOException
    • untarDir

      @Deprecated public static void untarDir(File p_fileArchive, String p_strFileNameEncoding, String p_strRootDir, File p_dirDst) throws IOException
      Veraltet.
      Löst aus:
      IOException
    • untarDir

      @Deprecated public static boolean untarDir(File p_fileArchive, String p_strFileNameEncoding, String p_strRootDir, File p_dirDst, de.uplanet.util.Progress p_progress) throws IOException
      Veraltet.
      Löst aus:
      IOException