Package java.io
Interface Flushable
-
- All Known Subinterfaces:
BufferedSink,Sink
- All Known Implementing Classes:
Buffer,BufferedOutputStream,BufferedWriter,ByteArrayOutputStream,CharArrayWriter,CheckedOutputStream,CipherOutputStream,Console,CountingOutputStream,DataOutputStream,DeflaterOutputStream,DeflaterSink,DigestOutputStream,DigestOutputStream,FileOutputStream,FileWriter,FilterOutputStream,FilterWriter,Formatter,ForwardingSink,GZIPOutputStream,GzipSink,InflaterOutputStream,JarOutputStream,MacOutputStream,ObjectOutputStream,OutputStream,OutputStreamWriter,ParcelFileDescriptor.AutoCloseOutputStream,PemWriter,PipedOutputStream,PipedWriter,PrintStream,PrintWriter,RetryableSink,StringWriter,TeeOutputStream,Writer,ZipOutputStream
public interface FlushableDefines an interface for classes that can (or need to) be flushed, typically before some output processing is considered to be finished and the object gets closed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()Flushes the object by writing out any buffered data to the underlying output.
-
-
-
Method Detail
-
flush
void flush() throws IOExceptionFlushes the object by writing out any buffered data to the underlying output.- Throws:
IOException- if there are any issues writing the data.
-
-