23.07.2013 Views

Java IO.pdf - Nguyen Dang Binh

Java IO.pdf - Nguyen Dang Binh

Java IO.pdf - Nguyen Dang Binh

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Java</strong> I/O<br />

Once you have closed an input stream, you can no longer read from it. Attempting to do so<br />

will throw an <strong>IO</strong>Exception.<br />

3.7 Marking and Resetting<br />

It's often useful to be able to read a few bytes and then back up and reread them. For example,<br />

in a <strong>Java</strong> compiler, you don't know for sure whether you're reading the token

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!