Lines Matching refs:stream
336 FileInputStream stream = new FileInputStream(file);
337 byte[] raw = readFully(stream);
341 stream.close();
595 FileOutputStream stream = new FileOutputStream(file);
599 stream.write(out.marshall());
601 stream.flush();
603 FileUtils.sync(stream);
604 stream.close();
885 static byte[] readFully(FileInputStream stream) throws java.io.IOException {
887 int avail = stream.available();
890 int amt = stream.read(data, pos, data.length-pos);
895 avail = stream.available();