Slow readng tzdb.dat
Tom Hawtin
tom.hawtin at oracle.com
Wed Oct 9 18:55:51 UTC 2013
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
More information about the core-libs-dev
mailing list