InputStream与DataInputStream区别
来源:互联网 发布:淘宝号登录 编辑:程序博客网 时间:2024/05/18 08:13
DataInputStream类继承了InputStream,同是实现了DataInput接口,也就是说比普通的InputStream多一些方法。
增加方法如下:
public abstract void readFully(byte abyte0[])
throws IOException;
public abstract void readFully(byte abyte0[], int i, int j)
throws IOException;
public abstract int skipBytes(int i)
throws IOException;
public abstract boolean readBoolean()
throws IOException;
public abstract byte readByte()
throws IOException;
public abstract int readUnsignedByte()
throws IOException;
public abstract short readShort()
throws IOException;
public abstract int readUnsignedShort()
throws IOException;
public abstract char readChar()
throws IOException;
public abstract int readInt()
throws IOException;
public abstract long readLong()
throws IOException;
public abstract float readFloat()
throws IOException;
public abstract double readDouble()
throws IOException;
public abstract String readUTF()
throws IOException;
增加方法如下:
public abstract void readFully(byte abyte0[])
throws IOException;
public abstract void readFully(byte abyte0[], int i, int j)
throws IOException;
public abstract int skipBytes(int i)
throws IOException;
public abstract boolean readBoolean()
throws IOException;
public abstract byte readByte()
throws IOException;
public abstract int readUnsignedByte()
throws IOException;
public abstract short readShort()
throws IOException;
public abstract int readUnsignedShort()
throws IOException;
public abstract char readChar()
throws IOException;
public abstract int readInt()
throws IOException;
public abstract long readLong()
throws IOException;
public abstract float readFloat()
throws IOException;
public abstract double readDouble()
throws IOException;
public abstract String readUTF()
throws IOException;
- InputStream与DataInputStream区别
- InputStream与DataInputStream区别
- InputStream与DataInputStream区别
- InputStream与DataInputStream的区别
- FileReader与InputStream的区别!
- InputStream与Reader的区别
- InputStream 与Reader的区别
- Java中Inputstream与Reader的区别
- Java 中InputStream与Reader的区别
- Reader/Writer与InputStream/OutputStream的区别
- Java 中InputStream与Reader的区别
- Java中Inputstream与Reader的区别
- Java中Inputstream与Reader的区别
- Java 中InputStream与Reader的区别
- Java 中InputStream与Reader的区别
- Java 中InputStream与Reader的区别
- Java 中InputStream与Reader的区别
- java bufferedreader 与inputstream的区别
- Windows平台下fwrite函数0x0A变成0x0D 0x0A
- HDU-1431-素数回文
- windows下cmd脚本去掉打印输出方法
- Java: How to convert int[] to byte[]
- C++的临时对象
- InputStream与DataInputStream区别
- 表格的操作包括:标记行、移动行、删除行、插入行
- c#的udp通讯代码
- 21天学通JAVA——学习笔记
- jdk时区相差8小时 .
- 虚拟机下系统键盘无法使用
- 《PicSi的实现细节》 第2节 窗口类CAboutDlg的定义
- jquery_easyui_中文解析
- 采样率和比特率和位数