📄 rawbinaryimagereader.spi.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:21 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>RawBinaryImageReader.Spi (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.image.io.RawBinaryImageReader.Spi class"><META NAME="keywords" CONTENT="imageSize"><META NAME="keywords" CONTENT="padValue"><META NAME="keywords" CONTENT="dataType"><META NAME="keywords" CONTENT="getDescription()"><META NAME="keywords" CONTENT="canDecodeInput()"><META NAME="keywords" CONTENT="createReaderInstance()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="RawBinaryImageReader.Spi (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RawBinaryImageReader.Spi.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/image/io/RawBinaryImageReadParam.html" title="class in org.geotools.image.io"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="RawBinaryImageReader.Spi.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.image.io</FONT><BR>Class RawBinaryImageReader.Spi</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/IIOServiceProvider.html" title="class or interface in javax.imageio.spi">IIOServiceProvider</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderWriterSpi.html" title="class or interface in javax.imageio.spi">ImageReaderWriterSpi</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderSpi.html" title="class or interface in javax.imageio.spi">ImageReaderSpi</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>RawBinaryImageReader.Spi</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/RegisterableService.html" title="class or interface in javax.imageio.spi">RegisterableService</A></DD></DL><DL><DT><B>Enclosing class:</B><DD><A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io">RawBinaryImageReader</A></DD></DL><HR><DL><DT>public static class <B>RawBinaryImageReader.Spi</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderSpi.html" title="class or interface in javax.imageio.spi">ImageReaderSpi</A></DL><P>Service provider interface (SPI) for <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><CODE>RawBinaryImageReader</CODE></A>s. This SPI provides all necessary implementations for creating default <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><CODE>RawBinaryImageReader</CODE></A>. Subclasses only have to set some fields at construction time, e.g.: <blockquote><pre> public final class CustomBinaryImageReaderSpi extends RawBinaryImageReader.Spi { public CustomBinaryImageReaderSpi() { super("MyRAW", "image/raw-perso"); <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/IIOServiceProvider.html#vendorName" title="class or interface in javax.imageio.spi"><CODE>vendorName</CODE></A> = "Institut de Recherche pour le D関eloppement"; <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/IIOServiceProvider.html#version" title="class or interface in javax.imageio.spi"><CODE>version</CODE></A> = "1.0"; <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#dataType"><CODE>dataType</CODE></A> = <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/DataBuffer.html#TYPE_SHORT" title="class or interface in java.awt.image"><CODE>DataBuffer.TYPE_SHORT</CODE></A>; <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#imageSize"><CODE>imageSize</CODE></A> = new <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Dimension.html" title="class or interface in java.awt"><CODE>Dimension</CODE></A>(400,600); <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#padValue"><CODE>padValue</CODE></A> = 9999; } } </pre></blockquote> (Note: fields <code>vendorName</code> and <code>version</code> are only informatives). There is no need to override any method in this example. However, developers can gain more control by creating subclasses of <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><CODE>RawBinaryImageReader</CODE></A> <strong>and</strong> <code>Spi</code> and overriding some of their methods.<P><P><DL><DT><B>Author:</B></DT> <DD>Martin Desruisseaux</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#dataType">dataType</A></B></CODE><BR> The default data type. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Dimension.html" title="class or interface in java.awt">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#imageSize">imageSize</A></B></CODE><BR> The expected image size, or <code>null</code> if unknow. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#padValue">padValue</A></B></CODE><BR> The pad value. </TD></TR></TABLE> <A NAME="fields_inherited_from_class_ImageReaderSpi"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderSpi.html" title="class or interface in javax.imageio.spi">ImageReaderSpi</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderSpi.html#inputTypes" title="class or interface in javax.imageio.spi">inputTypes</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderSpi.html#STANDARD_INPUT_TYPE" title="class or interface in javax.imageio.spi">STANDARD_INPUT_TYPE</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderSpi.html#writerSpiNames" title="class or interface in javax.imageio.spi">writerSpiNames</A></CODE></TD></TR></TABLE> <A NAME="fields_inherited_from_class_ImageReaderWriterSpi"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -