| java.lang.Object net.metanotion.io.RAIFile
readUTF | public String readUTF() throws IOException(Code) | | Read a UTF encoded string
I would delegate here. But Java's read/writeUTF combo suck.
A signed 2 byte length is not enough.
This reads a 4 byte length.
The upper byte MUST be zero, if its not, then its not this method and has used an
extensible length encoding.
This is followed by the bytes of the UTF encoded string, as
returned by String.getBytes("UTF-8");
|
writeUTF | public void writeUTF(String str) throws IOException(Code) | | Write a UTF encoded string
I would delegate here. But Java's read/writeUTF combo suck.
A signed 2 byte length is not enough.
This writes a 4 byte length.
The upper byte MUST be zero, if its not, then its not this method and has used an
extensible length encoding.
This is followed by the bytes of the UTF encoded string, as
returned by String.getBytes("UTF-8");
|
|
|