|
||||||||||
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 PropertyChange
s 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 PropertyChange s. |
String |
encodePageChanges(List changes)
Encodes a (possibly empty) list of PropertyChange s 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)
PersistentPropertyDataEncoder
PropertyChange
s into a string
representation that can later be decoded.
encodePageChanges
in interface PersistentPropertyDataEncoder
changes
- List of changes to encode into a persistable form.
public List decodePageChanges(String encoded)
PersistentPropertyDataEncoder
PropertyChange
s.
decodePageChanges
in interface PersistentPropertyDataEncoder
encoded
- 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
ClassNotFoundException
public void setClassResolver(org.apache.hivemind.ClassResolver resolver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |