Module java.base
Package java.io

Interface Flushable

所有已知的子接口:
JavaFileManager, StandardJavaFileManager
所有已知的实现类:
BufferedOutputStream, BufferedWriter, ByteArrayOutputStream, CharArrayWriter, CheckedOutputStream, CipherOutputStream, Console, DataOutputStream, DeflaterOutputStream, DigestOutputStream, FileOutputStream, FileWriter, FilterOutputStream, FilterWriter, Formatter, ForwardingJavaFileManager, GZIPOutputStream, InflaterOutputStream, JarOutputStream, LogStream, ObjectOutputStream, OutputStream, OutputStreamWriter, PipedOutputStream, PipedWriter, PrintStream, PrintWriter, StringWriter, Writer, ZipOutputStream

public interface Flushable
Flushable 是可以刷新的数据目的地。调用 flush 方法将任何缓冲的输出写入底层流。
自从:
1.5
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    flush()
    将任何缓冲的输出写入底层流以刷新此流。
  • Method Details

    • flush

      void flush() throws IOException
      将任何缓冲的输出写入底层流以刷新此流。
      抛出:
      IOException - 如果发生 I/O 错误