public class InputStreamAdapter
extends java.io.InputStream
Constructor and Description |
---|
InputStreamAdapter(java.util.concurrent.BlockingQueue<InputStreamSinkStage.StreamToAdapterMessage> sharedBuffer,
scala.Function1<InputStreamSinkStage.AdapterToStageMessage,scala.runtime.BoxedUnit> sendToStage,
scala.concurrent.duration.FiniteDuration readTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
scala.Option<ByteString> |
detachedChunk() |
boolean |
isActive() |
boolean |
isInitialized() |
boolean |
isStageAlive() |
int |
read() |
int |
read(byte[] a) |
int |
read(byte[] a,
int begin,
int length) |
java.io.IOException |
subscriberClosedException() |
public InputStreamAdapter(java.util.concurrent.BlockingQueue<InputStreamSinkStage.StreamToAdapterMessage> sharedBuffer, scala.Function1<InputStreamSinkStage.AdapterToStageMessage,scala.runtime.BoxedUnit> sendToStage, scala.concurrent.duration.FiniteDuration readTimeout)
public boolean isInitialized()
public boolean isActive()
public boolean isStageAlive()
public java.io.IOException subscriberClosedException()
public scala.Option<ByteString> detachedChunk()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] a) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] a, int begin, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException