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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

17.5.5.3 Step 3<br />

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

In many circumstances, you may not be interested in both of these events. By default, neither<br />

of these events is fired unless you first enable them with the right notify method in<br />

javax.comm.ParallelPort:<br />

public abstract void notifyOnError(boolean notify)<br />

public abstract void notifyOnBuffer(boolean notify)<br />

By default no events are fired when the parallel port's state changes. However, if you pass<br />

true to either of these methods, it will fire a parallel port event when the matching state<br />

changes.<br />

457

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

Saved successfully!

Ooh no, something went wrong!