IT. Expert System.

Java Standard Edition (SE)

ValueHandler


javax.rmi.CORBA

Interface ValueHandler

  • All Known Subinterfaces:
    ValueHandlerMultiFormat


    public interface ValueHandler
    Defines methods which allow serialization of Java objects to and from GIOP streams.
    • Method Detail

      • writeValue

        void writeValue(OutputStream out,
                        Serializable value)
        Writes a value to the stream using Java semantics.
        Parameters:
        out - the stream to write the value to.
        value - the value to be written to the stream.
      • readValue

        Serializable readValue(InputStream in,
                               int offset,
                               Class clz,
                               String repositoryID,
                               RunTime sender)
        Reads a value from the stream using Java semantics.
        Parameters:
        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.
        Returns:
        the value read from the stream.
      • getRMIRepositoryID

        String getRMIRepositoryID(Class clz)
        Returns the CORBA RepositoryId for the given Java class.
        Parameters:
        clz - a Java class.
        Returns:
        the CORBA RepositoryId for the class.
      • isCustomMarshaled

        boolean isCustomMarshaled(Class clz)
        Indicates whether the given class performs custom or default marshaling.
        Parameters:
        clz - the class to test for custom marshaling.
        Returns:
        true if the class performs custom marshaling, false if it does not.
      • getRunTimeCodeBase

        RunTime getRunTimeCodeBase()
        Returns the CodeBase for this ValueHandler. This is used by the ORB runtime. The server sends the service context containing the IOR for this CodeBase on the first GIOP reply. The client does the same on the first GIOP request.
        Returns:
        the SendingContext.CodeBase of this ValueHandler.
      • writeReplace

        Serializable writeReplace(Serializable value)
        If the value contains a writeReplace method then the result is returned. Otherwise, the value itself is returned.
        Parameters:
        value - the value to be marshaled.
        Returns:
        the true value to marshal on the wire.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 259 / 158732930. Delta: 0.04053 с