Class Utf8Detector

  • All Implemented Interfaces:
    Predicate<File>

    public final class Utf8Detector
    extends Object
    Since:
    9.1
    Author:
    Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
    • Constructor Detail

      • Utf8Detector

        public Utf8Detector​(boolean contentReadingEnabled)
    • Method Detail

      • apply

        public boolean apply​(File input)
        Checks whether the given item meets the predicate.
        Specified by:
        apply in interface Predicate<File>
        Parameters:
        input - item to check.
        Returns:
        true - meets.
        See Also:
        Predicate.apply(Object)
      • getCharset

        @NotNull
        public Charset getCharset()
        See Also:
        CharsetDetector.getCharset()