TempFileInputStream
101102103104105106107108
spool(out); out.close(); if (out.isInMemory()) { return new ByteArrayInputStream(out.getData()); } else { return new TempFileInputStream(out.getFile()); } }
118119120121122123124125126127128
final long size; if (out.isInMemory()) { in = new ByteArrayInputStream(out.getData()); size = out.getData().length; } else { in = new TempFileInputStream(out.getFile()); size = out.getFile().length(); } return new VaultInputSource() { @Override