public class ClassA {
public void makeStream (File file) {
FileInputStream stream = null;
try {
stream = new FileInputStream(file);
stream.read();
}
catch (IOException e) {
}
finally {
if (stream != null) {
try {
stream.close();
}
catch(IOException e) {
}
}
}
}
}
|
|