Module openj9.dtfj

Class AddressSpaceImageInputStream

java.lang.Object
javax.imageio.stream.ImageInputStreamImpl
com.ibm.dtfj.corereaders.zos.dumpreader.AddressSpaceImageInputStream
All Implemented Interfaces:
Closeable, DataInput, AutoCloseable, ImageInputStream

public final class AddressSpaceImageInputStream extends ImageInputStreamImpl
This class implements ImageInputStream for an AddressSpace. You can use this to read data from an AddressSpace as an alternative to using the methods defined in AddressSpace itself. ImageInputStream provides a rich set of read methods. To use it you must first call seek() with the address you wish to read from and then call the appropriate read method.

Note that at present it doesn't fully meet the ImageInputStream semantics in that it won't skip over gaps in the AddressSpace seamlessly. I might add that functionality if the demand is there. Also length returns -1 since it doesn't make sense to return a real value (?).