当前位置:网站首页>缓冲流与转换流
缓冲流与转换流
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");
}
}边栏推荐
- C -- array
- 如何看待智慧城市建设中的改变和机遇?
- VR线上展览所具备应用及特色
- 先有网络模型的使用及修改
- Basic skeleton of neural network nn Use of moudle
- Pytorch(三) —— 函数优化
- C read / write application configuration file app exe. Config and display it on the interface
- CF1638E. Colorful operations Kodori tree + differential tree array
- [ue4] event distribution mechanism of reflective event distributor and active call event mechanism
- This sideline workload is small, 10-15k, free unlimited massage
猜你喜欢

STM32 extended key scan

How to use common datasets in pytorch

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

PR 2021 quick start tutorial, learn about the and functions of the timeline panel

Dataloader的使用

2022 G2 power station boiler stoker examination question bank and G2 power station boiler stoker simulation examination question bank

Why is Internet thinking not suitable for AI products?

2022 Shanghai safety officer C certificate examination question simulation examination question bank and answers

STM32 photoresistor sensor & two channel AD acquisition

The index is invalid
随机推荐
洗个冷水澡吧
Applications and features of VR online exhibition
总结全了,低代码还需要解决这4点问题
Collect the annual summary of laws, regulations, policies and plans related to trusted computing of large market points (national, ministerial, provincial and municipal)
LeetCode_53(最大子数组和)
STM32扩展版 按键扫描
神经网络-非线性激活
科研狗可能需要的一些工具
C#读写应用程序配置文件App.exe.config,并在界面上显示
Strategic suggestions and future development trend of global and Chinese vibration isolator market investment report 2022 Edition
Pytorch(一) —— 基本语法
Overview of the construction details of Meizhou veterinary laboratory
LM small programmable controller software (based on CoDeSys) note 20: PLC controls stepping motor through driver
C read / write application configuration file app exe. Config and display it on the interface
Talk about testdeploy
OdeInt與GPU
2022 Shanghai safety officer C certificate examination question simulation examination question bank and answers
Construction of Meizhou nursing laboratory: equipment configuration
神经网络-卷积层
Leecode question brushing record 1310 subarray XOR query