Class ByteRunAutomaton


  • public class ByteRunAutomaton
    extends RunAutomaton
    Automaton representation for matching UTF-8 byte[].
    • Constructor Detail

      • ByteRunAutomaton

        public ByteRunAutomaton​(Automaton a)
      • ByteRunAutomaton

        public ByteRunAutomaton​(Automaton a,
                                boolean utf8)
        expert: if utf8 is true, the input is already byte-based
    • Method Detail

      • run

        public boolean run​(byte[] s,
                           int offset,
                           int length)
        Returns true if the given byte array is accepted by this automaton