private void decode(final String inputData) {
      if (inputData == null || inputData.isEmpty()) {
        throw new ParameterException(
            spec.commandLine(), "An error occurred while trying to read the input data.");
      } else {
        try {
          // decode and write the value
          writeOutput(type.getAdapter().decode(inputData));
        } catch (MismatchedInputException e) {
          throw new ParameterException(
              spec.commandLine(),
              "Unable to map the input data with selected type. Please check input format. " + e);
        } catch (IOException e) {
          throw new ParameterException(
              spec.commandLine(), "Unable to load the input data. Please check input format. " + e);
        }
      }
    }
Decodes the string input into an validator data based on the {@link #type} then goes to
{@link #writeOutput(BftExtraData)} this data to file or stdout

@param inputData the string data to decode
app/src/main/java/org/hyperledger/besu/cli/subcommands/rlp/RLPSubCommand.java