← 返回首页
InputStream (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. InputStream()
  5. Method Details
    1. nullInputStream()
    2. read()
    3. read(byte[])
    4. read(byte[], int, int)
    5. readAllBytes()
    6. readNBytes(int)
    7. readNBytes(byte[], int, int)
    8. skip(long)
    9. skipNBytes(long)
    10. available()
    11. close()
    12. mark(int)
    13. reset()
    14. markSupported()
    15. transferTo(OutputStream)
Hide sidebar  Show sidebar

Class InputStream

java.lang.Object
java.io.InputStream
All Implemented Interfaces: Closeable, AutoCloseable Direct Known Subclasses: AudioInputStream, ByteArrayInputStream, FileInputStream, FilterInputStream, ObjectInputStream, PipedInputStream, SequenceInputStream, StringBufferInputStream
public abstract class InputStream extends Object implements Closeable
This abstract class is the superclass of all classes representing an input stream of bytes.

Applications that need to define a subclass of InputStream must always provide a method that returns the next byte of input.

Since: 1.0 See Also:

Scripting on this page tracks web page traffic, but does not change the content in any way.