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:
parent
76e2d6090d
commit
8292c6761b
1 changed files with 8 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue