public 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 |
| Constructor and Description |
|---|
ValueHandlerImpl() |
ValueHandlerImpl(boolean isInputStream) |
| 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) |
protected String |
getInputStreamClassName() |
protected TCKind |
getJavaCharTCKind()
Our JDK 1.3 and JDK 1.3.1 behavior subclasses override this.
|
byte |
getMaximumStreamFormatVersion()
Returns the maximum stream format version for RMI/IDL custom value types that is supported by this ValueHandler
object.
|
protected String |
getOutputStreamClassName() |
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) |
protected void |
readCharArray(InputStream in,
char[] array,
int offset,
int length)
Encapsulates reading of Java char arrays so that the 1.3 subclass can override it without exposing internals
across packages.
|
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.
|
protected void |
writeCharArray(OutputStream out,
char[] array,
int offset,
int length)
Encapsulates writing of Java char arrays so that the 1.3 subclass can override it without exposing internals
across packages.
|
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 ValueHandlerImpl()
public ValueHandlerImpl(boolean isInputStream)
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.protected void writeCharArray(OutputStream out, char[] array, int offset, int length)
protected void readCharArray(InputStream in, char[] array, int offset, int length)
protected String getOutputStreamClassName()
protected String getInputStreamClassName()
protected TCKind getJavaCharTCKind()
Copyright © 2023 JBoss by Red Hat. All rights reserved.