📄 rawbinaryimagereader.spi.html
字号:
<A NAME="RawBinaryImageReader.Spi()"><!-- --></A><H3>RawBinaryImageReader.Spi</H3><PRE>public <B>RawBinaryImageReader.Spi</B>()</PRE><DL><DD>Construct a new SPI with name "raw" and MIME type "image/raw".<P></DL><HR><A NAME="RawBinaryImageReader.Spi(java.lang.String, java.lang.String)"><!-- --></A><H3>RawBinaryImageReader.Spi</H3><PRE>public <B>RawBinaryImageReader.Spi</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> mime)</PRE><DL><DD>Construct a new SPI for <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><CODE>RawBinaryImageReader</CODE></A>. This constructor initialize the following fields to default values: <ul> <li>Image format names (<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderWriterSpi.html#names" title="class or interface in javax.imageio.spi"><CODE>ImageReaderWriterSpi.names</CODE></A>): An array of lenght 1 containing the <code>name</code> argument. <li>MIME type (<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderWriterSpi.html#MIMETypes" title="class or interface in javax.imageio.spi"><CODE>ImageReaderWriterSpi.MIMETypes</CODE></A>): An array of length 1 containing the <code>mime</code> argument. <li>File suffixes (<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderWriterSpi.html#suffixes" title="class or interface in javax.imageio.spi"><CODE>ImageReaderWriterSpi.suffixes</CODE></A>): "<code>.raw</code>" (uppercase and lowercase).</li> <li>Input types (<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"><CODE>ImageReaderSpi.inputTypes</CODE></A>): <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/stream/ImageInputStream.html" title="class or interface in javax.imageio.stream"><CODE>ImageInputStream</CODE></A>.</li> </ul><P><DT><B>Parameters:</B><DD><CODE>name</CODE> - Format name, or <code>null</code> to let <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderWriterSpi.html#names" title="class or interface in javax.imageio.spi"><CODE>ImageReaderWriterSpi.names</CODE></A> unset.<DD><CODE>mime</CODE> - MIME type, or <code>null</code> to let <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/spi/ImageReaderWriterSpi.html#MIMETypes" title="class or interface in javax.imageio.spi"><CODE>ImageReaderWriterSpi.MIMETypes</CODE></A> unset.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getDescription(java.util.Locale)"><!-- --></A><H3>getDescription</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDescription</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</PRE><DL><DD>Returns a brief, human-readable description of this service provider and its associated implementation. The resulting string should be localized for the supplied locale, if possible.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>locale</CODE> - A Locale for which the return value should be localized.<DT><B>Returns:</B><DD>A String containing a description of this service provider.</DL></DD></DL><HR><A NAME="canDecodeInput(java.lang.Object)"><!-- --></A><H3>canDecodeInput</H3><PRE>public boolean <B>canDecodeInput</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> source) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns <code>false</code>, since "raw" format can potentially attempt to read nearly any stream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The input source to be decoded.<DT><B>Returns:</B><DD><code>false</code> in order to avoid being invoked in preference to a closer match.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while reading the stream.</DL></DD></DL><HR><A NAME="createReaderInstance()"><!-- --></A><H3>createReaderInstance</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageReader.html" title="class or interface in javax.imageio">ImageReader</A> <B>createReaderInstance</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns an instance of the image reader implementation associated with this service provider. The default implementation returns a new <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><CODE>RawBinaryImageReader</CODE></A> instance. Subclasses should override this method instead of <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#createReaderInstance(java.lang.Object)"><CODE>createReaderInstance(Object)</CODE></A> for constructing <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><CODE>RawBinaryImageReader</CODE></A> subclass.<P><DD><DL><DT><B>Returns:</B><DD>An image reader instance.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the attempt to instantiate the reader fails.</DL></DD></DL><HR><A NAME="createReaderInstance(java.lang.Object)"><!-- --></A><H3>createReaderInstance</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/ImageReader.html" title="class or interface in javax.imageio">ImageReader</A> <B>createReaderInstance</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> extension) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns an instance of the ImageReader implementation associated with this service provider. The optional <code>extension</code> argument may be one of the following classes: <ul> <li><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> for specifying the image size.</li> </ul> The default implementation call <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.Spi.html#createReaderInstance()"><CODE>createReaderInstance()</CODE></A> and set the resulting object's internal fields according the <code>extension</code> argument.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>extension</CODE> - An optional extension object, which may be null.<DT><B>Returns:</B><DD>An image reader instance.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the attempt to instantiate the reader fails.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_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_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -