Package org.jclouds.docker.util
Class DockerInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- org.jclouds.docker.util.DockerInputStream
-
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
public final class DockerInputStream extends DataInputStream
Extension toDataInputStream
which adds methodreadStdStreamData()
to allow read multiplexed standard streams.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description DockerInputStream(InputStream in)
Ctor from superclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StdStreamData
readStdStreamData()
-
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
DockerInputStream
public DockerInputStream(InputStream in)
Ctor from superclass.- Parameters:
in
-- See Also:
DataInputStream(InputStream)
-
-
Method Detail
-
readStdStreamData
public StdStreamData readStdStreamData() throws IOException
- Returns:
StdStreamData
instance read from the input stream ornull
if we reached end of the stream.- Throws:
IOException
-
-