Package org.metricshub.winrm
Class CommandCursor.Chunk
java.lang.Object
org.metricshub.winrm.CommandCursor.Chunk
- Enclosing interface:
- CommandCursor
One Receive response's worth of raw output bytes, split by stream.
-
Constructor Summary
ConstructorsConstructorDescriptionChunk(byte[] stdout, byte[] stderr) Create a chunk over the given stream bytes (not copied: a chunk is a transient carrier between the protocol loop and the decoder, not a retained value). -
Method Summary
-
Constructor Details
-
Chunk
public Chunk(byte[] stdout, byte[] stderr) Create a chunk over the given stream bytes (not copied: a chunk is a transient carrier between the protocol loop and the decoder, not a retained value).- Parameters:
stdout- the raw stdout bytes of this chunk (possibly empty, never null)stderr- the raw stderr bytes of this chunk (possibly empty, never null)
-
-
Method Details
-
stdout
public byte[] stdout()Get the raw stdout bytes of this chunk.- Returns:
- the stdout bytes, possibly empty
-
stderr
public byte[] stderr()Get the raw stderr bytes of this chunk.- Returns:
- the stderr bytes, possibly empty
-