Class LittleEndianDetector

  • All Implemented Interfaces:
    Predicate<File>

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

      • LittleEndianDetector

        public LittleEndianDetector​(boolean contentReadingEnabled)
    • Method Detail

      • getCharset

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

        @NotNull
        protected ByteOrder getByteOrder()
        See Also:
        Utf16Detector.getByteOrder()
      • apply

        public final 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)