code: public License read(IOFormat format) throws IOException {
          switch (format) {
              case BINARY:
                  return License.Create.from(ByteArrayReader.readInput(is));
              case BASE64:
                  return License.Create.from(Base64.getDecoder().decode(ByteArrayReader.readInput(is)));
              case STRING:
                  return License.Create.from(new String(ByteArrayReader.readInput(is), StandardCharsets.UTF_8));
          }
          throw new IllegalArgumentException("License format " + format + " is unknown.");
      }
docs: Read the license from the input assuming that the format of the license on the input has the format specified by
  the argument.
  
  @param format the assumed format of the license, can be {@link IOFormat#STRING},
  {@link IOFormat#BASE64} or {@link IOFormat#BINARY}
  @return the license
  @throws IOException if the input cannot be read