Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
java.rmi

Class MarshalledObject<T>

  • Type Parameters:
    T - the type of the object contained in this MarshalledObject
    All Implemented Interfaces:
    Serializable

    public final class MarshalledObject<T>
    extends Object
    implements Serializable
    A MarshalledObject contains a byte stream with the serialized representation of an object given to its constructor. The get method returns a new copy of the original object, as deserialized from the contained byte stream. The contained object is serialized and deserialized with the same serialization semantics used for marshaling and unmarshaling parameters and return values of RMI calls: When the serialized form is created:
    • classes are annotated with a codebase URL from where the class can be loaded (if available), and
    • any remote object in the MarshalledObject is represented by a serialized instance of its stub.

    When copy of the object is retrieved (via the get method), if the class is not available locally, it will be loaded from the appropriate location (specified the URL annotated with the class descriptor when the class was serialized.

    MarshalledObject facilitates passing objects in RMI calls that are not automatically deserialized immediately by the remote peer.

    Since:
    1.2
    See Also:
    Serialized Form
    • Constructor Detail

      • MarshalledObject

        public MarshalledObject(T obj)
                         throws IOException
        Creates a new MarshalledObject that contains the serialized representation of the current state of the supplied object. The object is serialized with the semantics used for marshaling parameters for RMI calls.
        Parameters:
        obj - the object to be serialized (must be serializable)
        Throws:
        IOException - if an IOException occurs; an IOException may occur if obj is not serializable.
        Since:
        1.2
    • Method Detail

      • get

        public T get()
              throws IOException,
                     ClassNotFoundException
        Returns a new copy of the contained marshalledobject. The internal representation is deserialized with the semantics used for unmarshaling paramters for RMI calls.
        Returns:
        a copy of the contained object
        Throws:
        IOException - if an IOException occurs while deserializing the object from its internal representation.
        ClassNotFoundException - if a ClassNotFoundException occurs while deserializing the object from its internal representation. could not be found
        Since:
        1.2
      • equals

        public boolean equals(Object obj)
        Compares this MarshalledObject to another object. Returns true if and only if the argument refers to a MarshalledObject that contains exactly the same serialized representation of an object as this one does. The comparison ignores any class codebase annotation, meaning that two objects are equivalent if they have the same serialized representation except for the codebase of each class in the serialized representation.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare with this MarshalledObject
        Returns:
        true if the argument contains an equaivalent serialized object; false otherwise
        Since:
        1.2
        See Also:
        Object.hashCode(), HashMap

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-java/rmi/MarshalledObject.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut