Module openj9.dtfj

Class ClosingFileReader

All Implemented Interfaces:
Closeable, DataInput, AutoCloseable, ImageInputStream

public class ClosingFileReader extends FileImageInputStream
A wrapper around the functionality that we require from RandomAccessFiles but with the added auto-closing functionality that we require. Since it is not always easy to determine who "owns" a file and we do not want to introduce the concept of state, this class will manage all such file ownership. We now also extend javax.imageio.stream.ImageInputStreamImpl as a convenient common interface that we can share with the zebedee corefile reader.