Class AbstractKVCommand.BytesParser

java.lang.Object
io.permazen.cli.cmd.AbstractKVCommand.BytesParser
All Implemented Interfaces:
Parser<byte[]>
Enclosing class:
AbstractKVCommand

public static class AbstractKVCommand.BytesParser extends Object implements Parser<byte[]>
Parses a byte[] array as hexadecimal or doubly-quoted "C" style string.
See Also:
  • Constructor Details

    • BytesParser

      public BytesParser()
  • Method Details

    • parse

      public byte[] parse(Session session, String text)
      Description copied from interface: Parser
      Parse value from the given text.
      Specified by:
      parse in interface Parser<byte[]>
      Parameters:
      session - CLI session
      text - input to parse
      Returns:
      parsed value