From 8292c6761b03e203c1f17875c9af6dfc7cd4e0d1 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Fri, 4 Apr 2008 17:07:27 +0000 Subject: [PATCH] [cleanup] Update Javadocs --- .../terminal/control/impl/TerminalInputStream.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java index f0e0aad8078..ff19ef56dff 100644 --- a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java +++ b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/impl/TerminalInputStream.java @@ -120,8 +120,11 @@ public class TerminalInputStream extends InputStream { } /** * 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 { while (fUsedSlots == fBuffer.length) @@ -136,8 +139,10 @@ public class TerminalInputStream extends InputStream { } /** * Read a single byte. Blocks until a byte is available. + * * @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 { while (fUsedSlots == 0)