public class MSPReader extends BaseImageReader implements JImageReader
Modifier and Type | Class and Description |
---|---|
class |
MSPReader.ScanLine |
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
Constructor and Description |
---|
MSPReader(ImageReaderSpi originatingProvider) |
MSPReader(String string)
Constructor takes a String representation of the MSP file location.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canReadImage(ImageInputStream iis)
Utility method to determine if we can read a given input.
|
int |
getHeight()
Returns the height of the image in pixels.
|
String |
getMetadataSummary()
Returns a summary of the image's metadata.
|
int |
getWidth()
Returns the width of the image in pixels.
|
void |
parse()
Parses the MSP that has been read into the buffer.
|
String |
toString() |
createBufferedImage, getHeight, getImage, getImageMetadata, getImageTypes, getNumImages, getStreamMetadata, getWidth, processFile, read, readFile, readFile
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, 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, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setInput, setInput, setInput, setLocale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getImage, processFile
public MSPReader(ImageReaderSpi originatingProvider)
public MSPReader(String string)
string
- - A String representing the MSP file location.public static boolean canReadImage(ImageInputStream iis)
iis
- The ImageInputStream that is being checked.public void parse() throws IllegalDataException
parse
in class BaseImageReader
IllegalDataException
- If parsing cannot be completed due to illegal data.public int getWidth()
BaseImageReader
getWidth
in interface JImageReader
getWidth
in class BaseImageReader
public int getHeight()
BaseImageReader
getHeight
in interface JImageReader
getHeight
in class BaseImageReader
public String getMetadataSummary()
JImageReader
getMetadataSummary
in interface JImageReader
Copyright © 2020. All rights reserved.