I just read that
Some buffered output classes support the autoflush function specified by an optional constructor argument. When the autorun function is enabled, a specific event key causes a buffer reset. For example, autoflow The PrintWriter object clears the buffer each time println or format is called.
So, if I keep a link to any BufferReader for some time, and it turns red, then how will all the data be saved? Is there some kind of callback mechanism that will automatically clear it and read the contents again, or will I lose the data and need to call again?
, BufferReader , , ?
, BufferedWriter. ( API Reader, InputStream flush(). Flushing "".)
BufferedWriter
Reader
InputStream
flush()
""; - . , ( - ), , ().
- ,
1. ( , , : , ...)
. , println... PrintWriter.
println
... , ?
, . , .
, , . , . flush() " ".
1 - , BufferedWriter finalize(). , , , .
finalize()
, . , , , , - , Java.
, , . , , , read(). , , .
read()