Beispiel #1
0
 public boolean nextRecord() {
   try {
     while (true) {
       ByteSearchSection section = reader.readSectionStart(root.section);
       if (validRecord(section)) {
         root.emptyDataContainer();
         section = root.readNode(section);
         reader.movePast(section);
         return true;
       }
       reader.movePast(section);
       if (!reader.hasMore()) {
         break;
       }
     }
   } catch (EOCException ex) {
   }
   root.emptyDataContainer();
   return false;
 }
Beispiel #2
0
 public void read() {
   openRead();
   try {
     while (true) {
       ByteSearchSection section = reader.readSectionStart(root.section);
       if (section.notEmpty()) {
         section = root.readNode(section);
         reader.movePast(section);
       }
     }
   } catch (EOCException ex) {
   }
   closeRead();
 }
Beispiel #3
0
 public void openRead() {
   checkFirstUse();
   if (datafile != null) {
     if (reader == null) {
       reader = datafile.rwbuffer;
     }
     datafile.openRead();
     if (hasHeader) {
       ByteSearchSection section = reader.readSectionStart(root.section);
       if (section.notEmpty()) {
         root.readHeader(section);
         reader.movePast(section);
       }
     }
   }
 }