| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static int | accessCount
Access count. |
| protected static volatile StringCache. | bcCache
Cache for byte chunk. |
| protected static int | bcCount
toString count for byte chunk. |
| protected static final HashMap | bcStats
Statistics hash map for byte chunk. |
| protected static boolean | byteEnabled
Enabled ? |
| protected static int | |
| protected static volatile StringCache. | ccCache
Cache for char chunk. |
| protected static int | ccCount
toString count for char chunk. |
| protected static final HashMap | ccStats
Statistics hash map for char chunk. |
| protected static boolean | |
| protected static int | hitCount
Hit count. |
| private static final Log | |
| protected static final int | |
| private static final StringManager | |
| protected static int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static final int | |
| protected static final int | |
| protected static final String | |
| protected static final String | Returns: the corresponding valueThe name to find name, CodingErrorAction Action to take if an malformed input is encountered malformedInputAction, CodingErrorAction Action to take if an unmappable character is encountered unmappableCharacterAction)Find an entry given its name in the cache and return the associated String. |
| protected static final String | |
| protected static final int | Returns: the position of the best matchThe name to find name, StringCache.The array in which to look array,The effective length of the array len)Find an entry given its name in a sorted array of map elements. |
| protected static final int | Returns: the position of the best matchThe name to find name, StringCache.The array in which to look array,The effective length of the array len)Find an entry given its name in a sorted array of map elements. |
| public int | |
| public boolean | |
| public int | |
| public boolean | |
| public int | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public static String | |
| public static String | toString(ByteChunk bc, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction)
|
| public static String |
| accessCount | back to summary |
|---|---|
| protected static int accessCount Access count. | |
| bcCache | back to summary |
|---|---|
| protected static volatile StringCache. Cache for byte chunk. | |
| bcCount | back to summary |
|---|---|
| protected static int bcCount toString count for byte chunk. | |
| bcStats | back to summary |
|---|---|
| protected static final HashMap<StringCache. Statistics hash map for byte chunk. | |
| byteEnabled | back to summary |
|---|---|
| protected static boolean byteEnabled Enabled ? | |
| cacheSize | back to summary |
|---|---|
| protected static int cacheSize | |
| ccCache | back to summary |
|---|---|
| protected static volatile StringCache. Cache for char chunk. | |
| ccCount | back to summary |
|---|---|
| protected static int ccCount toString count for char chunk. | |
| ccStats | back to summary |
|---|---|
| protected static final HashMap<StringCache. Statistics hash map for char chunk. | |
| charEnabled | back to summary |
|---|---|
| protected static boolean charEnabled | |
| hitCount | back to summary |
|---|---|
| protected static int hitCount Hit count. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| maxStringSize | back to summary |
|---|---|
| protected static final int maxStringSize | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| trainThreshold | back to summary |
|---|---|
| protected static int trainThreshold | |
| StringCache | back to summary |
|---|---|
| public StringCache() | |
| compare | back to summary |
|---|---|
| protected static final int compare(ByteChunk name, byte[] compareTo) Compare given byte chunk with byte array.
| |
| compare | back to summary |
|---|---|
| protected static final int compare(CharChunk name, char[] compareTo) Compare given char chunk with char array.
| |
| find | back to summary |
|---|---|
| protected static final String find(ByteChunk name)
Deprecated Unused. Will be removed in Tomcat 11.
Use Find an entry given its name in the cache and return the associated String. | |
| find | back to summary |
|---|---|
| protected static final String find(ByteChunk name, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction) Find an entry given its name in the cache and return the associated String.
| |
| find | back to summary |
|---|---|
| protected static final String find(CharChunk name) Find an entry given its name in the cache and return the associated String. | |
| findClosest | back to summary |
|---|---|
| protected static final int findClosest(ByteChunk name, StringCache. Find an entry given its name in a sorted array of map elements. This will return the index for the closest inferior or equal item in the given array.
| |
| findClosest | back to summary |
|---|---|
| protected static final int findClosest(CharChunk name, StringCache. Find an entry given its name in a sorted array of map elements. This will return the index for the closest inferior or equal item in the given array.
| |
| getAccessCount | back to summary |
|---|---|
public int getAccessCount()
| |
| getByteEnabled | back to summary |
|---|---|
public boolean getByteEnabled()
| |
| getCacheSize | back to summary |
|---|---|
public int getCacheSize()
| |
| getCharEnabled | back to summary |
|---|---|
public boolean getCharEnabled()
| |
| getHitCount | back to summary |
|---|---|
public int getHitCount()
| |
| getTrainThreshold | back to summary |
|---|---|
public int getTrainThreshold()
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| setByteEnabled | back to summary |
|---|---|
public void setByteEnabled(boolean byteEnabled)
| |
| setCacheSize | back to summary |
|---|---|
public void setCacheSize(int cacheSize)
| |
| setCharEnabled | back to summary |
|---|---|
public void setCharEnabled(boolean charEnabled)
| |
| setTrainThreshold | back to summary |
|---|---|
public void setTrainThreshold(int trainThreshold)
| |
| toString | back to summary |
|---|---|
| public static String toString(ByteChunk bc) | |
| toString | back to summary |
|---|---|
| public static String toString(ByteChunk bc, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction) throws CharacterCodingException | |
| toString | back to summary |
|---|---|
| public static String toString(CharChunk cc) | |
| Modifier and Type | Field and Description |
|---|---|
| private Charset | |
| private CodingErrorAction | |
| private byte[] | |
| private CodingErrorAction | |
| private String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| charset | back to summary |
|---|---|
| private Charset charset | |
| malformedInputAction | back to summary |
|---|---|
| private CodingErrorAction malformedInputAction | |
| name | back to summary |
|---|---|
| private byte[] name | |
| unmappableCharacterAction | back to summary |
|---|---|
| private CodingErrorAction unmappableCharacterAction | |
| value | back to summary |
|---|---|
| private String value | |
| ByteEntry | back to summary |
|---|---|
| private ByteEntry() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| CharEntry | back to summary |
|---|---|
| private CharEntry() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |