| org.geotools.image.io.GeographicImageReader org.geotools.image.io.StreamImageReader org.geotools.image.io.FileImageReader
All known Subclasses: org.geotools.image.io.netcdf.NetcdfImageReader,
FileImageReader | abstract public class FileImageReader extends StreamImageReader (Code) | | Base class for image readers that require
File input source. If the input source
is of other kind, then the content will be copied to a temporary file. This class is used
for image formats backed by some external API (typically C/C++ libraries) working only with
files.
since: 2.4 version: $Id: FileImageReader.java 27908 2007-11-15 16:29:28Z desruisseaux $ author: Antoine Hnawia author: Martin Desruisseaux |
FileImageReader | public FileImageReader(ImageReaderSpi spi)(Code) | | Constructs a new image reader.
Parameters: provider - The ImageReaderSpi that is invoking this constructor,or null if none. |
close | protected void close() throws IOException(Code) | | Deletes the temporary file, if any.
|
getInputFile | protected File getInputFile() throws IOException(Code) | | Returns the
as a file. If the input is not a file,
then its content is copied to a temporary file and the temporary file is returned.
The as a file. throws: FileNotFoundException - if the file is not found or can not be read. throws: IOException - if a copy was necessary but failed. |
getURLEncoding | public String getURLEncoding()(Code) | | Returns the encoding used for
.
The default implementation returns
"UTF-8" in all cases. Subclasses
should override this method if
FileImageReader.getInputFile should converts
URL to
File objects using a different encoding.
|
isRandomAccessEasy | public boolean isRandomAccessEasy(int imageIndex) throws IOException(Code) | | Returns
true since image readers backed by
File object usually supports random access efficiently.
|
Methods inherited from org.geotools.image.io.GeographicImageReader | protected void checkBandIndex(int imageIndex, int bandIndex) throws IOException, IndexOutOfBoundsException(Code)(Java Doc) protected void checkImageIndex(int imageIndex) throws IOException, IndexOutOfBoundsException(Code)(Java Doc) void close() throws IOException(Code)(Java Doc) protected boolean collapseNoDataValues(boolean isZeroValid, double[] nodataValues, int unusedSpace)(Code)(Java Doc) protected static void flipVertically(ImageReadParam param, int srcHeight, Rectangle srcRegion)(Code)(Java Doc) public ImageReadParam getDefaultReadParam()(Code)(Java Doc) protected BufferedImage getDestination(int imageIndex, ImageReadParam parameters, int width, int height, SampleConverter[] converters) throws IOException(Code)(Java Doc) final IndexedResourceBundle getErrorResources()(Code)(Java Doc) public GeographicMetadata getGeographicMetadata(int imageIndex) throws IOException(Code)(Java Doc) public IIOMetadata getImageMetadata(int imageIndex) throws IOException(Code)(Java Doc) public Iterator getImageTypes(int imageIndex) throws IOException(Code)(Java Doc) public int getNumBands(int imageIndex) throws IOException(Code)(Java Doc) public int getNumImages(boolean allowSearch) throws IllegalStateException, IOException(Code)(Java Doc) protected int getRawDataType(int imageIndex) throws IOException(Code)(Java Doc) public ImageTypeSpecifier getRawImageType(int imageIndex) throws IOException(Code)(Java Doc) protected ImageTypeSpecifier getRawImageType(int imageIndex, ImageReadParam parameters, SampleConverter[] converters) throws IOException(Code)(Java Doc) public IIOMetadata getStreamMetadata() throws IOException(Code)(Java Doc) public BufferedImage read(int imageIndex) throws IOException(Code)(Java Doc) public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)(Code)(Java Doc) public void warningOccurred(LogRecord record)(Code)(Java Doc)
|
|
|