code: public static boolean validQualityEncoding(int encoding) {
          return (encoding == FastQ.SANGER_ENCODING || encoding == FastQ.SOLEXA_ENCODING || encoding == FastQ.ILLUMINA_ENCODING);
      }
docs: Check if the given quality encoding type is valid
  
  @param encoding - encoding to check
  @return boolean - true if the encoding is valid