public void reloadPokaFsn(String buId) { super.reload(); this.pokaData = new char[105]; int loca = 0; String temBun = null; if (this.bundleId.length() <= 0) { temBun = buId; } else { temBun = this.bundleId; } System.arraycopy(temBun.toCharArray(), 0, this.pokaData, loca, temBun.toCharArray().length); loca += 24; System.arraycopy( this.userId1.toCharArray(), 0, this.pokaData, loca, this.userId1.toCharArray().length); loca += 8; System.arraycopy( this.userId2.toCharArray(), 0, this.pokaData, loca, this.userId2.toCharArray().length); loca += 8; System.arraycopy( this.bagId.toCharArray(), 0, this.pokaData, loca, this.bagId.toCharArray().length); loca += 24; System.arraycopy( this.atmId.toCharArray(), 0, this.pokaData, loca, this.atmId.toCharArray().length); loca += 24; System.arraycopy( this.userId3.toCharArray(), 0, this.pokaData, loca, this.userId3.toCharArray().length); loca += 8; System.arraycopy( this.userId4.toCharArray(), 0, this.pokaData, loca, this.userId4.toCharArray().length); loca += 8; this.pokaData[loca] = (char) flag; }
public void initPokaFsn() { super.init(); String s = new String(pokaData); int loca = 0; this.bundleId = s.substring(loca, loca + 24); loca += 24; this.userId1 = s.substring(loca, loca + 8); loca += 8; this.userId2 = s.substring(loca, loca + 8); loca += 8; this.bagId = s.substring(loca, loca + 24); loca += 24; this.atmId = s.substring(loca, loca + 24); loca += 24; this.userId3 = s.substring(loca, loca + 8); loca += 8; this.userId4 = s.substring(loca, loca + 8); loca += 8; this.flag = (byte) (s.substring(loca, loca + 1).toCharArray()[0] - '0'); }
public void reloadPokaFsn() { super.reload(); this.pokaData = new char[105]; int loca = 0; if (this.bundleId != null && this.bundleId.toCharArray().length > 0) { System.arraycopy( this.bundleId.toCharArray(), 0, this.pokaData, loca, this.bundleId.toCharArray().length); } loca += 24; if (this.userId1 != null && this.userId1.toCharArray().length > 0) { System.arraycopy( this.userId1.toCharArray(), 0, this.pokaData, loca, this.userId1.toCharArray().length); } loca += 8; if (this.userId2 != null && this.userId2.toCharArray().length > 0) { System.arraycopy( this.userId2.toCharArray(), 0, this.pokaData, loca, this.userId2.toCharArray().length); } loca += 8; if (this.bagId != null && this.bagId.toCharArray().length > 0) { System.arraycopy( this.bagId.toCharArray(), 0, this.pokaData, loca, this.bagId.toCharArray().length); } loca += 24; if (this.atmId != null && this.atmId.toCharArray().length > 0) { System.arraycopy( this.atmId.toCharArray(), 0, this.pokaData, loca, this.atmId.toCharArray().length); } loca += 24; if (this.userId3 != null && this.userId3.toCharArray().length > 0) { System.arraycopy( this.userId3.toCharArray(), 0, this.pokaData, loca, this.userId3.toCharArray().length); } loca += 8; if (this.userId4 != null && this.userId4.toCharArray().length > 0) { System.arraycopy( this.userId4.toCharArray(), 0, this.pokaData, loca, this.userId4.toCharArray().length); } loca += 8; this.pokaData[loca] = (char) flag; }