public class Utils extends Utils
Title: Object Mediation Framework
Description: Defines serialization-related utilities.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List |
analyze(byte[] buffer)
Analyzes the specified buffer and returns semantic type and version of all non-system objects deserialized in this buffer.
|
static java.util.List |
analyze(java.io.DataInputStream stream)
Analyzes the specified stream and returns semantic type and version of all non-system objects deserialized in this stream.
|
static java.lang.String |
deserialize(java.io.DataInputStream input) |
static boolean |
isObsolete(byte[] buffer)
Checks if the specified buffer contains any deserialized object that has an obsolete
Serial Version Unique Identifier . |
static boolean |
isObsolete(java.io.DataInputStream stream)
Checks if the specified stream contains any deserialized object that has an obsolete
Serial Version Unique Identifier . |
static void |
serialize(java.lang.String str,
java.io.DataOutputStream output) |
bytesToHex, createMap, equals, equals, equalsNullSafe, equalsNullSafe, equalsNullSafe, formatException, formatException, formatException, formatExceptionWithUnrepeatedCauses, formatExceptionWithUnrepeatedCauses, getCause, getCauseAssignable, isEmpty, min, readByteArray, readInt, readLong, recreate, removeAll, sleep, sleepNoInterrupt, toTimeString, unwrapInvokeException, writeInt, writeLong
clone, getSerialVersionUID
public static void serialize(java.lang.String str, java.io.DataOutputStream output) throws JSerializerException
JSerializerException
public static java.lang.String deserialize(java.io.DataInputStream input) throws JSerializerException
JSerializerException
public static java.util.List analyze(byte[] buffer) throws JSerializerException
buffer
- the buffer to be analyzed.JSerializerException
- if some serialization error occurs.public static java.util.List analyze(java.io.DataInputStream stream) throws JSerializerException
stream
- the stream to be analyzed.JSerializerException
- if some serialization error occurs.public static boolean isObsolete(byte[] buffer) throws FactoryManagerException, JSerializerException
Serial Version Unique Identifier
.
(see SemanticType.getSerialVersionUID()
).buffer
- the buffer to be checked.true
if the specified buffer contains any deserialized object with an obsolete serialVersionUID
,
false
otherwise.JSerializerException
- if some serialization error occurs.FactoryManagerException
public static boolean isObsolete(java.io.DataInputStream stream) throws JSerializerException
Serial Version Unique Identifier
.
(see SemanticType.getSerialVersionUID()
).buffer
- the stream to be checked.true
if the specified stream contains any deserialized object with an obsolete serialVersionUID
,
false
otherwise.JSerializerException
- if some serialization error occurs.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.