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()
ValueHandlerMultiFormatgetMaximumStreamFormatVersion in interface ValueHandlerMultiFormatpublic void writeValue(OutputStream out, Serializable value, byte streamFormatVersion)
ValueHandlerMultiFormatwriteValue in interface ValueHandlerMultiFormatpublic void writeValue(OutputStream _out, Serializable value)
writeValue in interface ValueHandlerout - 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 ValueHandlerin - 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 ValueHandlerclz - The class to return a repository ID for.public boolean isCustomMarshaled(Class clz)
isCustomMarshaled in interface ValueHandlerclz - The class to test for custom marshaling.public RunTime getRunTimeCodeBase()
getRunTimeCodeBase in interface ValueHandlerpublic boolean useFullValueDescription(Class clazz, String repositoryID) throws IOException
IOExceptionpublic Class getClassFromType(String id) throws ClassNotFoundException
ClassNotFoundExceptionpublic Class getAnyClassFromType(String id) throws ClassNotFoundException
ClassNotFoundExceptionpublic boolean isAbstractBase(Class clazz)
public boolean isSequence(String id)
public Serializable writeReplace(Serializable value)
writeReplace in interface ValueHandlervalue - the value to be marshaled.Copyright © 2018 JBoss by Red Hat. All rights reserved.