Java Doc for FileImageReader.java in  » GIS » GeoTools-2.4.1 » org » geotools » image » io » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.image.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Constructor Summary
public  FileImageReader(ImageReaderSpi spi)
     Constructs a new image reader.

Method Summary
protected  voidclose()
     Deletes the temporary file, if any.
protected  FilegetInputFile()
     Returns the as a file.
public  StringgetURLEncoding()
     Returns the encoding used for . The default implementation returns "UTF-8" in all cases.
public  booleanisRandomAccessEasy(int imageIndex)
     Returns true since image readers backed by File object usually supports random access efficiently.
protected  booleanisTemporaryFile()
     Returns true if the file given by FileImageReader.getInputFile is a temporary file.


Constructor Detail
FileImageReader
public FileImageReader(ImageReaderSpi spi)(Code)
Constructs a new image reader.
Parameters:
  provider - The ImageReaderSpi that is invoking this constructor,or null if none.




Method Detail
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.



isTemporaryFile
protected boolean isTemporaryFile()(Code)
Returns true if the file given by FileImageReader.getInputFile is a temporary file.



Fields inherited from org.geotools.image.io.StreamImageReader
protected Object closeOnReset(Code)(Java Doc)

Methods inherited from org.geotools.image.io.StreamImageReader
protected void close() throws IOException(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
protected InputStream getInputStream() throws IllegalStateException, IOException(Code)(Java Doc)
protected long getStreamLength() throws IOException(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)(Code)(Java Doc)

Fields inherited from org.geotools.image.io.GeographicImageReader
final static Logger LOGGER(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.