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, setLocaleprivate 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 ImageReaderprivate void resetInternalState()
public int getNumImages(boolean allowSearch) throws IOException
getNumImages in class ImageReaderIOExceptionpublic int getWidth(int imageIndex) throws IOException
getWidth in class ImageReaderIOExceptionpublic int getHeight(int imageIndex) throws IOException
getHeight in class ImageReaderIOExceptionpublic Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes in class ImageReaderIOExceptionpublic IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata in class ImageReaderIOExceptionpublic IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata in class ImageReaderIOExceptionpublic boolean canReadRaster()
canReadRaster in class ImageReaderpublic Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster in class ImageReaderIOExceptionpublic BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read in class ImageReaderIOExceptionprivate void checkIndex(int imageIndex)
private BufferedImage getDestination(ImageReadParam param)
private WritableRaster getDestinationRaster(ImageReadParam param)
private void read(DataBuffer db) throws IOException
IOExceptionprivate void read(byte[][] bands) throws IOException
IOExceptionprivate void read(short[] data) throws IOException
IOExceptionprivate void seekSegment(int seg) throws IOException
IOExceptionprivate void readRLEHeader(int numSegments) throws IOException
IOExceptionprivate void unrle(int seg, byte[] data) throws IOException
IOExceptionprivate void read(byte[] data, int pos, int len) throws IOException
IOExceptionprivate void unrle(int seg, short[] data) throws IOException
IOExceptionprivate void read(short[] data, int pos, int len, int shift) throws IOException
IOExceptionprivate void fillBuffer() throws IOException
IOExceptionprivate byte nextByte() throws IOException
IOExceptionCopyright © 2017 dcm4che.org. All rights reserved.