当前位置:网站首页>缓冲流与转换流
缓冲流与转换流
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");
}
}边栏推荐
- Dual contractual learning: text classification via label aware data augmentation reading notes
- Dede collection plug-in does not need to write rules
- AssertionError assert I.ndim == 4 and I.shape[1] == 3
- [godot] unity's animator is different from Godot's animplayer
- Pytorch neural network construction template
- Fitness without equipment
- Pytest automated testing - compare robotframework framework
- Common methods in transforms
- 分布式数据库数据一致性的原理、与技术实现方案
- 【FTP】FTP常用命令,持续更新中……
猜你喜欢

This sideline workload is small, 10-15k, free unlimited massage

C - detailed explanation of operators and summary of use cases

About the transmission pipeline of stage in spark

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

RuntimeError: “max_pool2d“ not implemented for ‘Long‘

JVM栈和堆简介

VIM简易使用教程

How to do the performance pressure test of "Health Code"

OdeInt與GPU

RuntimeError: mean(): input dtype should be either floating point or complex dtypes.Got Long instead
随机推荐
【硬十宝典目录】——转载自“硬件十万个为什么”(持续更新中~~)
Common interview questions ①
Cmake selecting compilers and setting compiler options
Section 27 remote access virtual private network workflow and experimental demonstration
One click shell to automatically deploy any version of redis
[FTP] the solution to "227 entering passive mode" during FTP connection
Simple implementation of slf4j
How to do the performance pressure test of "Health Code"
Dede collection plug-in does not need to write rules
LM small programmable controller software (based on CoDeSys) note 20: PLC controls stepping motor through driver
STM32 extended key scan
LeetCode_ 58 (length of last word)
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
技术分享| 融合调度中的广播功能设计
Advanced application of ES6 modular and asynchronous programming
The longest increasing subsequence and its optimal solution, total animal weight problem
2022 polymerization process test questions and simulation test
【FTP】FTP常用命令,持续更新中……
VIM简易使用教程
Measurement of quadrature axis and direct axis inductance of three-phase permanent magnet synchronous motor