Flushable interface in Java

java.io.Flushable

A Flushable is a destination of data that can be flushed. The flush method is invoked to write any buffered output to the underlying stream.

Sub Interfaces:

JavaFileManager, StandardJavaFileManager

Implementing Classes:

BufferedOutputStream, BufferedWriter, ByteArrayOutputStream, CharArrayWriter, CheckedOutputStream, CipherOutputStream, Console, DataOutputStream, DeflaterOutputStream, DigestOutputStream, FileOutputStream, FileWriter, FilterOutputStream, FilterWriter, Formatter, ForwardingJavaFileManager, GZIPOutputStream, InflaterOutputStream, JarOutputStream, LogStream, ObjectOutputStream, OutputStream, OutputStream, OutputStream, OutputStreamWriter, PipedOutputStream, PipedWriter, PrintStream, PrintWriter, StringWriter, Writer, ZipOutputStream

Declaration

public interface Flushable {
        void flush() throws IOException;
    }


Methods of Flushable

1. flush()

void java.io.Flushable.flush() throws IOException

Flushes this stream by writing any buffered output to the underlying stream.

Throws:

IOException - If an I/O error occurs


FilenameFilter interface in Java

FileFilter interface in Java

DataInput interface in Java

Closeable interface in java

Externalizable interface in Java

Flushable interface in Java

Serializable interface in Java

ObjectInputValidation interface in Java

ObjectInputFilter interface in Java

DataOutput interface in Java

ObjectInput interface in Java

ObjectStreamConstants interface in Java

ObjectOutput interface in Java

No comments:

Post a Comment