- Java.io - Writer
- Java.io - StringWriter
- Java.io - StringReader
- Java.io - StringBufferInputStream
- Java.io - StreamTokenizer
- Java.io - SerializablePermission
- Java.io - SequenceInputStream
- Java.io - Reader
- Java.io - RandomAccessFile
- Java.io - PushbackReader
- Java.io - PushbackInputStream
- Java.io - PrintWriter
- Java.io - PrintStream
- Java.io - PipedWriter
- Java.io - PipedReader
- Java.io - PipedOutputStream
- Java.io - PipedInputStream
- Java.io - OutputStreamWriter
- Java.io - OutputStream
- Java.io - ObjectStreamField
- Java.io - ObjectStreamClass
- io - ObjectOutputStream.PutField
- Java.io - ObjectOutputStream
- Java.io - ObjectInputStream.GetField
- Java.io - ObjectInputStream
- Java.io - LineNumberReader
- Java.io - LineNumberInputStream
- Java.io - InputStreamReader
- Java.io - InputStream
- Java.io - FilterWriter
- Java.io - FilterReader
- Java.io - FilterOutputStream
- Java.io - FilterInputStream
- Java.io - FileWriter
- Java.io - FileReader
- Java.io - FilePermission
- Java.io - FileOutputStream
- Java.io - FileInputStream
- Java.io - FileDescriptor
- Java.io - File
- Java.io - DataOutputStream
- Java.io - DataInputStream
- Java.io - Console
- Java.io - CharArrayWriter
- Java.io - CharArrayReader
- Java.io - ByteArrayOutputStream
- Java.io - ByteArrayInputStream
- Java.io - BufferedWriter
- Java.io - BufferedReader
- Java.io - BufferedOutputStream
- Java.io - BufferedInputStream
- Java.io - Home
Java.io package extras
Java.io package Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java.io.BufferedOutputStream Class
Introduction
The Java.io.BufferedOutputStream class implements a buffered output stream. By setting up such an output stream, an apppcation can write bytes to the underlying output stream without necessarily causing a call to the underlying system for each byte written.
Class declaration
Following is the declaration for Java.io.BufferedOutputStream class −
pubpc class BufferedOutputStream extends FilterOutputStream
Field
Following are the fields for Java.io.BufferedOutputStream class −
protected byte[] buf − This is the internal buffer where data is stored.
protected int count − This is the number of vapd bytes in the buffer.
protected OutputStream out − This is the underlying output stream to be filtered.
Class constructors
Sr.No. | Constructor & Description |
---|---|
1 | BufferedOutputStream(OutputStream out) This creates a new buffered output stream to write data to the specified underlying output stream. |
2 | BufferedOutputStream(OutputStream out, int size) This creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | This method flushes this buffered output stream. |
2 | This method writes len bytes from the specified byte array starting at offset off to this buffered output stream. |
3 | This method writes the specified byte to this buffered output stream. |
Methods inherited
This class inherits methods from the following classes −
Java.io.FilterOutputStream
Java.io.Object