forked from JackChan1999/Java_Basic_Introduction
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jackchan1999
committed
Sep 10, 2017
1 parent
f2c2ed4
commit 9ddf0c3
Showing
34 changed files
with
916 additions
and
701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## RandomAccessFile | ||
|
||
随机访问流 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,76 @@ | ||
## Java学习笔记 | ||
## 断言assert | ||
|
||
## IO流 | ||
|
||
- 字节流 | ||
- 字符流 | ||
- 转换流 | ||
- 高效流 | ||
- 随机访问流 | ||
- 序列化流 | ||
- NIO jdk 4 | ||
- Channel 通道,面向块的处理 | ||
- Buffer 缓冲,capacity,limit,position | ||
- Files | ||
- Paths | ||
- FileVisitor 遍历文件和目录 | ||
|
||
### Buffer 缓冲区 | ||
|
||
| 方法声明 | 功能描述 | | ||
| ---------- | ---------------------------------------- | | ||
| allocate() | 分配内存空间,创建Buffer对象 | | ||
| put() | 存数据 | | ||
| get() | 取数据 | | ||
| position() | 位置 | | ||
| limit() | 界限 | | ||
| capacity() | 容量 | | ||
| flip() | 为输出数据做好准备,limit = position;position = 0; | | ||
| clear() | 为装入数据做准备,limit = capacity;position = 0; | | ||
|
||
### Channel 通道 | ||
|
||
| 方法声明 | 功能描述 | | ||
| ------- | ------------------------------ | | ||
| map() | 将buffer对应的部分或全部数据映射成ByteBuffer | | ||
| write() | 向buffer写入数据 | | ||
| read() | 从buffer读取数据 | | ||
|
||
- AIO Jdk 7 | ||
- 字符集和Charset | ||
- 编解码 | ||
- 文件锁FileLock | ||
|
||
### AIO | ||
|
||
Path | ||
|
||
| 方法声明 | 功能描述 | | ||
| -------------- | ---- | | ||
| getNameCount() | | | ||
| getRoot() | | | ||
| | | | ||
|
||
Paths | ||
|
||
| 方法声明 | 功能描述 | | ||
| ----- | ---- | | ||
| get() | | | ||
| | | | ||
| | | | ||
|
||
Files | ||
|
||
| 方法声明 | 功能描述 | | ||
| ---------- | ---- | | ||
| copy() | | | ||
| isHidden() | | | ||
| size() | | | ||
| write() | | | ||
| list() | | | ||
| lines() | | | ||
|
||
|
||
|
||
## 网络编程 | ||
|
||
### 断言assert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## 数组与内存控制 | ||
|
||
数组:长度不可变,连续的内存 | ||
|
||
变量,引用变量,数组变量,数组对象 | ||
|
||
数组变量是引用类型的变量,数组变量并不是数组本身,它只是指向堆内存中的数组对象。 | ||
|
||
数组变量只是一个引用变量,通常存放在栈内存中(也可被放入堆内存中),而数组对象就是保存在堆内存中的连续内存空间。 | ||
|
||
引用变量本质上只是一个指针,只要程序通过引用变量访问属性,或者通过引用变量调用方法,该引用变量将会由它所引用的对象代替。 | ||
|
||
### 引用类型的数组 | ||
|
||
引用类型数组的数组元素依然是引用类型的,因此数组元素里存储的还是引用,它指向另一块内存,这块内存里存储了该引用变量所引用的对象(包括数组和Java对象)。 | ||
|
||
多维数组的本质 | ||
|
||
## 内存管理 | ||
|
||
内存管理:内存分配和内存回收。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.