|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.record.PersistentPropertyDataEncoderImpl
public class PersistentPropertyDataEncoderImpl
Responsible for converting lists of PropertyChanges back and
forth to a URL safe encoded string.
| Field Summary | |
|---|---|
protected org.apache.hivemind.ClassResolver |
_classResolver
|
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. |
| Constructor Summary | |
|---|---|
PersistentPropertyDataEncoderImpl()
|
|
| Method Summary | |
|---|---|
List |
decodePageChanges(String encoded)
Takes a string with an encoded set of page changes, and converts it back into a list of PropertyChanges. |
String |
encodePageChanges(List changes)
Encodes a (possibly empty) list of PropertyChanges into a string
representation that can later be decoded. |
protected List |
readChangesFromStream(ObjectInputStream ois)
|
void |
setClassResolver(org.apache.hivemind.ClassResolver resolver)
|
protected void |
writeChangesToStream(List changes,
ObjectOutputStream oos)
|
| 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
protected org.apache.hivemind.ClassResolver _classResolver
| Constructor Detail |
|---|
public PersistentPropertyDataEncoderImpl()
| Method Detail |
|---|
public String encodePageChanges(List changes)
PersistentPropertyDataEncoderPropertyChanges into a string
representation that can later be decoded.
encodePageChanges in interface PersistentPropertyDataEncoderchanges - List of changes to encode into a persistable form.
public List decodePageChanges(String encoded)
PersistentPropertyDataEncoderPropertyChanges.
decodePageChanges in interface PersistentPropertyDataEncoderencoded - The data to un-encode, which should be equivalent to the same that
was passed in to PersistentPropertyDataEncoder.encodePageChanges(java.util.List).
protected void writeChangesToStream(List changes,
ObjectOutputStream oos)
throws IOException
IOException
protected List readChangesFromStream(ObjectInputStream ois)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionpublic void setClassResolver(org.apache.hivemind.ClassResolver resolver)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||