当前位置:网站首页>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");
}
}边栏推荐
- LeetCode_58(最后一个单词的长度)
- Introduction to JVM stack and heap
- 【FTP】FTP连接时出现“227 Entering Passive Mode”的解决方法
- 先有网络模型的使用及修改
- C read / write application configuration file app exe. Config and display it on the interface
- Shell analysis server log command collection
- 神经网络-卷积层
- 2022 tea master (intermediate) examination question bank and tea master (intermediate) examination questions and analysis
- Take a cold bath
- 解决:Thread 1:[<*>setValue:forUndefinedKey]:this class is not key value coding-compliant for the key *
猜你喜欢
随机推荐
JVM栈和堆简介
How to do the performance pressure test of "Health Code"
神经网络-非线性激活
[summer daily question] Luogu p5886 Hello, 2020!
打印流与System.setout();
[hard ten treasures] - 1 [basic knowledge] classification of power supply
Pico Neo3手柄抓取物体
线程类的几大创建方法
2022 G2 power station boiler stoker examination question bank and G2 power station boiler stoker simulation examination question bank
Leecode question brushing record 1332 delete palindrome subsequence
Dataloader的使用
[FTP] the solution to "227 entering passive mode" during FTP connection
RuntimeError: mean(): input dtype should be either floating point or complex dtypes. Got Long instead
Difficulties in the development of knowledge map & the importance of building industry knowledge map
【暑期每日一題】洛穀 P1568 賽跑
Technology sharing | broadcast function design in integrated dispatching
This sideline workload is small, 10-15k, free unlimited massage
对象的序列化与反序列化
I also gave you the MySQL interview questions of Boda factory. If you need to come in and take your own
Section 27 remote access virtual private network workflow and experimental demonstration









