code: public Resource getResource(String path, long offset) throws IOException {
  		File arc = new File(path);
  		if(!arc.exists()) {
  			String base = arc.getName();
  			arc = new File(arcDir,base);
  			if(!arc.exists()) {
  				if(base.endsWith(ArchiveFileConstants.OCCUPIED_SUFFIX)) {
  					String newBase = base.substring(0,base.length() -
  							ArchiveFileConstants.OCCUPIED_SUFFIX.length());
  					arc = new File(arcDir,newBase);
  				}
  			}
  		}
  		LOGGER.info("Retrieving record at " + offset + " in " + 
  				arc.getAbsolutePath()); 
  		try {
  			return ResourceFactory.getResource(arc, offset);
  		} catch (ResourceNotAvailableException e1) {
  			throw new IOException(e1.getMessage());
  		}
  	}
docs: transform an ARCLocation into a Resource. Be sure to call close() on it
  when processing is finished.
  @param path to ARC file
  @param offset within file where record begins
  @return the Resource for the location
  @throws IOException for usual reasons