Class ByteRunAutomaton

  • All Implemented Interfaces:
    Accountable

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

      • ByteRunAutomaton

        public ByteRunAutomaton​(Automaton a)
        Converts incoming automaton to byte-based (UTF32ToUTF8) first
      • ByteRunAutomaton

        public ByteRunAutomaton​(Automaton a,
                                boolean isBinary,
                                int determinizeWorkLimit)
        expert: if isBinary 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