|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.bridge.StringCache
final class StringCache
Cache [Entry(byte[], enc) -> String]. No synchronization, so use this class per thread or per request only.
| Nested Class Summary | |
|---|---|
protected static class |
StringCache.Entry
A cache entry. |
| Constructor Summary | |
|---|---|
StringCache(JavaBridge bridge)
Create a new StringCache |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all mappings from this cache. |
protected java.lang.String |
get(StringCache.Entry entry)
Get the method for the entry |
protected StringCache.Entry |
getEntry(byte[] name,
int start,
int length,
java.lang.String enc)
|
java.lang.String |
getString(byte[] name,
int start,
int length,
java.lang.String encoding)
Get a string from the string cache. |
protected void |
put(StringCache.Entry entry,
java.lang.String method)
Store a constructor with an entry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringCache(JavaBridge bridge)
bridge - The JavaBridge| Method Detail |
|---|
protected java.lang.String get(StringCache.Entry entry)
entry - The entry
protected void put(StringCache.Entry entry,
java.lang.String method)
entry - The cache entrymethod - The method
protected StringCache.Entry getEntry(byte[] name,
int start,
int length,
java.lang.String enc)
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 | |||||||||