Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
public int __id = -1;
public int __getId() {
    return __id;
}
public void __setId(int id) {
    this.__id= id;
}
public String getRecordStoreName() {
    return "FloggyVectorArray520738657";
}
public void __deserialize(byte[] buffer, boolean lazy) throws java.lang.Exception {
    java.io.DataInputStream dis = new java.io.DataInputStream(new java.io.ByteArrayInputStream(buffer));
    if(dis.readByte() == 0) {
        int count = dis.readInt();
        this.x = new java.util.Vector[count];
        for(int _184 = 0; _184 < count; _184++) {
            this.x[_184]= net.sourceforge.floggy.persistence.impl.SerializationHelper.readVector(dis, lazy);
        }
    }
    else {
        x = null;
    }
    dis.close();
}
public byte[] __serialize() throws java.lang.Exception {
    net.sourceforge.floggy.persistence.impl.FloggyOutputStream fos= new net.sourceforge.floggy.persistence.impl.FloggyOutputStream();
    if(this.x == null) {
        fos.writeByte(1);
    }
    else {
        fos.writeByte(0);
        int count = this.x.length;
        fos.writeInt(count);
        for(int _70 = 0; _70 < count; _70++) {
            net.sourceforge.floggy.persistence.impl.SerializationHelper.writeVector(fos, x[_70]);
        }
    }
    fos.flush();
    return fos.toByteArray();
}
public void __delete() throws java.lang.Exception {
    this.delete();
}
New to GrepCode? Check out our FAQ X