com.neeve.util
Class UtlArchive

java.lang.Object
  extended by com.neeve.util.UtlArchive

public final class UtlArchive
extends Object

Contains utilities to create and work with file archives.

This class MAY be used by end users, however it is not supported.


Constructor Summary
UtlArchive()
           
 
Method Summary
static File archiveAndCompress(File source, File dest, String archiveFilename, String platform)
          Archive and compress up the contents of a directory
static String getCompressedArchiveFileExtension(String platform)
          Get the platform specific archive file extension.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtlArchive

public UtlArchive()
Method Detail

getCompressedArchiveFileExtension

public static final String getCompressedArchiveFileExtension(String platform)
Get the platform specific archive file extension.

Parameters:
platform - The X platform platform mnemonic (win-x86-32, linux-x86-64, ...)

archiveAndCompress

public static final File archiveAndCompress(File source,
                                            File dest,
                                            String archiveFilename,
                                            String platform)
                                     throws Exception
Archive and compress up the contents of a directory

Parameters:
source - The directory to archive and compress.
dest - The directory in which to place the compressed archive file.
archiveFilename - The name of the archive file. This name will be appended with the platform specific extension of the archive file The user can use getCompressedArchiveFileExtension(java.lang.String) to get the (platform specific) archive file extension.
platform - The X Platform platform mnemonic (win-x86-32, linux-x86-64, ...)
Returns:
Returns the compressed archive file.
Throws:
Exception


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.