public class ClassA {
public void makeStream (OutputStream oStream) {
OutputStreamWriter stream = null;
try {
stream = new OutputStreamWriter(oStream);
stream.write(7);
}
catch (IOException e) {
}
finally {
if (stream != null) {
try {
stream.close();
}
catch(IOException e) {
}
}
}
}
}
|
|