黑马程序员技术交流社区

标题: 可以操作基本数据类型的数据的流对象 [打印本页]

作者: libin    时间: 2015-7-23 13:24
标题: 可以操作基本数据类型的数据的流对象
可以操作基本数据类型的数据的流对象。
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
static String
readUTF(DataInput in)
从流 in 中读取用 UTF-8 修改版格式编码的 Unicode 字符格式的字符串;然后以 String 形式返回此字符串。
int
skipBytes(int n) 跳过n个字节

作者: libin    时间: 2015-7-23 13:26
格式错了,怎么删帖啊?

作者: 成佳裕    时间: 2015-7-23 17:48
FileWriter 可以操作字符型




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2