| java.lang.Object com.jclark.xml.tok.StringConversionCache
StringConversionCache | public class StringConversionCache (Code) | | Caches conversion of byte subarrays into Strings.
version: $Revision: 1.3 $ $Date: 1998/02/17 04:24:24 $ |
Constructor Summary | |
public | StringConversionCache(Encoding enc, int cacheSize) Create a cache of the specified size
for converting byte subarrays in the specified encoding
into Strings. | public | StringConversionCache(Encoding enc) Create a cache of the default size for converting byte subarrays
in the specified encoding into Strings. |
Method Summary | |
public String | convert(byte[] buf, int start, int end, boolean permanent) Convert a byte subarray into a String. | public void | setEncoding(Encoding enc) Changes the encoding for the cache. |
StringConversionCache | public StringConversionCache(Encoding enc, int cacheSize)(Code) | | Create a cache of the specified size
for converting byte subarrays in the specified encoding
into Strings.
|
StringConversionCache | public StringConversionCache(Encoding enc)(Code) | | Create a cache of the default size for converting byte subarrays
in the specified encoding into Strings.
|
convert | public String convert(byte[] buf, int start, int end, boolean permanent)(Code) | | Convert a byte subarray into a String.
If permanent is true, then this conversion will
be kept in the cache in preference to any non-permanent conversions.
|
setEncoding | public void setEncoding(Encoding enc)(Code) | | Changes the encoding for the cache.
This cannot be called after any calls to convert
have been made.
|
|
|