|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.StringCache
public final class StringCache
Cache [Entry(byte[], enc) -> String]. No synchronization, so use this class per thread or per request only.
Constructor Summary | |
---|---|
StringCache(JavaBridge bridge)
Create a new StringCache |
Method Summary | |
---|---|
void |
clear()
Removes all mappings from this cache. |
java.lang.String |
getString(byte[] name,
int start,
int length,
java.lang.String encoding)
Get a string from the string cache. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringCache(JavaBridge bridge)
bridge
- The JavaBridgeMethod Detail |
---|
public java.lang.String getString(byte[] name, int start, int length, java.lang.String encoding)
name
- The representation of the stringstart
- The start position within the byte arraylength
- The length of the arrayencoding
- The file.encoding.
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |