public class SwitchingInputStream extends InputStream
| Constructor and Description |
|---|
SwitchingInputStream(InputStream is,
Semaphore mainSemaphore) |
| Modifier and Type | Method and Description |
|---|---|
Semaphore |
getSemaphore() |
int |
read() |
void |
setNumberOfSentences(int count) |
void |
setSleeping(boolean sleeping) |
available, close, mark, markSupported, read, read, reset, skippublic SwitchingInputStream(InputStream is, Semaphore mainSemaphore)
public Semaphore getSemaphore()
public void setNumberOfSentences(int count)
throws IOException
IOExceptionpublic void setSleeping(boolean sleeping)
public int read()
throws IOException
read in class InputStreamIOExceptionCopyright © 2014. All rights reserved.