- try{
- if(bufr!=null)
- bufr.myClose();
- }catch(IOException e){
- throw new RuntimeException("Reader Error");
- }
- try{
- if(bufr!=null)
- bufw.close();
- }catch(IOException e){
- throw new RuntimeException("Writer Error");
- }
- }
复制代码 try {
bufos.close();
bufis.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
分开写和写在一起有区别吗? |
|