gr.uoa.di.madgik.commons.utils
Class ZipUtils

java.lang.Object
  extended by gr.uoa.di.madgik.commons.utils.ZipUtils

public class ZipUtils
extends Object


Constructor Summary
ZipUtils()
           
 
Method Summary
static byte[] UnzipBytes(byte[] input)
           
static void UnzipFile(File infile, File outfile)
           
static String UnzipString(byte[] bytes)
           
static String UnzipString(byte[] bytes, String CharSet)
           
static byte[] ZipBytes(byte[] input)
           
static byte[] ZipBytes(byte[] input, int length)
           
static byte[] ZipBytes(byte[] input, int offset, int length)
           
static byte[] ZipString(String input)
           
static byte[] ZipString(String input, String CharSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipUtils

public ZipUtils()
Method Detail

ZipBytes

public static byte[] ZipBytes(byte[] input)
                       throws IOException
Throws:
IOException

ZipBytes

public static byte[] ZipBytes(byte[] input,
                              int length)
                       throws IOException
Throws:
IOException

ZipBytes

public static byte[] ZipBytes(byte[] input,
                              int offset,
                              int length)
                       throws IOException
Throws:
IOException

UnzipBytes

public static byte[] UnzipBytes(byte[] input)
                         throws IOException
Throws:
IOException

ZipString

public static byte[] ZipString(String input)
                        throws IOException
Throws:
IOException

ZipString

public static byte[] ZipString(String input,
                               String CharSet)
                        throws IOException
Throws:
IOException

UnzipString

public static String UnzipString(byte[] bytes)
                          throws IOException
Throws:
IOException

UnzipString

public static String UnzipString(byte[] bytes,
                                 String CharSet)
                          throws IOException
Throws:
IOException

UnzipFile

public static void UnzipFile(File infile,
                             File outfile)
                      throws FileNotFoundException,
                             IOException
Throws:
FileNotFoundException
IOException


Copyright © 2012. All Rights Reserved.