+ in.close();
+
+ final FileInputStream fis = new FileInputStream(tmp);
+ return new MarkableFileInputStream(fis) {
+ @Override
+ public void close() throws IOException {
+ try {
+ try {
+ super.close();
+ } finally {
+ try {
+ fis.close();
+ } catch (IOException e) {
+ }
+ }
+ } finally {
+ tmp.delete();
+ }