| java.lang.Object com.bluecast.util.CharStringConverter
CharStringConverter | final public class CharStringConverter (Code) | | A fast way to convert character arrays into Strings. This class maintains
a hashtable of char[] -> String mappings. Returned Strings are guaranteed
to be internalized.
author: Yuval Oren, yuval@bluecast.com version: $Revision: 1.3 $ |
Method Summary | |
public void | clearCache() | public String | convert(char[] ch) Converts a character array into an internalized String. | public String | convert(char[] ch, int start, int length) Converts a character array into an internalized String. | public int | getCacheSize() Returns the number of cached conversion mappings. |
CharStringConverter | public CharStringConverter(int initialCapacity, float loadFactor)(Code) | | |
CharStringConverter | public CharStringConverter()(Code) | | |
CharStringConverter | public CharStringConverter(int initialCapacity)(Code) | | |
clearCache | public void clearCache()(Code) | | |
convert | public String convert(char[] ch)(Code) | | Converts a character array into an internalized String.
|
convert | public String convert(char[] ch, int start, int length)(Code) | | Converts a character array into an internalized String.
Parameters: ch - character array to convert Parameters: start - starting offset of ch[] Parameters: length - number of characters to read |
getCacheSize | public int getCacheSize()(Code) | | Returns the number of cached conversion mappings.
|
|
|