|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.Compact7BitString
org.hd.d.pg2k.svrCore.Compact7BitString.WithDict
private static final class Compact7BitString.WithDict
Specialised immutable sub-class to allow use with a StaticDictionary. Not directly visible outside this class, but is constructed by convertToCompact7BitString() as necessary.
Note that this can never be directly (de)serialised since this forces itself to String form when serialisation is attempted. This is because we cannot efficiently serialise the dictionary and thus would nto have enough information to ensure correct decoding.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.hd.d.pg2k.svrCore.Compact7BitString |
|---|
Compact7BitString.StaticDictionary |
| Field Summary | |
|---|---|
private int |
_hash
Cache of the hash code for speed. |
private Compact7BitString.StaticDictionary |
dict
Static dictionary (if any) used to aid compression; never null. |
private static long |
serialVersionUID
Serialisation UID; never really used. |
| Fields inherited from class org.hd.d.pg2k.svrCore.Compact7BitString |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
private |
Compact7BitString.WithDict(byte[] text,
Compact7BitString.StaticDictionary dict)
|
| Method Summary | |
|---|---|
protected Compact7BitString.StaticDictionary |
getDict()
Get the static dictionary, null if none. |
int |
hashCode()
Derive (and cache) a hash based on the text and the dictionary. |
protected java.lang.Object |
writeReplace()
Always write as (ie return) a String; never null. |
| Methods inherited from class org.hd.d.pg2k.svrCore.Compact7BitString |
|---|
convertToCompact7BitString, equals, getInternalBytes, isEmpty, makeFromInternalBytes, toString, validateObject |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Compact7BitString.StaticDictionary dict
private int _hash
We assume that it has not been computed and cached if zero.
private static final long serialVersionUID
| Constructor Detail |
|---|
private Compact7BitString.WithDict(byte[] text,
Compact7BitString.StaticDictionary dict)
| Method Detail |
|---|
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
writeReplace in class Compact7BitStringjava.io.ObjectStreamExceptionprotected Compact7BitString.StaticDictionary getDict()
getDict in class Compact7BitStringpublic int hashCode()
hashCode in class Compact7BitString
|
DHD Multimedia Gallery V1.50.55 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||