当前位置:网站首页>Buffer stream and transform stream
Buffer stream and transform stream
2022-07-01 04:48:00 【Yangasang 815】
import java.io.*;
public class Test1 {
public static void main(String[] args) throws Exception {
// Buffer flow
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();// Read a row of data
Writer writer=new FileWriter("");
BufferedWriter writer1=new BufferedWriter(writer);
writer1.newLine();// Line feed operation
// Character input conversion stream
InputStream inputStream=new FileInputStream("");
Reader inputStreamReader=new InputStreamReader(inputStream);
// Character output conversion stream
OutputStream outputStream=new FileOutputStream("");
Writer writer2=new OutputStreamWriter(outputStream,"GBK");
}
}
边栏推荐
- 【暑期每日一題】洛穀 P1568 賽跑
- Registration of P cylinder filling examination in 2022 and analysis of P cylinder filling
- How do I sort a list of strings in dart- How can I sort a list of strings in Dart?
- Pytoch (I) -- basic grammar
- LeetCode_28(实现 strStr())
- [daily question in summer] Luogu p2026 find the analytic formula of primary function
- Neural networks - use of maximum pooling
- Neural networks - use sequential to build neural networks
- Design experience of Meizhou clinical laboratory
- Research on medical knowledge atlas question answering system (I)
猜你喜欢
Neural network convolution layer
最长递增子序列及最优解、动物总重量问题
C -- array
[hard ten treasures] - 2 [basic knowledge] characteristics of various topological structures of switching power supply
Sorting out 49 reports of knowledge map industry conference | AI sees the future with wisdom
无器械健身
【硬十宝典】——1.【基础知识】电源的分类
Pytorch(三) —— 函数优化
[pat (basic level) practice] - [simple simulation] 1064 friends
Pytoch (I) -- basic grammar
随机推荐
Basic skeleton of neural network nn Use of moudle
[daily question in summer] Luogu p2026 find the analytic formula of primary function
【暑期每日一题】洛谷 P3742 umi的函数
Common UNIX Operation and maintenance commands of shell
RuntimeError: mean(): input dtype should be either floating point or complex dtypes. Got Long instead
Pytoch (I) -- basic grammar
Query long transaction
pytorch 卷积操作
【FTP】FTP常用命令,持续更新中……
How do I sort a list of strings in dart- How can I sort a list of strings in Dart?
Data loading and preprocessing
Codeworks round 449 (Div. 1) C. Kodori tree template
[FTP] the solution to "227 entering passive mode" during FTP connection
How to view the changes and opportunities in the construction of smart cities?
[daily question in summer] first time, second time, deal!
This sideline workload is small, 10-15k, free unlimited massage
Quelques outils dont les chiens scientifiques pourraient avoir besoin
Pico neo3 handle grabs objects
2022 G2 power station boiler stoker examination question bank and G2 power station boiler stoker simulation examination question bank
Collect the annual summary of laws, regulations, policies and plans related to trusted computing of large market points (national, ministerial, provincial and municipal)