← 返回首页
DataInputStream (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
    1. Methods declared in class FilterInputStream
    2. Methods declared in class InputStream
    3. Methods declared in class Object
  5. Constructor Details
    1. DataInputStream(InputStream)
  6. Method Details
    1. read(byte[])
    2. read(byte[], int, int)
    3. readFully(byte[])
    4. readFully(byte[], int, int)
    5. skipBytes(int)
    6. readBoolean()
    7. readByte()
    8. readUnsignedByte()
    9. readShort()
    10. readUnsignedShort()
    11. readChar()
    12. readInt()
    13. readLong()
    14. readFloat()
    15. readDouble()
    16. readLine()
    17. readUTF()
    18. readUTF(DataInput)
Hide sidebar  Show sidebar

Class DataInputStream

All Implemented Interfaces: Closeable, DataInput, AutoCloseable
public class DataInputStream extends FilterInputStream implements DataInput
A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way. An application uses a data output stream to write data that can later be read by a data input stream.

A DataInputStream is not safe for use by multiple concurrent threads. If a DataInputStream is to be used by more than one thread then access to the data input stream should be controlled by appropriate synchronization.

Since: 1.0 See Also:

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