예제 #1
0
  protected OffsetableBase(RepositoryDataInput input) throws IOException {
    startPosition = input.readInt();
    endPosition = input.readInt();

    this.fileUID = UIDObjectFactory.getDefaultFactory().readUID(input);
    // not null UID
    assert this.fileUID != null;
    this.fileRef = null;
  }
예제 #2
0
 private Persistent read(RepositoryDataInput in) throws IOException {
   key = new TestKey(in);
   int cnt = in.readInt();
   if (cnt == -1) {
     sData = null;
   } else {
     sData = new String[cnt];
     for (int i = 0; i < sData.length; i++) {
       sData[i] = in.readUTF();
     }
   }
   iData = in.readInt();
   lData = in.readLong();
   return this;
 }