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

public class FilterOutputStream extends OutputStream

Java DataOutputStream class methods

Method Description
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

Flash Soon


Output:



Advertisement

Copyright ©2017 Design& develop