Closing Streams
When you're done with a stream, you may want to close it to release
any resources associated with the stream. Once the stream is closed attempts to read from it, will throw IOException
s.
You close a stream with the close()
method:
public void close() throws IOException
An IOException
is thrown if the stream can't be closed.
Previous | Next | Top
Last Modified May 10, 1997
Copyright 1997 Elliotte Rusty Harold
elharo@metalab.unc.edu