Class Utf8.ServerProcessorWithEncodedLength

java.lang.Object
com.google.protobuf.Utf8.Processor
com.google.protobuf.Utf8.ServerProcessor
com.google.protobuf.Utf8.ServerProcessorWithEncodedLength
Enclosing class:
Utf8

static final class Utf8.ServerProcessorWithEncodedLength extends Utf8.ServerProcessor
Utf8.Processor that extends Utf8.ServerProcessor and uses java.lang.String#encodedLength(Charset) on JDK versions that support it.
  • Field Details

    • encodedLengthMethod

      private static final Method encodedLengthMethod
  • Constructor Details

    • ServerProcessorWithEncodedLength

      ServerProcessorWithEncodedLength()
  • Method Details

    • createEncodedLengthMethod

      private static Method createEncodedLengthMethod()
    • isAvailable

      static boolean isAvailable()
    • encodedLength

      int encodedLength(String in)
      Overrides:
      encodedLength in class Utf8.Processor