Class CommandCursor.Chunk

java.lang.Object
org.metricshub.winrm.CommandCursor.Chunk
Enclosing interface:
CommandCursor

public static final class CommandCursor.Chunk extends Object
One Receive response's worth of raw output bytes, split by stream.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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).
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the raw stderr bytes of this chunk.
    byte[]
    Get the raw stdout bytes of this chunk.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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