再问一个小问题

hu_zy 2003-10-17 08:12:08
DataInputStream
和InputStream的区别是什么?
哪里可以找到说明的文档》?
...全文
53 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
moke33 2003-10-19
  • 打赏
  • 举报
回复
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.

This abstract class(InputStream) 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
ludf 2003-10-17
  • 打赏
  • 举报
回复
InputStream和OutputStream读写以单字节为基础的字节数据流;
DataInputStream和DataOutputStream 可以完成对所有基本Java类型的读写;


InputStream类 :是一个抽象类.用于建立输入流,字节输入流的类的父类. read方法用来从输入流中读取数据
DataInputStream类:实现了DataInput接口,可用来读取格式化数据,允许应用程序从输入流中读取Java原始数据类型


good luck
klbt 2003-10-17
  • 打赏
  • 举报
回复
不清楚,帮你顶。

13,100

社区成员

发帖
与我相关
我的任务
社区描述
Java J2ME
社区管理员
  • J2ME社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧