code: protected static boolean restoreSectorBits(byte[] page, byte sectorByte)
      {
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.entry(cclass,
                          "restoreSectorBits",
                          new Object[] { new Byte(page[0]), new Byte(sectorByte) }
                              );
  
          // Check that all of the sectors are OK.
          for (int i = 1; i < 9; i++) {
              if ((page[FileLogOutput.sectorSize * i - 1] & 1) != sectorByte) {
                  if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
                      trace.exit(cclass
                                 , "restoreSectorBits"
                                 , "returns false"
                                   + " i=" + i + "(int)"
                                   + " page[FileLogOutput.sectorSize*i -1]=" + page[FileLogOutput.sectorSize * i - 1] + "(byte)"
                                      );
                  return false;
              } // if sector bit.   
  
              if ((page[0] & mask[i - 1]) == 0)
                  page[FileLogOutput.sectorSize * i - 1] &= 0xFE;
              else
                  page[FileLogOutput.sectorSize * i - 1] |= 1;
          } //  For 8 sectors. 
  
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.exit(cclass
                         , "restoreSectorBits"
                         , "returns true"
                              );
          return true;
      }
docs: /*
  Validate and restore the sectorBits in the page.
  
  @param byte[] the page to be validated and restored.
  
  @param byte the sectorByte the page should contain.
  
  @return boolean true if all of the sector bits are valid and have been reset.