Java Reference
In-Depth Information
The flush() methodisusefulinalong-runningapplicationwhereyouneedtosave
changes every so often; for example, the previously mentioned text-editor application
that saves changes to a temporary file every few minutes. Remember that flush()
only flushes bytes to the platform; doing so doesn't necessarily result in the platform
flushing these bytes to the disk.
Note The close() methodautomaticallyflushestheoutputstream.Whenanap-
plicationendsbefore close() iscalled,theoutputstreamisautomaticallyclosedand
its data is flushed.
InputStream isthesuperclassofallinputstreamsubclasses. Table8-8 describes
InputStream 's methods.
Search WWH ::




Custom Search