-
所有已知子接口:
-
JavaFileManager,
StandardJavaFileManager
-
所有已知实现类:
-
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
-
public interface Flushable
Flushable 是可刷新数据的目标地。调用 flush 方法将所有已缓冲输出写入底层流。
-
从以下版本开始:
-
1.5
方法摘要 |
void |
flush() 通过将所有已缓冲输出写入底层流来刷新此流。 |
flush
void flush()
throws IOException
-
通过将所有已缓冲输出写入底层流来刷新此流。
-
-
抛出:
-
IOException
- 如果发生 I/O 错误