public class RLEImageReader extends ImageReader
Modifier and Type | Field and Description |
---|---|
private byte[] |
buf |
private int |
bufLen |
private long |
bufOff |
private int |
bufPos |
private int[] |
header |
private long |
headerPos |
private int |
height |
private ImageInputStream |
iis |
private static Logger |
LOG |
private static String |
MISMATCH_NUM_RLE_SEGMENTS |
private static String |
UNKNOWN_IMAGE_TYPE |
private static String |
UNSUPPORTED_DATA_TYPE |
private int |
width |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
Modifier | Constructor and Description |
---|---|
protected |
RLEImageReader(ImageReaderSpi originatingProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReadRaster() |
private void |
checkIndex(int imageIndex) |
private void |
fillBuffer() |
private BufferedImage |
getDestination(ImageReadParam param) |
private WritableRaster |
getDestinationRaster(ImageReadParam param) |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch) |
IIOMetadata |
getStreamMetadata() |
int |
getWidth(int imageIndex) |
private byte |
nextByte() |
private void |
read(byte[][] bands) |
private void |
read(byte[] data,
int pos,
int len) |
private void |
read(DataBuffer db) |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
private void |
read(short[] data) |
private void |
read(short[] data,
int pos,
int len,
int shift) |
Raster |
readRaster(int imageIndex,
ImageReadParam param) |
private void |
readRLEHeader(int numSegments) |
private void |
resetInternalState() |
private void |
seekSegment(int seg) |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata) |
private void |
unrle(int seg,
byte[] data) |
private void |
unrle(int seg,
short[] data) |
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDefaultReadParam, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setLocale
private static final String UNKNOWN_IMAGE_TYPE
private static final String UNSUPPORTED_DATA_TYPE
private static final String MISMATCH_NUM_RLE_SEGMENTS
private final int[] header
private final byte[] buf
private long headerPos
private long bufOff
private int bufPos
private int bufLen
private ImageInputStream iis
private int width
private int height
protected RLEImageReader(ImageReaderSpi originatingProvider)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class ImageReader
private void resetInternalState()
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
public boolean canReadRaster()
canReadRaster
in class ImageReader
public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
private void checkIndex(int imageIndex)
private BufferedImage getDestination(ImageReadParam param)
private WritableRaster getDestinationRaster(ImageReadParam param)
private void read(DataBuffer db) throws IOException
IOException
private void read(byte[][] bands) throws IOException
IOException
private void read(short[] data) throws IOException
IOException
private void seekSegment(int seg) throws IOException
IOException
private void readRLEHeader(int numSegments) throws IOException
IOException
private void unrle(int seg, byte[] data) throws IOException
IOException
private void read(byte[] data, int pos, int len) throws IOException
IOException
private void unrle(int seg, short[] data) throws IOException
IOException
private void read(short[] data, int pos, int len, int shift) throws IOException
IOException
private void fillBuffer() throws IOException
IOException
private byte nextByte() throws IOException
IOException
Copyright © 2017 dcm4che.org. All rights reserved.