} else {
base = new DigestOutputStream(
new FileOutputStream(localFile), digest);
}
if (lineFeed != null) {
base = new LineOutputStream(base, lineFeed);
}
BinaryCheckOutputStream out = new BinaryCheckOutputStream(base);
switch (a.getPreferredAccess()) {
case SPOOL:
a.spool(out);