当前位置:网站首页>缓冲流与转换流
缓冲流与转换流
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");
}
}边栏推荐
- 数据加载及预处理
- 分布式-总结列表
- 技术分享| 融合调度中的广播功能设计
- 【硬十宝典】——2.【基础知识】开关电源各种拓扑结构的特点
- LM small programmable controller software (based on CoDeSys) note 19: errors do not match the profile of the target
- The longest increasing subsequence and its optimal solution, total animal weight problem
- 分布式全局唯一ID解决方案详解
- RuntimeError: “max_pool2d“ not implemented for ‘Long‘
- 2022 gas examination question bank and online simulation examination
- Dual contractual learning: text classification via label aware data augmentation reading notes
猜你喜欢

C#读写应用程序配置文件App.exe.config,并在界面上显示

无器械健身

C -- array

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

pytorch 卷积操作

神经网络的基本骨架-nn.Moudle的使用

About the transmission pipeline of stage in spark

I also gave you the MySQL interview questions of Boda factory. If you need to come in and take your own

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

Fitness without equipment
随机推荐
Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation 阅读笔记
How to use common datasets in pytorch
【硬十宝典】——2.【基础知识】开关电源各种拓扑结构的特点
细数软件研发效能的七宗罪
The index is invalid
Software testing needs more and more talents. Why do you still not want to take this path?
Leecode record 1351 negative numbers in statistical ordered matrix
Leecode question brushing record 1332 delete palindrome subsequence
Daily algorithm & interview questions, 28 days of special training in large factories - the 13th day (array)
Simple implementation of slf4j
PR 2021 quick start tutorial, learn about the and functions of the timeline panel
[godot] unity's animator is different from Godot's animplayer
Common UNIX Operation and maintenance commands of shell
LeetCode_28(实现 strStr())
Question bank and online simulation examination for special operation certificate of G1 industrial boiler stoker in 2022
2022.2.7-2.13 AI industry weekly (issue 84): family responsibilities
Registration for R2 mobile pressure vessel filling test in 2022 and R2 mobile pressure vessel filling free test questions
Sorting out 49 reports of knowledge map industry conference | AI sees the future with wisdom
RuntimeError: “max_pool2d“ not implemented for ‘Long‘
C - detailed explanation of operators and summary of use cases