1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-14 05:21:42 +08:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Guide
0c5f2ed756
Merge pull request #1885 from 15168387900/patch-3
Update rpc-intro.md
2022-12-13 20:33:43 +08:00
Guide
d048833d81
Merge pull request #1884 from 15168387900/patch-2
Update io-basis.md
2022-12-13 20:22:55 +08:00
15168387900
23e7270f51
Update rpc-intro.md 2022-12-13 17:45:58 +08:00
15168387900
ef93cdc15f
Update io-basis.md 2022-12-11 18:36:06 +08:00
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ tag:
## RPC 的原理是什么? ## RPC 的原理是什么?
为了能够帮助小伙伴们理解 RPC 原理,我们可以将整个 RPC的 核心功能看作是下面👇 6 个部分实现的: 为了能够帮助小伙伴们理解 RPC 原理,我们可以将整个 RPC的 核心功能看作是下面👇 5 个部分实现的:
1. **客户端(服务消费端)** :调用远程方法的一端。 1. **客户端(服务消费端)** :调用远程方法的一端。

View File

@ -194,7 +194,7 @@ The content read from file:§å®¶å¥½
- `read()` : 从输入流读取一个字符。 - `read()` : 从输入流读取一个字符。
- `read(char[] cbuf)` : 从输入流中读取一些字符,并将它们存储到字符数组 `cbuf`中,等价于 `read(cbuf, 0, cbuf.length)` - `read(char[] cbuf)` : 从输入流中读取一些字符,并将它们存储到字符数组 `cbuf`中,等价于 `read(cbuf, 0, cbuf.length)`
- `read(char[] cbuf, int off, int len)` :在`read(char[] cbuf)` 方法的基础上增加了 `off` 参数(偏移量)和 `len` 参数(要读取的最大字数)。 - `read(char[] cbuf, int off, int len)` :在`read(char[] cbuf)` 方法的基础上增加了 `off` 参数(偏移量)和 `len` 参数(要读取的最大字数)。
- `skip(long n)` :忽略输入流中的 n 个字符 ,返回实际忽略的字符数。 - `skip(long n)` :忽略输入流中的 n 个字符 ,返回实际忽略的字符数。
- `close()` : 关闭输入流并释放相关的系统资源。 - `close()` : 关闭输入流并释放相关的系统资源。
@ -244,9 +244,9 @@ The content read from file:我是Guide。
- `write(int c)` : 写入单个字符。 - `write(int c)` : 写入单个字符。
- `write(char[] cbuf)` :写入字符数组 `cbuf`,等价于`write(cbuf, 0, cbuf.length)` - `write(char[] cbuf)` :写入字符数组 `cbuf`,等价于`write(cbuf, 0, cbuf.length)`
- `write(char[] cbuf, int off, int len)` :在`write(char[] cbuf)` 方法的基础上增加了 `off` 参数(偏移量)和 `len` 参数(要读取的最大字数)。 - `write(char[] cbuf, int off, int len)` :在`write(char[] cbuf)` 方法的基础上增加了 `off` 参数(偏移量)和 `len` 参数(要读取的最大字数)。
- `write(String str)` :写入字符串,等价于 `write(str, 0, str.length())` - `write(String str)` :写入字符串,等价于 `write(str, 0, str.length())`
- `write(String str, int off, int len)` :在`write(String str)` 方法的基础上增加了 `off` 参数(偏移量)和 `len` 参数(要读取的最大字数)。 - `write(String str, int off, int len)` :在`write(String str)` 方法的基础上增加了 `off` 参数(偏移量)和 `len` 参数(要读取的最大字数)。
- `append(CharSequence csq)` :将指定的字符序列附加到指定的 `Writer` 对象并返回该 `Writer` 对象。 - `append(CharSequence csq)` :将指定的字符序列附加到指定的 `Writer` 对象并返回该 `Writer` 对象。
- `append(char c)` :将指定的字符附加到指定的 `Writer` 对象并返回该 `Writer` 对象。 - `append(char c)` :将指定的字符附加到指定的 `Writer` 对象并返回该 `Writer` 对象。
- `flush()` :刷新此输出流并强制写出所有缓冲的输出字符。 - `flush()` :刷新此输出流并强制写出所有缓冲的输出字符。