On 09/10/2013 19:00, Dr Heinz M. Kabutz wrote:
That way, the resources are closed in the reverse order in which they are opened and an exception in the middle of the creation chain does not prevent the earlier resources from being closed.
But there is only one resource.
File tzdb = new File(libDir, "tzdb.dat");
try (InputStream rawIn = new FileInputStream(tzdb)) {
DataInputStream dis = new DataInputStream(
new BufferedInputStream(rawIn, 32000)
);
Tom
