Class GZUtil
java.lang.Object
org.nuiton.util.GZUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToString(byte[] in) static StringBufferbytesToStringBuffer(byte[] in) static booleanisGzipStream(InputStream inputStream) Tests if an inputStream is GZipped.static byte[]static byte[]stringToBytes(String elem)
-
Constructor Details
-
GZUtil
public GZUtil()
-
-
Method Details
-
isGzipStream
Tests if an inputStream is GZipped.Note: the stream is not closed and is reset.
- Parameters:
inputStream- inputStream to test- Returns:
trueif inputStream is gzipped,falseotherwise- Throws:
IOException- if any io errors while reading inputStream- Since:
- 3.0
-
bytesToStringBuffer
- Parameters:
in- FIXME- Returns:
- Retourne la string decompressee
-
bytesToString
- Parameters:
in- FIXME- Returns:
- la string decompressee
-
stringBufferToBytes
- Parameters:
elem- FIXME- Returns:
- Retourne la string compressee
-
stringToBytes
- Parameters:
elem- FIXME- Returns:
- Retourne la string compressee
-