当前位置:网站首页>缓冲流与转换流
缓冲流与转换流
2022-07-01 04:46:00 【洋啊桑815】
import java.io.*;
public class Test1 {
public static void main(String[] args) throws Exception {
//缓冲流
InputStream in=new FileInputStream("");
BufferedInputStream bin=new BufferedInputStream(in);
OutputStream os=new FileOutputStream("");
BufferedOutputStream osn=new BufferedOutputStream(os);
Reader reader=new FileReader("");
BufferedReader bufferedReader=new BufferedReader(reader);
bufferedReader.readLine();//读一行数据
Writer writer=new FileWriter("");
BufferedWriter writer1=new BufferedWriter(writer);
writer1.newLine();//换行操作
//字符输入转换流
InputStream inputStream=new FileInputStream("");
Reader inputStreamReader=new InputStreamReader(inputStream);
//字符输出转换流
OutputStream outputStream=new FileOutputStream("");
Writer writer2=new OutputStreamWriter(outputStream,"GBK");
}
}边栏推荐
- Technology sharing | broadcast function design in integrated dispatching
- STM32扩展板 数码管显示
- Common interview questions ①
- STM32 extended key scan
- 2022 G2 power station boiler stoker examination question bank and G2 power station boiler stoker simulation examination question bank
- Introduction to JVM stack and heap
- 2022.2.7-2.13 AI industry weekly (issue 84): family responsibilities
- 科研狗可能需要的一些工具
- 分布式-总结列表
- AssertionError assert I.ndim == 4 and I.shape[1] == 3
猜你喜欢

Pytorch(三) —— 函数优化

STM32扩展版 按键扫描

Tencent has five years of testing experience. It came to the interview to ask for 30K, and saw the so-called software testing ceiling

2022 question bank and answers for safety production management personnel of hazardous chemical production units

Neural networks - use of maximum pooling
![[pat (basic level) practice] - [simple simulation] 1064 friends](/img/37/0ef0f8aae15ae574be1d76c97497c9.jpg)
[pat (basic level) practice] - [simple simulation] 1064 friends

2022 hoisting machinery command registration examination and hoisting machinery command examination registration

技术分享| 融合调度中的广播功能设计

分布式锁的实现

Software testing needs more and more talents. Why do you still not want to take this path?
随机推荐
Dede collection plug-in does not need to write rules
LeetCode_35(搜索插入位置)
2022 tea master (intermediate) examination question bank and tea master (intermediate) examination questions and analysis
RDF query language SPARQL
C#读写应用程序配置文件App.exe.config,并在界面上显示
技术分享| 融合调度中的广播功能设计
[difficult] sqlserver2008r2, can you recover only some files when recovering the database?
JS to solve the problem of floating point multiplication precision loss
常用的Transforms中的方法
分布式数据库数据一致性的原理、与技术实现方案
LM small programmable controller software (based on CoDeSys) note 20: PLC controls stepping motor through driver
[ue4] event distribution mechanism of reflective event distributor and active call event mechanism
Pytorch convolution operation
LeetCode_58(最后一个单词的长度)
LeetCode_ 58 (length of last word)
Matters behind the construction of paint testing laboratory
STM32扩展板 数码管显示
js解决浮点数相乘精度丢失问题
2022 polymerization process test questions and simulation test
Question bank and online simulation examination for special operation certificate of G1 industrial boiler stoker in 2022