Home >Java >JavaBase >There are several types of streams in java

There are several types of streams in java

王林
王林Original
2020-05-18 17:22:573211browse

There are several types of streams in java

1. Byte stream InputStream/OutputStream

1. FileInputStream/FileOutputStream: file byte stream, used for file read and write operations

2. BufferedInputStream/BufferedFileOutputStream: byte stream with buffer added to improve efficiency

(Video tutorial recommendation: java video)

2. Character stream Reader/ Writer

1, FileReader/FileWriter: file character stream, used for reading and writing text files

2, BufferedReader/BufferedWriter: buffered character stream, used to improve efficiency

3. Convert stream InputStreamReader/OutputStreamWriter

Recommended tutorial: Getting started with java development

The above is the detailed content of There are several types of streams in java. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn