1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 20:15:22 +02:00

[cleanup] Update Javadocs

This commit is contained in:
Martin Oberhuber 2008-04-04 17:07:27 +00:00
parent 76e2d6090d
commit 8292c6761b

View file

@ -120,8 +120,11 @@ public class TerminalInputStream extends InputStream {
} }
/** /**
* Writes a single byte to the buffer. Blocks if the buffer is full. * Writes a single byte to the buffer. Blocks if the buffer is full.
* @param b *
* @throws InterruptedException * @param b the byte to write
* @throws InterruptedException when the Thread is interrupted while
* waiting for the buffer to become available because it was
* full
*/ */
public synchronized void write(byte b) throws InterruptedException { public synchronized void write(byte b) throws InterruptedException {
while (fUsedSlots == fBuffer.length) while (fUsedSlots == fBuffer.length)
@ -136,8 +139,10 @@ public class TerminalInputStream extends InputStream {
} }
/** /**
* Read a single byte. Blocks until a byte is available. * Read a single byte. Blocks until a byte is available.
*
* @return a byte from the buffer * @return a byte from the buffer
* @throws InterruptedException * @throws InterruptedException when the Thread is interrupted while
* waiting for the buffer to be filled with a readable byte
*/ */
public synchronized byte read() throws InterruptedException { public synchronized byte read() throws InterruptedException {
while (fUsedSlots == 0) while (fUsedSlots == 0)