code: public TarEntry getNextEntry() throws IOException {
  		closeCurrentEntry();
  
  		byte[] header = new byte[TarConstants.HEADER_BLOCK];
  		byte[] theader = new byte[TarConstants.HEADER_BLOCK];
  		int tr = 0;
  
  		// Read full header
  		while (tr < TarConstants.HEADER_BLOCK) {
  			int res = read(theader, 0, TarConstants.HEADER_BLOCK - tr);
  
  			if (res < 0) {
  				break;
  			}
  
  			System.arraycopy(theader, 0, header, tr, res);
  			tr += res;
  		}
  
  		// Check if record is null
  		boolean eof = true;
  		for (byte b : header) {
  			if (b != 0) {
  				eof = false;
  				break;
  			}
  		}
  
  		if (!eof) {
  			currentEntry = new TarEntry(header);
  		}
  
  		return currentEntry;
  	}
docs: Returns the next entry in the tar file
  
  @return TarEntry
  @throws IOException