Class StackTraceElementSerializer
java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<StackTraceElement>
ch.qos.logback.core.kryo.SerializerBase<StackTraceElement>
ch.qos.logback.classic.kryo.StackTraceElementSerializer
Caller-data frames. The same
StackTraceElement recurs across events,
so the whole frame is cached by equality. A repeat is a 2-byte id. The first
time a frame is seen, class, method, and file names go through their own
caches, and the line number is a signed varint.
This replaced the raw six-string layout. Streams written by that layout no longer decode.
-
Nested Class Summary
Nested classes/interfaces inherited from class SerializerBase
SerializerBase.BiMapType -
Constructor Summary
ConstructorsConstructorDescriptionStackTraceElementSerializer(int capacity) Class names useClassNameSerializer(Vanilla streams).StackTraceElementSerializer(int capacity, SerializerBase<String> classNameSerializer) -
Method Summary
Modifier and TypeMethodDescriptionprotected StackTraceElementreadNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input) protected voidwriteNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, StackTraceElement ste) Method called to write new entries.Methods inherited from class SerializerBase
read, writeMethods inherited from class com.esotericsoftware.kryo.kryo5.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
StackTraceElementSerializer
public StackTraceElementSerializer() -
StackTraceElementSerializer
Class names useClassNameSerializer(Vanilla streams). -
StackTraceElementSerializer
- Parameters:
classNameSerializer- class-name codec; V5 passes aBasicStringSerializer
-
-
Method Details
-
writeNewEntry
protected void writeNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, StackTraceElement ste) Description copied from class:SerializerBaseMethod called to write new entries.- Specified by:
writeNewEntryin classSerializerBase<StackTraceElement>- Parameters:
kryo-output-ste-
-
readNewEntry
protected StackTraceElement readNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input) - Specified by:
readNewEntryin classSerializerBase<StackTraceElement>
-