Class TextBasedDataFormatReader

    • Constructor Detail

      • TextBasedDataFormatReader

        public TextBasedDataFormatReader()
    • Method Detail

      • canRead

        public boolean canRead​(java.io.Reader input,
                               int readLimit)
        Description copied from interface: DataFormatReader
        Returns true if this reader estimates to be able to consume the input data. Implementations may not read more than readLimit bytes from the supplied reader.
        Specified by:
        canRead in interface DataFormatReader
        Parameters:
        input - reader that can be read from to detect a data format
        readLimit - positive number that poses a restriction on how many characters an implementation may read. Reading beyond this limit may lead to incomplete input when the method DataFormatReader.readInput(Reader) is invoked.
        Returns:
        true if this reader is able to consume the input
      • getInputDetectionPattern

        protected abstract java.util.regex.Pattern getInputDetectionPattern()