byte[] rec = this.buffer.readRecord();
/** * Get the next record in this tar archive. This will skip * over any remaining data in the current entry, if there * is one, and place the input stream at the header of the * next entry. * If there are no more entries in the archive, null will * be returned to indicate that the end of the archive has * been reached. * * @return The next header in the archive, or null. * @throws IOException on error */ private byte[] getRecord() throws IOException { if (hasHitEOF) { return null; } byte[] headerBuf = buffer.readRecord(); if (headerBuf == null) { if (debug) { System.err.println("READ NULL RECORD"); } hasHitEOF = true; } else if (buffer.isEOFRecord(headerBuf)) { if (debug) { System.err.println("READ EOF RECORD"); } hasHitEOF = true; } return hasHitEOF ? null : headerBuf; }
byte[] rec = buffer.readRecord();
byte[] headerBuf = this.buffer.readRecord();
byte[] rec = this.buffer.readRecord();
byte[] rec = this.buffer.readRecord();
byte[] rec = this.buffer.readRecord();
byte[] rec = this.buffer.readRecord();
byte[] rec = this.buffer.readRecord();
byte[] headerBuf = this.buffer.readRecord();
byte[] headerBuf = this.buffer.readRecord();
byte[] headerBuf = this.buffer.readRecord();
byte[] headerBuf = this.buffer.readRecord();
byte[] headerBuf = this.buffer.readRecord();