com.splunk.modularinput
Class NonblockingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.splunk.modularinput.NonblockingInputStream
All Implemented Interfaces:
java.io.Closeable

public class NonblockingInputStream
extends java.io.InputStream

The NonblockingInputStream class is a stream wrapper that acts as though the underlying stream has terminated every time it blocks.


Constructor Summary
NonblockingInputStream(java.io.InputStream stream)
           
 
Method Summary
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonblockingInputStream

public NonblockingInputStream(java.io.InputStream stream)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException