Package com.google.protobuf
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.Processorthat extendsUtf8.ServerProcessorand usesjava.lang.String#encodedLength(Charset)on JDK versions that support it.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.reflect.MethodencodedLengthMethod
-
Constructor Summary
Constructors Constructor Description ServerProcessorWithEncodedLength()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.reflect.MethodcreateEncodedLengthMethod()(package private) intencodedLength(java.lang.String in)(package private) static booleanisAvailable()-
Methods inherited from class com.google.protobuf.Utf8.ServerProcessor
decodeUtf8, encodeUtf8, encodeUtf8Internal
-
Methods inherited from class com.google.protobuf.Utf8.Processor
decodeUtf8, decodeUtf8NonArrayByteBuffer, encodeUtf8, encodeUtf8Naive, encodeUtf8Naive
-
-
-
-
Method Detail
-
createEncodedLengthMethod
private static java.lang.reflect.Method createEncodedLengthMethod()
-
isAvailable
static boolean isAvailable()
-
encodedLength
int encodedLength(java.lang.String in)
- Overrides:
encodedLengthin classUtf8.Processor
-
-