集合
Map
HashTable 线程安全
HashMap 线程不安全
Collections
List 有序 可重复
ArrayList 动态数组 读取 线程不安全
LinkedList 链表 插删 线程不安全
Vector 数组 读取 线程安全
Set 无序 不可重复
HashSet Hash表 无序 通过元素hashCode()和equals()方法来保证唯一
LinkedHashSet Hash表保证唯一性,链表保证插入顺序
TreeSet 二叉树 好排序
IO
字节流
InputStream
ByteArrayInputStream 从字节数组中进行已字节为单位的读取
FileInputStream 从文件中以字节为单位读取
SocketInputStream 对Socket字节流读取
FilterInputStream 用于封装其他输入流,提供额外的功能
InflaterInputStream 从压缩数据源中读取数据
BufferedInputStream 开辟内部字节数据对输入流进行缓存
DataInputStream 装饰其他流,从流中读取基本Java数据类型
ObjectInputStream 从字节流中读取数据并进行反序列化
PipedInputStream从管道中读取数据
OutputStream
对应输入流
字符流
Reader
InputStreamReader 字节流
BufferedReader 一次性从物理流中读取8kb的字节流缓存到内存,如果外界有请求可以直接从内存中读取,内存中没有再到物理流中读取。减少IO操作,节省时间
CharArrayReader 字符数组输入流
FilterReader 封装其他字符输入流,并提供额外功能
PipedReader 字符管道输入流
StringReader 以String作为数据源,进行以字符为单位读取
Writer
对应输入流
磁盘文件流
File
网络通信流
Socket