A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© libin 中级黑马   /  2015-7-23 13:33  /  568 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

可以操作基本数据类型的数据的流对象。
DateInputStream  DateOutputStream
DateInputStream(InputStream in)使用指定的底层InputStream创建一个DateInputStream
各种读方法
法摘要
int
[url=http://bbs.itheima.com/forum.php?mod=post&action=newthread&fid=231#read(byte[])]read[/url](byte[] b)
从包含的输入流中读取一定数量的字节,并将它们存储到缓冲区数组 b 中。
int
[url=http://bbs.itheima.com/forum.php?mod=post&action=newthread&fid=231#read(byte[], int, int)]read[/url](byte[] b, int off, int len)
从包含的输入流中将最多 len 个字节读入一个 byte 数组中。
boolean
byte
char
double
float
void
[url=http://bbs.itheima.com/forum.php?mod=post&action=newthread&fid=231#readFully(byte[])]readFully[/url](byte[] b)
void
[url=http://bbs.itheima.com/forum.php?mod=post&action=newthread&fid=231#readFully(byte[], int, int)]readFully[/url](byte[] b, int off, int len)
int
long
short
int
int
String
static String
readUTF(DataInput in)
从流 in 中读取用 UTF-8 修改版格式编码的 Unicode 字符格式的字符串;然后以 String 形式返回此字符串。
int
skipBytes(int n) 跳过n个字节

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马