Javatpoint Logo
Javatpoint Logo

Java FilterOutputStream Class

Java FilterOutputStream class implements the OutputStream class. It provides different sub classes such as BufferedOutputStream and DataOutputStream to provide additional functionality. So it is less used individually.

Java FilterOutputStream class declaration

Let's see the declaration for java.io.FilterOutputStream class:

Java FilterOutputStream class Methods

MethodDescription
void write(int b) It is used to write the specified byte to the output stream.
void write(byte[] ary) It is used to write ary.length byte to the output stream.
void write(byte[] b, int off, int len) It is used to write len bytes from the offset off to the output stream.
void flush() It is used to flushes the output stream.
void close() It is used to close the output stream.

Example of FilterOutputStream class

Output:

Success...

testout.txt

Welcome to javaTpoint.




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA