/** * Reduces the file down to an empty tree. * * @throws IOException If an I/O error occurs. */ public void clear() throws IOException { avlBlockFile.clear(); }
/** * METHOD TO DO * * @param phaseNumber PARAMETER TO DO * @throws IOException EXCEPTION TO DO * @throws SimpleXAResourceException EXCEPTION TO DO */ public synchronized void clear( int phaseNumber ) throws IOException, SimpleXAResourceException { if (currentPhase != null) { throw new IllegalStateException( "StringPool already has a current phase." ); } openMetarootFile(true); synchronized (committedPhaseLock) { committedPhaseToken = new Phase().use(); } this.phaseNumber = phaseNumber; phaseIndex = 1; avlFile.clear(); gNodeToDataFile.clear(); for (int i = 0; i < NR_BLOCK_FILES; ++i) { blockFiles[i].clear(); } new Phase(); }