if (a.getPreferredAccess() == AccessType.STREAM) {
base = a.getInputStream();
} else {
tmpFile = File.createTempFile("vltfs", ".spool");
FileOutputStream out = new FileOutputStream(tmpFile);
a.spool(out);
out.close();
base = new FileInputStream(tmpFile);
}
} catch (RepositoryException e) {
throw new IOException(e.toString());