Package com.db4o.config.encoding
Interface StringEncoding
- 
- All Known Implementing Classes:
- BuiltInStringEncoding,- LatinStringEncoding,- UnicodeStringEncoding,- UTF8StringEncoding
 
 public interface StringEncodingencodes a String to a byte array and decodes a String from a part of a byte array
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringdecode(byte[] bytes, int start, int length)called when a byte array is to be decoded to a string.byte[]encode(java.lang.String str)called when a string is to be encoded to a byte array.
 
- 
- 
- 
Method Detail- 
encodebyte[] encode(java.lang.String str) called when a string is to be encoded to a byte array.- Parameters:
- str- the string to encode
- Returns:
- the encoded byte array
 
 - 
decodejava.lang.String decode(byte[] bytes, int start, int length)called when a byte array is to be decoded to a string.- Parameters:
- bytes- the byte array
- start- the start offset in the byte array
- length- the length of the encoded string in the byte array
- Returns:
- the string
 
 
- 
 
-