Package ghidra.program.model.data
Class MemBufferImageInputStream
- java.lang.Object
-
- javax.imageio.stream.ImageInputStreamImpl
-
- ghidra.program.model.data.MemBufferImageInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.DataInput
,java.lang.AutoCloseable
,javax.imageio.stream.ImageInputStream
public class MemBufferImageInputStream extends javax.imageio.stream.ImageInputStreamImpl
ImageInputStream for reading images that wraps a MemBuffer to get the bytes. Adds a method to find out how many bytes were read by the imageReader to read the image.
-
-
Constructor Summary
Constructors Constructor Description MemBufferImageInputStream(MemBuffer buf, java.nio.ByteOrder byteOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConsumedLength()
int
read()
int
read(byte[] b, int off, int len)
-
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, close, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes
-
-
-
-
Constructor Detail
-
MemBufferImageInputStream
public MemBufferImageInputStream(MemBuffer buf, java.nio.ByteOrder byteOrder)
-
-
Method Detail
-
getConsumedLength
public int getConsumedLength()
-
read
public int read() throws java.io.IOException
- Specified by:
read
in interfacejavax.imageio.stream.ImageInputStream
- Specified by:
read
in classjavax.imageio.stream.ImageInputStreamImpl
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Specified by:
read
in interfacejavax.imageio.stream.ImageInputStream
- Specified by:
read
in classjavax.imageio.stream.ImageInputStreamImpl
- Throws:
java.io.IOException
-
-