public final class SerializationPolicyLoader extends Object
SerializationPolicy
.Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_FIELDS_KEYWORD
Keyword for listing the serializable fields of an enchanced class that are
visible to client code.
|
static String |
FINAL_FIELDS_KEYWORD
Keyword for final field serialization strategy.
|
static String |
SERIALIZATION_POLICY_FILE_ENCODING
Default encoding for serialization policy files.
|
Modifier and Type | Method and Description |
---|---|
static String |
getSerializationPolicyFileName(String serializationPolicyStrongName)
Returns the serialization policy file name from the serialization
policy strong name.
|
static SerializationPolicy |
loadFromStream(InputStream inputStream)
Deprecated.
|
static SerializationPolicy |
loadFromStream(InputStream inputStream,
List<ClassNotFoundException> classNotFoundExceptions)
Loads a SerializationPolicy from an input stream and optionally record any
ClassNotFoundException s. |
public static final String CLIENT_FIELDS_KEYWORD
public static final String FINAL_FIELDS_KEYWORD
public static final String SERIALIZATION_POLICY_FILE_ENCODING
public static String getSerializationPolicyFileName(String serializationPolicyStrongName)
serializationPolicyStrongName
- the serialization policy strong name@Deprecated public static SerializationPolicy loadFromStream(InputStream inputStream) throws IOException, ParseException, ClassNotFoundException
loadFromStream(InputStream, List)
inputStream
- stream to load fromSerializationPolicy
loaded from the input streamIOException
- if an error occurs while reading the streamParseException
- if the input stream is not properly formattedClassNotFoundException
- if a class specified in the serialization
policy cannot be loadedpublic static SerializationPolicy loadFromStream(InputStream inputStream, List<ClassNotFoundException> classNotFoundExceptions) throws IOException, ParseException
ClassNotFoundException
s.inputStream
- stream to load the SerializationPolicy from.classNotFoundExceptions
- if not null
, all of the
ClassNotFoundException
s thrown while loading this
serialization policy will be added to this listSerializationPolicy
loaded from the input stream.IOException
- if an error occurs while reading the streamParseException
- if the input stream is not properly formattedCopyright © 2018. All rights reserved.