当前位置:网站首页>缓冲流与转换流
缓冲流与转换流
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");
}
}
边栏推荐
- Leecode question brushing record 1310 subarray XOR query
- Registration of P cylinder filling examination in 2022 and analysis of P cylinder filling
- Common UNIX Operation and maintenance commands of shell
- 如何看待智慧城市建设中的改变和机遇?
- The junior college students were angry for 32 days, four rounds of interviews, five hours of soul torture, and won Ali's offer with tears
- OdeInt与GPU
- Pytorch(一) —— 基本语法
- Seven crimes of counting software R & D Efficiency
- Dataloader的使用
- Tencent has five years of testing experience. It came to the interview to ask for 30K, and saw the so-called software testing ceiling
猜你喜欢
Registration for R2 mobile pressure vessel filling test in 2022 and R2 mobile pressure vessel filling free test questions
数据加载及预处理
先有网络模型的使用及修改
Technology sharing | broadcast function design in integrated dispatching
分布式数据库数据一致性的原理、与技术实现方案
神经网络的基本骨架-nn.Moudle的使用
Measurement of quadrature axis and direct axis inductance of three-phase permanent magnet synchronous motor
神经网络-非线性激活
Registration of P cylinder filling examination in 2022 and analysis of P cylinder filling
Difficulties in the development of knowledge map & the importance of building industry knowledge map
随机推荐
Registration for R2 mobile pressure vessel filling test in 2022 and R2 mobile pressure vessel filling free test questions
pytorch神经网络搭建 模板
神经网络的基本骨架-nn.Moudle的使用
总结全了,低代码还需要解决这4点问题
Solve the problem that the external chain file of Qiankun sub application cannot be obtained
Section 27 remote access virtual private network workflow and experimental demonstration
Why is Internet thinking not suitable for AI products?
Technology sharing | broadcast function design in integrated dispatching
Leecode question brushing record 1332 delete palindrome subsequence
【FTP】FTP常用命令,持续更新中……
STM32 extended key scan
RDF query language SPARQL
Pytorch(三) —— 函数优化
Openresty rewrites the location of 302
Some tools that research dogs may need
[pat (basic level) practice] - [simple simulation] 1064 friends
Software testing needs more and more talents. Why do you still not want to take this path?
最长递增子序列及最优解、动物总重量问题
2022 t elevator repair question bank and simulation test
常用的Transforms中的方法