Code example for ObjectInput

Methods: readBytereadUTF

0
            out.writeUTF(getSystemId());
        } 
    } 
 
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        int b = in.readByte();
        if ((b & 0x01) != 0) {
            text = in.readUTF();
        } 
        if ((b & 0x02) != 0) {
            encoding = in.readUTF();
        } 
        if ((b & 0x04) != 0) {
            setPublicId(in.readUTF());
        } 
        if ((b & 0x08) != 0) {
            setSystemId(in.readUTF());
        } 
    } 
}