Class MatcherInput

java.lang.Object
com.google.re2j.MatcherInput
Direct Known Subclasses:
MatcherInput.Utf16MatcherInput, MatcherInput.Utf8MatcherInput

abstract class MatcherInput extends Object
Abstract the representations of input text supplied to Matcher.
  • Constructor Details

    • MatcherInput

      MatcherInput()
  • Method Details

    • utf16

      static MatcherInput utf16(CharSequence charSequence)
      Return the MatcherInput for UTF_16 encoding.
    • utf8

      static MatcherInput utf8(byte[] bytes)
      Return the MatcherInput for UTF_8 encoding.
    • utf8

      static MatcherInput utf8(String input)
      Return the MatcherInput for UTF_8 encoding.
    • getEncoding

      abstract MatcherInput.Encoding getEncoding()
    • asCharSequence

      abstract CharSequence asCharSequence()
    • asBytes

      abstract byte[] asBytes()
    • length

      abstract int length()