⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extending.fm6.html

📁 IMAGEIO package 的使用说明jdk1.4新出的 包。有效改进图片读写方式。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><title>Java Image I/O API Guide: 4 - Writing Image I/O Plug-ins</title></head><body bgcolor="#ffffff"> <table summary="layout" width="100%"><tr><td><!-- Bug in Communicator w/font: NavBar text disappears for Times 14pt pref. --><!-- font size="-1" --> <a href="imageio_guideTOC.fm.html" tppabs="http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/imageio_guideTOC.fm.html">CONTENTS</a> | <a href="extending.fm5.html" tppabs="http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/extending.fm5.html">PREV</a> | NEXT <!-- | <a href="copyright.fm.html">INDEX</a>  --><!-- /font --></td><td align=right><i>Java<sup><font size="-1">TM</font></sup></font> Image I/O API Guide</i></td></tr></table><br> <p><hr size="8" width="35%" align="left" noshade><h2><a name="999261"><i>4.6	</i> Writing Stream Plug-ins</a></h2><blockquote><a name="999215"><!-- --></a>The standard classes in the <code>javax.imageio.stream</code> package are able to create <code>ImageInputStream</code>s and <code>ImageOutputStream</code>s that:<p></blockquote><blockquote><ul><li><a name="999220"><!-- --></a>Read from a <code>File</code></li><li><a name="999221"><!-- --></a>Read from an <code>InputStream</code>, using a temporary <code>File</code> as a cache</li><li><a name="999222"><!-- --></a>Read from an <code>InputStream</code>, using a byte array in memory as a cache</li><li><a name="999225"><!-- --></a>Write to a <code>File</code></li><li><a name="999228"><!-- --></a>Write to an <code>OutputStream</code>, using a temporary <code>File</code> as a cache</li><li><a name="999229"><!-- --></a>Write to an <code>OutputStream</code>, using a byte array in memory as a cache</li></ul></blockquote><blockquote><a name="999237"><!-- --></a>It is possible to write new implementations of <code>ImageInputStream</code> and InmageOutputStream that interface with other I/O primitives (for example, databases or future fast I/O interfaces). The <code>ImageInputStreamImpl</code> and <code>ImageOutputStreamImpl</code> classes provide a base for subclassing. Only a handful of methods are required to be implemented by the subclass, although it is possible to implement more for greater efficiency:<p></blockquote><blockquote><ul><li><a name="999242"><!-- --></a><code>int read()</code></li><li><a name="999250"><!-- --></a><code>int read(byte[] b, int off, int len)</code></li><li><a name="999251"><!-- --></a><code>write(int b)</code></li><li><a name="999252"><!-- --></a><code>write(byte[] b, int off, int len)</code></li><li><a name="999253"><!-- --></a><code>seek(long pos)</code></li></ul></blockquote><blockquote><a name="999254"><!-- --></a><p><a name="999226"><!-- --></a><p><a name="996883"><!-- --></a><p></blockquote><br><hr><!-- Bug in Communicator w/font: NavBar text disappears for Times 14pt pref. --><!-- font size="-1" --> <a href="imageio_guideTOC.fm.html" tppabs="http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/imageio_guideTOC.fm.html">CONTENTS</a> | <a href="extending.fm5.html" tppabs="http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/extending.fm5.html">PREV</a> | NEXT <!-- | <a href="copyright.fm.html">INDEX</a>  --><!-- /font --><hr><font size="-1"><i><A HREF="copyright.fm.html" tppabs="http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/copyright.fm.html">Copyright</a> &#169 2001 Sun Microsystems, Inc. All Rights Reserved.</i></font><!-- This HTML file was created with Quadralay WebWorks Publisher 3.5.0 --><!-- by Suzette Pelouch --><!-- Last updated: Fri Apr 27 11:23:03 2001 --> </body><script language="JavaScript" src="s_code_remote.js" tppabs="http://java.sun.com/js/omi/jsc/s_code_remote.js"></script></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -