Class VCF3Codec

    • Constructor Detail

      • VCF3Codec

        public VCF3Codec()
    • Method Detail

      • parseFilters

        protected List<String> parseFilters​(String filterString)
        parse the filter string, first checking to see if we already have parsed it in a previous attempt
        Specified by:
        parseFilters in class AbstractVCFCodec
        Parameters:
        filterString - the string to parse
        Returns:
        a set of the filters applied
      • canDecode

        public boolean canDecode​(String potentialInput)
        Description copied from interface: FeatureCodec

        This function returns true iff the File potentialInput can be parsed by this codec. Note that checking the file's extension is a perfectly acceptable implementation of this method and file contents only rarely need to be checked.

        There is an assumption that there's never a situation where two different Codecs return true for the same file. If this occurs, the recommendation would be to error out.

        Note this function must never throw an error. All errors should be trapped and false returned.
        Parameters:
        potentialInput - the file to test for parsability with this codec
        Returns:
        true if potentialInput can be parsed, false otherwise