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 "FloggyPersistableArray1281786912";
}
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 net.sourceforge.floggy.persistence.beans.FloggyPersistable[count];
        for(int _7 = 0; _7 < count; _7++) {
            this.x[_7]= (net.sourceforge.floggy.persistence.beans.FloggyPersistable)net.sourceforge.floggy.persistence.impl.SerializationHelper.readPersistable(dis, new net.sourceforge.floggy.persistence.beans.FloggyPersistable(), 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 _146 = 0; _146 < count; _146++) {
            net.sourceforge.floggy.persistence.impl.SerializationHelper.writePersistable(fos, "net.sourceforge.floggy.persistence.beans.FloggyPersistable", x[_146]);
        }
    }
    fos.flush();
    return fos.toByteArray();
}
public void __delete() throws java.lang.Exception {
    this.delete();
}
New to GrepCode? Check out our FAQ X