Skip to content

Commit 9ddf0c3

Browse files
author
jackchan1999
committed
updates
1 parent f2c2ed4 commit 9ddf0c3

34 files changed

Lines changed: 916 additions & 701 deletions

Node/RandomAccessFile.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## RandomAccessFile
2+
3+
随机访问流

Node/node.md

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
1-
## Java学习笔记
1+
## 断言assert
2+
3+
## IO流
4+
5+
- 字节流
6+
- 字符流
7+
- 转换流
8+
- 高效流
9+
- 随机访问流
10+
- 序列化流
11+
- NIO jdk 4
12+
- Channel 通道,面向块的处理
13+
- Buffer 缓冲,capacity,limit,position
14+
- Files
15+
- Paths
16+
- FileVisitor 遍历文件和目录
17+
18+
### Buffer 缓冲区
19+
20+
| 方法声明 | 功能描述 |
21+
| ---------- | ---------------------------------------- |
22+
| allocate() | 分配内存空间,创建Buffer对象 |
23+
| put() | 存数据 |
24+
| get() | 取数据 |
25+
| position() | 位置 |
26+
| limit() | 界限 |
27+
| capacity() | 容量 |
28+
| flip() | 为输出数据做好准备,limit = position;position = 0; |
29+
| clear() | 为装入数据做准备,limit = capacity;position = 0; |
30+
31+
### Channel 通道
32+
33+
| 方法声明 | 功能描述 |
34+
| ------- | ------------------------------ |
35+
| map() | 将buffer对应的部分或全部数据映射成ByteBuffer |
36+
| write() | 向buffer写入数据 |
37+
| read() | 从buffer读取数据 |
38+
39+
- AIO Jdk 7
40+
- 字符集和Charset
41+
- 编解码
42+
- 文件锁FileLock
43+
44+
### AIO
45+
46+
Path
47+
48+
| 方法声明 | 功能描述 |
49+
| -------------- | ---- |
50+
| getNameCount() | |
51+
| getRoot() | |
52+
| | |
53+
54+
Paths
55+
56+
| 方法声明 | 功能描述 |
57+
| ----- | ---- |
58+
| get() | |
59+
| | |
60+
| | |
61+
62+
Files
63+
64+
| 方法声明 | 功能描述 |
65+
| ---------- | ---- |
66+
| copy() | |
67+
| isHidden() | |
68+
| size() | |
69+
| write() | |
70+
| list() | |
71+
| lines() | |
72+
73+
74+
75+
## 网络编程
276

3-
### 断言assert

Node/内存管理.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## 数组与内存控制
2+
3+
数组:长度不可变,连续的内存
4+
5+
变量,引用变量,数组变量,数组对象
6+
7+
数组变量是引用类型的变量,数组变量并不是数组本身,它只是指向堆内存中的数组对象。
8+
9+
数组变量只是一个引用变量,通常存放在栈内存中(也可被放入堆内存中),而数组对象就是保存在堆内存中的连续内存空间。
10+
11+
引用变量本质上只是一个指针,只要程序通过引用变量访问属性,或者通过引用变量调用方法,该引用变量将会由它所引用的对象代替。
12+
13+
### 引用类型的数组
14+
15+
引用类型数组的数组元素依然是引用类型的,因此数组元素里存储的还是引用,它指向另一块内存,这块内存里存储了该引用变量所引用的对象(包括数组和Java对象)。
16+
17+
多维数组的本质
18+
19+
## 内存管理
20+
21+
内存管理:内存分配和内存回收。

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
* [Java集合类型详解](https://alleniverson.gitbooks.io/java-basic-introduction/content/第6章%20集合框架/Java集合类型详解.html)
9292
* [第7章 IO流](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/README.html)
9393
* [IO流之File类](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/IO流之File类.html)
94-
* [IO流之字节流和字符流](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/IO流之字节流和字符流.html)
94+
* [IO流之字节流](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/IO流之字节流.html)
95+
* [IO流之字符流](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/IO流之字符流.html)
9596
* [常用IO流](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/常用IO流.html)
9697
* [NIO](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/NIO.html)
9798
* [AIO](https://alleniverson.gitbooks.io/java-basic-introduction/content/第7章%20IO流/AIO.html)

SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484

8585
* [第7章 IO流](第7章 IO流/README.md)
8686
* [IO流之File类](第7章 IO流/IO流之File类.md)
87-
* [IO流之字节流和字符流](第7章 IO流/IO流之字节流和字符流.md)
87+
* [IO流之字节流和字符流](第7章 IO流/IO流之字节流.md)
88+
* [IO流之字符流](第7章 IO流/IO流之字符流.md)
8889
* [常用IO流](第7章 IO流/常用IO流.md)
8990
* [NIO](第7章 IO流/NIO.md)
9091
* [AIO](第7章 IO流/AIO.md)

第12章 内存管理/内存管理.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
42.6 KB
Loading
28.5 KB
Loading
55 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)