Package com.db4o.internal.encoding
Class LatinStringEncoding
- java.lang.Object
-
- com.db4o.internal.encoding.BuiltInStringEncoding
-
- com.db4o.internal.encoding.LatinStringEncoding
-
- All Implemented Interfaces:
StringEncoding
- Direct Known Subclasses:
UnicodeStringEncoding
public class LatinStringEncoding extends BuiltInStringEncoding
-
-
Constructor Summary
Constructors Constructor Description LatinStringEncoding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LatinStringIO
createStringIo(StringEncoding encoding)
java.lang.String
decode(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.-
Methods inherited from class com.db4o.internal.encoding.BuiltInStringEncoding
encodingByteForEncoding, stringIoForEncoding
-
-
-
-
Method Detail
-
decode
public java.lang.String decode(byte[] bytes, int start, int length)
Description copied from interface:StringEncoding
called when a byte array is to be decoded to a string.- Parameters:
bytes
- the byte arraystart
- the start offset in the byte arraylength
- the length of the encoded string in the byte array- Returns:
- the string
-
encode
public byte[] encode(java.lang.String str)
Description copied from interface:StringEncoding
called when a string is to be encoded to a byte array.- Parameters:
str
- the string to encode- Returns:
- the encoded byte array
-
createStringIo
protected LatinStringIO createStringIo(StringEncoding encoding)
- Overrides:
createStringIo
in classBuiltInStringEncoding
-
-