Lines Matching defs:stream
116 * Call when you have successfully finished writing to the stream
119 * will return the new file stream.
134 * Call when you have failed for some reason at writing to the stream
136 * write stream, and roll back to the previous state of the file.
176 FileInputStream stream = openRead();
179 int avail = stream.available();
182 int amt = stream.read(data, pos, data.length-pos);
191 avail = stream.available();
199 stream.close();
203 static boolean sync(FileOutputStream stream) {
205 if (stream != null) {
206 stream.getFD().sync();