put close() in a finally block.
@@ -17,6 +17,9 @@ public static void main(
throws Exception
{
FileInputStream fIn = new FileInputStream(args[0]);
+
+ try
+ {
ASN1InputStream bIn = new ASN1InputStream(fIn);
Object obj = null;
@@ -24,7 +27,10 @@ public static void main(
{
System.out.println(ASN1Dump.dumpAsString(obj));
}
-
+ }
+ finally
+ {
fIn.close();
}
}
+}
