当前位置:网站首页>缓冲流与转换流
缓冲流与转换流
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 records the number of good segmentation of 1525 strings
- [difficult] sqlserver2008r2, can you recover only some files when recovering the database?
- Summary of acl2021 information extraction related papers
- Pytorch(三) —— 函数优化
- About the transmission pipeline of stage in spark
- Pytorch convolution operation
- 科研狗可能需要的一些工具
- Maixll dock quick start
- STM32扩展板 温度传感器和温湿度传感器的使用
- Solve the problem that the external chain file of Qiankun sub application cannot be obtained
猜你喜欢
![[pat (basic level) practice] - [simple simulation] 1064 friends](/img/37/0ef0f8aae15ae574be1d76c97497c9.jpg)
[pat (basic level) practice] - [simple simulation] 1064 friends

神经网络-非线性激活

常用的Transforms中的方法

Fitness without equipment

Odeint and GPU

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

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

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

Kodori tree board

Introduction to JVM stack and heap
随机推荐
1076 Forwards on Weibo
Announcement on the list of Guangdong famous high-tech products to be selected in 2021
Basic skeleton of neural network nn Use of moudle
Daily algorithm & interview questions, 28 days of special training in large factories - the 13th day (array)
Section 27 remote access virtual private network workflow and experimental demonstration
Some tools that research dogs may need
VR线上展览所具备应用及特色
This sideline workload is small, 10-15k, free unlimited massage
分布式架构系统拆分原则、需求、微服务拆分步骤
2022 t elevator repair new version test questions and t elevator repair simulation test question bank
PR 2021 quick start tutorial, learn about the and functions of the timeline panel
Measurement of quadrature axis and direct axis inductance of three-phase permanent magnet synchronous motor
How to view the changes and opportunities in the construction of smart cities?
LeetCode_28(实现 strStr())
Applications and features of VR online exhibition
Common UNIX Operation and maintenance commands of shell
CF1638E. Colorful operations Kodori tree + differential tree array
Basic usage, principle and details of session
LeetCode_53(最大子数组和)
科研狗可能需要的一些工具