com.stimulsoft.base.zip
Class StiGZipHelper

java.lang.Object
  extended by com.stimulsoft.base.zip.StiGZipHelper

public class StiGZipHelper
extends java.lang.Object

Copyright Stimulsoft


Constructor Summary
StiGZipHelper()
           
 
Method Summary
static java.lang.String convertByteArrayToString(byte[] bytes)
           
static byte[] convertStringToByteArray(java.lang.String str)
           
static byte[] pack(byte[] bytes)
           
static java.lang.String pack(java.lang.String str)
           
static byte[] unpack(byte[] buff)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiGZipHelper

public StiGZipHelper()
Method Detail

convertStringToByteArray

public static byte[] convertStringToByteArray(java.lang.String str)
                                       throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

convertByteArrayToString

public static java.lang.String convertByteArrayToString(byte[] bytes)
                                                 throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

pack

public static byte[] pack(byte[] bytes)
                   throws java.io.IOException
Throws:
java.io.IOException

pack

public static java.lang.String pack(java.lang.String str)
                             throws java.io.UnsupportedEncodingException,
                                    java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

unpack

public static byte[] unpack(byte[] buff)
                     throws java.io.IOException
Throws:
java.io.IOException