|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.database.EncodedUTF8String
| Field Summary | |
byte[] |
data
|
int |
start
|
| Constructor Summary | |
EncodedUTF8String()
|
|
| Method Summary | |
static String |
load(byte[] source,
int sourceOffset)
Load a Utf8 String as saved by storeUtf8String(). |
static int |
load(byte[] source,
int sourceOffset,
char[] chars,
int offset)
Load a Utf8 String as saved by store(). |
static CharArray |
load(byte[] source,
int sourceOffset,
CharArray dest)
Load a Utf8 String as saved by storeUtf8String() and return it in a CharArray |
static SubString |
load(byte[] source,
int sourceOffset,
SubString dest)
Load a Utf8 String as saved by storeUtf8String() and return it in a CharArray |
static char[] |
loadChars(byte[] source,
int sourceOffset)
Load a Utf8 String as saved by storeUtf8String() as a char array. |
EncodedUTF8String |
set(byte[] source,
int sourceStart)
|
static int |
store(char[] chars,
int offset,
int length,
byte[] dest,
int destOffset)
Store a String as UTF, prepending the lengh of the String as a short integer and appending a zero byte, or find out the number of bytes required. |
static byte[] |
store(String theString)
|
static int |
store(String theString,
byte[] dest,
int offset)
Store a String as UTF, prepending the lengh of the String as a short integer and appending a zero byte, or find out the number of bytes required. |
String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public byte[] data
public int start
| Constructor Detail |
public EncodedUTF8String()
| Method Detail |
public static int store(char[] chars,
int offset,
int length,
byte[] dest,
int destOffset)
chars - the characters to write.offset - the first character to write.length - the number of characters to write.dest - the destination byte array, or null to just find out the number of bytes needed.
public static int load(byte[] source,
int sourceOffset,
char[] chars,
int offset)
source - The byte encoded String.sourceOffset - the start of the byte encoded String.chars - the destination for the String characters.offset - the offset in the destination for the characters.
public static int store(String theString,
byte[] dest,
int offset)
theString - the String to write.dest - the destination byte array, or null to just find out the number of bytes needed.offset - the location in the destinatin to write to.
public static byte[] store(String theString)
public static char[] loadChars(byte[] source,
int sourceOffset)
source - The byte encoded String.sourceOffset - the start of the byte encoded String.
public static String load(byte[] source,
int sourceOffset)
source - The byte encoded String.sourceOffset - the start of the byte encoded String.
public static CharArray load(byte[] source,
int sourceOffset,
CharArray dest)
source - The byte encoded String.sourceOffset - the start of the byte encoded String.dest - the CharArray to store in or a new one if dest is null. The CharArray
will be cleared before the data is written to it.
public static SubString load(byte[] source,
int sourceOffset,
SubString dest)
source - The byte encoded String.sourceOffset - the start of the byte encoded String.dest - the SubString to store in or a new one if dest is null.
public String toString()
Object
toString in class Object
public EncodedUTF8String set(byte[] source,
int sourceStart)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||