public final class ValueHandlerImpl extends Object implements ValueHandlerMultiFormat
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_VERSION_PROPERTY |
static short |
kAbstractType |
static short |
kRemoteType |
static short |
kValueType |
Modifier and Type | Method and Description |
---|---|
String |
createForAnyType(Class cl) |
Class |
getAnyClassFromType(String id) |
Class |
getClassFromType(String id) |
String |
getClassName(String id) |
String |
getDefinedInId(String id) |
byte |
getMaximumStreamFormatVersion()
Returns the maximum stream format version for
RMI/IDL custom value types that is supported
by this ValueHandler object.
|
String |
getRMIRepositoryID(Class clz)
Returns the repository ID for the given RMI value Class.
|
RunTime |
getRunTimeCodeBase()
Returns the CodeBase for this ValueHandler.
|
String |
getSerialVersionUID(String id) |
String |
getUnqualifiedName(String id) |
boolean |
isAbstractBase(Class clazz) |
boolean |
isCustomMarshaled(Class clz)
Indicates whether the given Class performs custom or
default marshaling.
|
boolean |
isSequence(String id) |
Serializable |
readValue(InputStream _in,
int offset,
Class clazz,
String repositoryID,
RunTime _sender)
Reads a value from the stream using java semantics.
|
boolean |
useFullValueDescription(Class clazz,
String repositoryID)
Returns a boolean of whether or not RepositoryId indicates
FullValueDescriptor.
|
Serializable |
writeReplace(Serializable value)
If the value contains a writeReplace method then the result
is returned.
|
void |
writeValue(OutputStream _out,
Serializable value)
Writes the value to the stream using java semantics.
|
void |
writeValue(OutputStream out,
Serializable value,
byte streamFormatVersion)
Allows the ORB to pass the stream format
version for RMI/IDL custom value types.
|
public static final String FORMAT_VERSION_PROPERTY
public static final short kRemoteType
public static final short kAbstractType
public static final short kValueType
public byte getMaximumStreamFormatVersion()
ValueHandlerMultiFormat
getMaximumStreamFormatVersion
in interface ValueHandlerMultiFormat
public void writeValue(OutputStream out, Serializable value, byte streamFormatVersion)
ValueHandlerMultiFormat
writeValue
in interface ValueHandlerMultiFormat
public void writeValue(OutputStream _out, Serializable value)
writeValue
in interface ValueHandler
out
- The stream to write the value tovalue
- The value to be written to the streampublic Serializable readValue(InputStream _in, int offset, Class clazz, String repositoryID, RunTime _sender)
readValue
in interface ValueHandler
in
- The stream to read the value fromclazz
- The type of the value to be read insender
- The sending context runtimepublic String getRMIRepositoryID(Class clz)
getRMIRepositoryID
in interface ValueHandler
clz
- The class to return a repository ID for.public boolean isCustomMarshaled(Class clz)
isCustomMarshaled
in interface ValueHandler
clz
- The class to test for custom marshaling.public RunTime getRunTimeCodeBase()
getRunTimeCodeBase
in interface ValueHandler
public boolean useFullValueDescription(Class clazz, String repositoryID) throws IOException
IOException
public Class getClassFromType(String id) throws ClassNotFoundException
ClassNotFoundException
public Class getAnyClassFromType(String id) throws ClassNotFoundException
ClassNotFoundException
public boolean isAbstractBase(Class clazz)
public boolean isSequence(String id)
public Serializable writeReplace(Serializable value)
writeReplace
in interface ValueHandler
value
- the value to be marshaled.Copyright © 2021 JBoss by Red Hat. All rights reserved.