/** * Flush the current data block if it has any data in it. */ void flushBlock() throws IOException { if (debug) { System.err.println("TarBuffer.flushBlock() called."); } if (outStream == null) { throw new IOException("writing to an input buffer"); } if (currRecIdx > 0) { writeBlock(); } }