Package org.jclouds.docker.util
Class StdStreamData
- java.lang.Object
-
- org.jclouds.docker.util.StdStreamData
-
public final class StdStreamData extends Object
Representation of single message from docker-raw-stream. It holds stream type, data (payload) and flag which says if the payload was truncated. The truncation can occur when the frame size is greater thanInteger.MAX_VALUE
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StdStreamData.StdStreamType
Standard streams enum.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getPayload()
Data from this message.StdStreamData.StdStreamType
getType()
Type of stream.boolean
isTruncated()
Flag which says if the payload was truncated (because of size).
-
-
-
Method Detail
-
getType
public StdStreamData.StdStreamType getType()
Type of stream.- Returns:
-
getPayload
public byte[] getPayload()
Data from this message.- Returns:
- payload.
-
isTruncated
public boolean isTruncated()
Flag which says if the payload was truncated (because of size).- Returns:
- true if truncated
-
-