Methods Summary |
---|
public void | close()Closes the stream.
input.close();
|
public byte[] | read()Reads data from the mSQL database as an array of bytes.
byte[] bytes;
int size = 0;
for(int i=0; i<4; i++) {
int b = input.read();
if( i > 0 ) {
size += b<<(i*8);
}
else {
size += b;
}
}
bytes = new byte[size];
input.readFully(bytes);
return bytes;
|
public java.lang.String | readAsciiString()Instead of reading data raw, you can read it as a string using
the ASCII character set.
return new String(read(), "8859_9");
|
public java.lang.String | readUnicodeString()Instead of reading data raw, you can read it using the Unicode
character set. Right now this is likely to give you nonsense.
return new String(read(), "Unicode");
|