public class ValueHandlerImpl_1_3 extends ValueHandlerImpl
FORMAT_VERSION_PROPERTY, kAbstractType, kRemoteType, kValueType
Constructor and Description |
---|
ValueHandlerImpl_1_3() |
ValueHandlerImpl_1_3(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.
|
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)
Preserves the incorrect 1.3 behavior which truncates Java chars in arrays to 8-bit CORBA chars.
|
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)
Preserves the incorrect 1.3 behavior which truncates Java chars in arrays to 8-bit CORBA chars.
|
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.
|
getMaximumStreamFormatVersion, writeValue
public ValueHandlerImpl_1_3()
public ValueHandlerImpl_1_3(boolean isInputStream)
public void writeValue(OutputStream _out, Serializable value)
writeValue
in interface ValueHandler
writeValue
in class ValueHandlerImpl
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
readValue
in class ValueHandlerImpl
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
getRMIRepositoryID
in class ValueHandlerImpl
clz
- The class to return a repository ID for.public boolean isCustomMarshaled(Class<?> clz)
isCustomMarshaled
in interface ValueHandler
isCustomMarshaled
in class ValueHandlerImpl
clz
- The class to test for custom marshaling.public RunTime getRunTimeCodeBase()
getRunTimeCodeBase
in interface ValueHandler
getRunTimeCodeBase
in class ValueHandlerImpl
public Serializable writeReplace(Serializable value)
writeReplace
in interface ValueHandler
writeReplace
in class ValueHandlerImpl
value
- the value to be marshaled.public boolean useFullValueDescription(Class<?> clazz, String repositoryID) throws IOException
useFullValueDescription
in class ValueHandlerImpl
IOException
public String getClassName(String id)
getClassName
in class ValueHandlerImpl
public Class<?> getClassFromType(String id) throws ClassNotFoundException
getClassFromType
in class ValueHandlerImpl
ClassNotFoundException
public Class<?> getAnyClassFromType(String id) throws ClassNotFoundException
getAnyClassFromType
in class ValueHandlerImpl
ClassNotFoundException
public String createForAnyType(Class<?> cl)
createForAnyType
in class ValueHandlerImpl
public String getDefinedInId(String id)
getDefinedInId
in class ValueHandlerImpl
public String getUnqualifiedName(String id)
getUnqualifiedName
in class ValueHandlerImpl
public String getSerialVersionUID(String id)
getSerialVersionUID
in class ValueHandlerImpl
public boolean isAbstractBase(Class<?> clazz)
isAbstractBase
in class ValueHandlerImpl
public boolean isSequence(String id)
isSequence
in class ValueHandlerImpl
protected void writeCharArray(OutputStream out, char[] array, int offset, int length)
writeCharArray
in class ValueHandlerImpl
protected void readCharArray(InputStream in, char[] array, int offset, int length)
readCharArray
in class ValueHandlerImpl
protected final String getOutputStreamClassName()
getOutputStreamClassName
in class ValueHandlerImpl
protected final String getInputStreamClassName()
getInputStreamClassName
in class ValueHandlerImpl
protected TCKind getJavaCharTCKind()
getJavaCharTCKind
in class ValueHandlerImpl
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.