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.InputStreamjava.io.IOExceptionpublic int read(byte[] a)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] a,
int begin,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException