当前位置:网站首页>缓冲流与转换流
缓冲流与转换流
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");
}
}边栏推荐
- VIM简易使用教程
- 2022 gas examination question bank and online simulation examination
- 先有网络模型的使用及修改
- LeetCode_35(搜索插入位置)
- 常用的Transforms中的方法
- Neural network convolution layer
- 分布式锁的实现
- pytorch 卷积操作
- I also gave you the MySQL interview questions of Boda factory. If you need to come in and take your own
- 2022.2.7-2.13 AI industry weekly (issue 84): family responsibilities
猜你喜欢

Pytorch(二) —— 激活函数、损失函数及其梯度

Shell之一键自动部署Redis任意版本

Common methods in transforms

How to use maixll dock

Kodori tree board

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

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

神经网络-使用Sequential搭建神经网络

Dataloader的使用
随机推荐
[godot] unity's animator is different from Godot's animplayer
js解决浮点数相乘精度丢失问题
Construction of Meizhou nursing laboratory: equipment configuration
Sorting out 49 reports of knowledge map industry conference | AI sees the future with wisdom
pytorch 卷积操作
STM32 光敏电阻传感器&两路AD采集
神经网络的基本骨架-nn.Moudle的使用
LeetCode_ 58 (length of last word)
Solve the problem that the external chain file of Qiankun sub application cannot be obtained
Pytorch(三) —— 函数优化
2022.2.7-2.13 AI industry weekly (issue 84): family responsibilities
Odeint et GPU
Pytorch(四) —— 可视化工具 Visdom
Shell analysis server log command collection
【硬十宝典目录】——转载自“硬件十万个为什么”(持续更新中~~)
分布式事务-解决方案
About the transmission pipeline of stage in spark
Thoughts on the construction of Meizhou cell room
Pytorch(二) —— 激活函数、损失函数及其梯度
数据加载及预处理