|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.util.io.CompressedDataEncoder
public class CompressedDataEncoder
Utility class used by IRequestCycle
to compress IdAllocator
state.
Field Summary | |
---|---|
static String |
BYTESTREAM_PREFIX
Prefix on the MIME encoding that indicates that the encoded data is not encoded. |
static String |
GZIP_BYTESTREAM_PREFIX
Prefix on the MIME encoding that indicates that the encoded data is encoded with GZIP. |
Method Summary | |
---|---|
static String |
decodeString(String input)
Takes a string with an encoded and compressed input as produced by encodeString(String) , and converts it back
into the original String representation. |
static String |
encodeString(String input)
Encodes the given string into a compressed string representation that can later be decoded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BYTESTREAM_PREFIX
public static final String GZIP_BYTESTREAM_PREFIX
Method Detail |
---|
public static String encodeString(String input)
input
- String input to compress and encode into a persistable form.
public static String decodeString(String input)
encodeString(String)
, and converts it back
into the original String representation.
input
- The data to un-encode, which should be equivalent to the same that
was passed in to encodeString(String)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |