public class GZUtil extends Object
| Constructor and Description |
|---|
GZUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToString(byte[] in)
Retourne la string decompressee
|
static StringBuffer |
bytesToStringBuffer(byte[] in)
Retourne la string decompressee
|
static boolean |
isGzipStream(InputStream inputStream)
Tests if an inputStream is GZipped.
|
static byte[] |
stringBufferToBytes(StringBuffer elem)
Retourne la string compressee
|
static byte[] |
stringToBytes(String elem)
Retourne la string compressee
|
public static boolean isGzipStream(InputStream inputStream) throws IOException
inputStream - inputStream to testtrue if inputStream is gzipped, false otherwiseIOException - if any io errors while reading inputStreampublic static StringBuffer bytesToStringBuffer(byte[] in)
public static String bytesToString(byte[] in)
public static byte[] stringBufferToBytes(StringBuffer elem)
public static byte[] stringToBytes(String elem)
Copyright © 2004–2015 CodeLutin. All rights reserved.