inputstream.html
来自「API資料大全」· HTML 代码 · 共 1,257 行 · 第 1/5 页
HTML
1,257 行
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/io/InputStream.html">InputStream</A> in <A HREF="../../../java/io/package-summary.html">java.io</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Subclasses of <A HREF="../../../java/io/InputStream.html">InputStream</A> in <A HREF="../../../java/io/package-summary.html">java.io</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/BufferedInputStream.html">BufferedInputStream</A></B></CODE><BR> A <code>BufferedInputStream</code> adds functionality to another input stream-namely, the ability to buffer the input and to support the <code>mark</code> and <code>reset</code> methods.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/ByteArrayInputStream.html">ByteArrayInputStream</A></B></CODE><BR> A <code>ByteArrayInputStream</code> contains an internal buffer that contains bytes that may be read from the stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/DataInputStream.html">DataInputStream</A></B></CODE><BR> A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/FileInputStream.html">FileInputStream</A></B></CODE><BR> A <code>FileInputStream</code> obtains input bytes from a file in a file system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/FilterInputStream.html">FilterInputStream</A></B></CODE><BR> A <code>FilterInputStream</code> contains some other input stream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/LineNumberInputStream.html">LineNumberInputStream</A></B></CODE><BR> <B>Deprecated.</B> <I>This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/ObjectInputStream.html">ObjectInputStream</A></B></CODE><BR> An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/PipedInputStream.html">PipedInputStream</A></B></CODE><BR> A piped input stream should be connected to a piped output stream; the piped input stream then provides whatever data bytes are written to the piped output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/PushbackInputStream.html">PushbackInputStream</A></B></CODE><BR> A <code>PushbackInputStream</code> adds functionality to another input stream, namely the ability to "push back" or "unread" one byte.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/SequenceInputStream.html">SequenceInputStream</A></B></CODE><BR> A <code>SequenceInputStream</code> represents the logical concatenation of other input streams.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/io/StringBufferInputStream.html">StringBufferInputStream</A></B></CODE><BR> <B>Deprecated.</B> <I>This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via the <code>StringReader</code> class.</I></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Fields in <A HREF="../../../java/io/package-summary.html">java.io</A> declared as <A HREF="../../../java/io/InputStream.html">InputStream</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/io/InputStream.html">InputStream</A></CODE></FONT></TD><TD><CODE><B>FilterInputStream.</B><B><A HREF="../../../java/io/FilterInputStream.html#in">in</A></B></CODE><BR> The input stream to be filtered.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/io/package-summary.html">java.io</A> with parameters of type <A HREF="../../../java/io/InputStream.html">InputStream</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/FilterInputStream.html#FilterInputStream(java.io.InputStream)">FilterInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in)</CODE><BR> Creates a <code>FilterInputStream</code> by assigning the argument <code>in</code> to the field <code>this.in</code> so as to remember it for later use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/StreamTokenizer.html#StreamTokenizer(java.io.InputStream)">StreamTokenizer</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> is)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example: <blockquote><pre> Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r); </pre></blockquote></I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/ObjectInputStream.html#ObjectInputStream(java.io.InputStream)">ObjectInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in)</CODE><BR> Create an ObjectInputStream that reads from the specified InputStream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/InputStreamReader.html#InputStreamReader(java.io.InputStream)">InputStreamReader</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in)</CODE><BR> Create an InputStreamReader that uses the default character encoding.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/InputStreamReader.html#InputStreamReader(java.io.InputStream, java.lang.String)">InputStreamReader</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in, <A HREF="../../../java/lang/String.html">String</A> enc)</CODE><BR> Create an InputStreamReader that uses the named character encoding.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/PushbackInputStream.html#PushbackInputStream(java.io.InputStream, int)">PushbackInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in, int size)</CODE><BR> Creates a <code>PushbackInputStream</code> with a pushback buffer of the specified <code>size</code>, and saves its argument, the input stream <code>in</code>, for later use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/PushbackInputStream.html#PushbackInputStream(java.io.InputStream)">PushbackInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in)</CODE><BR> Creates a <code>PushbackInputStream</code> and saves its argument, the input stream <code>in</code>, for later use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/BufferedInputStream.html#BufferedInputStream(java.io.InputStream)">BufferedInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in)</CODE><BR> Creates a <code>BufferedInputStream</code> and saves its argument, the input stream <code>in</code>, for later use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/BufferedInputStream.html#BufferedInputStream(java.io.InputStream, int)">BufferedInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in, int size)</CODE><BR> Creates a <code>BufferedInputStream</code> with the specified buffer size, and saves its argument, the input stream <code>in</code>, for later use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/SequenceInputStream.html#SequenceInputStream(java.io.InputStream, java.io.InputStream)">SequenceInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> s1, <A HREF="../../../java/io/InputStream.html">InputStream</A> s2)</CODE><BR> Initializes a newly created <code>SequenceInputStream</code> by remembering the two arguments, which will be read in order, first <code>s1</code> and then <code>s2</code>, to provide the bytes to be read from this <code>SequenceInputStream</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/DataInputStream.html#DataInputStream(java.io.InputStream)">DataInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in)</CODE><BR> Creates a <code>FilterInputStream</code> and saves its argument, the input stream <code>in</code>, for later use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/io/LineNumberInputStream.html#LineNumberInputStream(java.io.InputStream)">LineNumberInputStream</A></B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in)</CODE><BR> <B>Deprecated.</B> Constructs a newline number input stream that reads its input from the specified input stream.</TD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?