Skip to content

Commit

Permalink
close stream
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Dec 12, 2012
1 parent 3d929cd commit e06663d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package er.excel;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;

Expand Down Expand Up @@ -255,6 +256,12 @@ public boolean write(String filename) {
_workbook.write(stream);
} catch (java.io.IOException e) {
return false;
} finally {
try {
stream.close();
} catch (IOException e) {
// ignore
}
}
return true;
}
Expand Down

0 comments on commit e06663d

Please sign in to comment.