Package jadex.binary
Class SerializationConfig
- java.lang.Object
-
- jadex.binary.SerializationConfig
-
public class SerializationConfig extends java.lang.Object
Class defining known values and other serialization knowledge.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
dec2classnamepool
The class name pool v2.protected java.util.List<java.lang.String>
dec2fragpool
The package fragment pool v2.protected java.util.List<java.lang.String>
dec2stringpool
The String pool v2.protected java.util.List<java.lang.String>
dec3classnamepool
The class name pool v3.protected java.util.List<java.lang.String>
dec3fragpool
The package fragment pool v3.protected java.util.List<java.lang.String>
dec3stringpool
The String pool v3.protected java.util.Map<java.lang.String,java.lang.Integer>
encclassnamepool
The encoding class name pool.protected java.util.Map<java.lang.String,java.lang.Integer>
encfragpool
The encoding fragment pool.protected java.util.Map<java.lang.String,java.lang.Integer>
encstringpool
The encoding string pool.
-
Constructor Summary
Constructors Constructor Description SerializationConfig(java.lang.String[] predefinedstrings)
Initializes the config.SerializationConfig(java.lang.String[] predefinedstrings, java.lang.String[] predefinedclassnames)
Deprecated.Class fragments merged with string pooling in v4.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
createDecodingClassnamePool2()
Returns pool for decoding v2 serialization streams.java.util.List<java.lang.String>
createDecodingClassnamePool3()
Returns pool for decoding v3 serialization streams.java.util.List<java.lang.String>
createDecodingFragPool2()
Returns pool for decoding v2 serialization streams.java.util.List<java.lang.String>
createDecodingFragPool3()
Returns pool for decoding v3 serialization streams.java.util.List<java.lang.String>
createDecodingStringPool2()
Returns pool for decoding v2 serialization streams.java.util.List<java.lang.String>
createDecodingStringPool3()
Returns pool for decoding v3 serialization streams.java.util.Map<java.lang.String,java.lang.Integer>
createEncodingClassnamePool()
Returns pool for encoding.java.util.Map<java.lang.String,java.lang.Integer>
createEncodingFragPool()
Returns pool for encoding.java.util.Map<java.lang.String,java.lang.Integer>
createEncodingStringPool()
Returns pool for encoding.protected void
predefineClassnames2(java.lang.String[] classnames)
Predefine class names, version 2.protected void
predefineClassnames3(java.lang.String[] classnames)
Predefine class names, version 3.
-
-
-
Field Detail
-
dec3stringpool
protected java.util.List<java.lang.String> dec3stringpool
The String pool v3.
-
dec3classnamepool
protected java.util.List<java.lang.String> dec3classnamepool
The class name pool v3.
-
dec3fragpool
protected java.util.List<java.lang.String> dec3fragpool
The package fragment pool v3.
-
dec2stringpool
protected java.util.List<java.lang.String> dec2stringpool
The String pool v2.
-
dec2classnamepool
protected java.util.List<java.lang.String> dec2classnamepool
The class name pool v2.
-
dec2fragpool
protected java.util.List<java.lang.String> dec2fragpool
The package fragment pool v2.
-
encstringpool
protected java.util.Map<java.lang.String,java.lang.Integer> encstringpool
The encoding string pool.
-
encclassnamepool
protected java.util.Map<java.lang.String,java.lang.Integer> encclassnamepool
The encoding class name pool.
-
encfragpool
protected java.util.Map<java.lang.String,java.lang.Integer> encfragpool
The encoding fragment pool.
-
-
Constructor Detail
-
SerializationConfig
public SerializationConfig(java.lang.String[] predefinedstrings)
Initializes the config.- Parameters:
predefinedclassnames
- Class names to predefine as known.
-
SerializationConfig
@Deprecated public SerializationConfig(java.lang.String[] predefinedstrings, java.lang.String[] predefinedclassnames)
Deprecated.Class fragments merged with string pooling in v4.Initializes the config.- Parameters:
predefinedclassnames
- Class names to predefine as known.
-
-
Method Detail
-
createEncodingStringPool
public java.util.Map<java.lang.String,java.lang.Integer> createEncodingStringPool()
Returns pool for encoding.- Returns:
- Encoding pool.
-
createEncodingFragPool
public java.util.Map<java.lang.String,java.lang.Integer> createEncodingFragPool()
Returns pool for encoding.- Returns:
- Encoding pool.
-
createEncodingClassnamePool
public java.util.Map<java.lang.String,java.lang.Integer> createEncodingClassnamePool()
Returns pool for encoding.- Returns:
- Encoding pool.
-
createDecodingStringPool3
public java.util.List<java.lang.String> createDecodingStringPool3()
Returns pool for decoding v3 serialization streams.- Returns:
- The pool.
-
createDecodingClassnamePool3
public java.util.List<java.lang.String> createDecodingClassnamePool3()
Returns pool for decoding v3 serialization streams.- Returns:
- The pool.
-
createDecodingFragPool3
public java.util.List<java.lang.String> createDecodingFragPool3()
Returns pool for decoding v3 serialization streams.- Returns:
- The pool.
-
createDecodingStringPool2
public java.util.List<java.lang.String> createDecodingStringPool2()
Returns pool for decoding v2 serialization streams.- Returns:
- The pool.
-
createDecodingClassnamePool2
public java.util.List<java.lang.String> createDecodingClassnamePool2()
Returns pool for decoding v2 serialization streams.- Returns:
- The pool.
-
createDecodingFragPool2
public java.util.List<java.lang.String> createDecodingFragPool2()
Returns pool for decoding v2 serialization streams.- Returns:
- The pool.
-
predefineClassnames3
protected void predefineClassnames3(java.lang.String[] classnames)
Predefine class names, version 3.- Parameters:
classnames
- Class names to predefine.
-
predefineClassnames2
protected void predefineClassnames2(java.lang.String[] classnames)
Predefine class names, version 2.- Parameters:
classnames
- Class names to predefine.
-
-