public interface ValueHandler
Modifier and Type | Method and Description |
---|---|
String |
getRMIRepositoryID(Class clz)
Returns the CORBA RepositoryId for the given Java class.
|
RunTime |
getRunTimeCodeBase()
Returns the CodeBase for this ValueHandler.
|
boolean |
isCustomMarshaled(Class clz)
Indicates whether the given class performs custom or
default marshaling.
|
Serializable |
readValue(InputStream in,
int offset,
Class clz,
String repositoryID,
RunTime sender)
Reads a value from the stream using Java semantics.
|
Serializable |
writeReplace(Serializable value)
If the value contains a
writeReplace method then the result
is returned. |
void |
writeValue(OutputStream out,
Serializable value)
Writes a value to the stream using Java semantics.
|
void writeValue(OutputStream out, Serializable value)
out
- the stream to write the value to.value
- the value to be written to the stream.Serializable readValue(InputStream in, int offset, Class clz, String repositoryID, RunTime sender)
in
- the stream to read the value from.offset
- the current position in the input stream.clz
- the type of the value to be read in.repositoryID
- the RepositoryId of the value to be read in.sender
- the sending context runtime codebase.String getRMIRepositoryID(Class clz)
clz
- a Java class.boolean isCustomMarshaled(Class clz)
clz
- the class to test for custom marshaling.true
if the class performs custom marshaling, false
if it does not.RunTime getRunTimeCodeBase()
Serializable writeReplace(Serializable value)
writeReplace
method then the result
is returned. Otherwise, the value itself is returned.value
- the value to be marshaled. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.