Package java.io
Interface Flushable
- All Known Implementing Classes:
AbstractOutputStream,BufferedOutputStream,BufferedWriter,ByteArrayOutputStream,CharArrayWriter,CheckedOutputStream,ChunkedOutputStream,CipherOutputStream,CipherOutputStream,Console,ContentLengthOutputStream,DataOutputStream,DeflaterOutputStream,DigestOutputStream,DigestOutputStream,FaultRecoveringOutputStream,FileOutputStream,FileWriter,FilterOutputStream,FilterWriter,Formatter,GZIPOutputStream,IdentityOutputStream,InflaterOutputStream,JarOutputStream,Logger.Stream,MacOutputStream,MacOutputStream,ObjectOutputStream,OutputStream,OutputStreamWriter,PemWriter,PipedOutputStream,PipedWriter,PrintStream,PrintWriter,SSLSocketOutputStream,StringWriter,TeeOutputStream,Writer,ZipOutputStream
public interface Flushable
Defines 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
Modifier and Type Method Description voidflush()Flushes the object by writing out any buffered data to the underlying output.
-
Method Details
-
flush
Flushes the object by writing out any buffered data to the underlying output.- Throws:
IOException- if there are any issues writing the data.
-