Package org.apache.harmony.rmi

Examples of org.apache.harmony.rmi.MarshalledObjectOutputStream


    private final int hash;

    public MarshalledObject(T obj) throws IOException {
        ByteArrayOutputStream objStream = new ByteArrayOutputStream();
        MarshalledObjectOutputStream moStream = new MarshalledObjectOutputStream(objStream);
        moStream.writeObject(obj);
        moStream.flush();
        objBytes = objStream.toByteArray();
        locBytes = moStream.getLocBytes();

        // calculate hash code
        int hash = 0;

        for (int i = 0; i < objBytes.length; ++i) {
View Full Code Here


    private final int hash;

    public MarshalledObject(Object obj) throws IOException {
        ByteArrayOutputStream objStream = new ByteArrayOutputStream();
        MarshalledObjectOutputStream moStream = new MarshalledObjectOutputStream(objStream);
        moStream.writeObject(obj);
        moStream.flush();
        objBytes = objStream.toByteArray();
        locBytes = moStream.getLocBytes();

        // calculate hash code
        int hash = 0;

        for (int i = 0; i < objBytes.length; ++i) {
View Full Code Here

TOP

Related Classes of org.apache.harmony.rmi.MarshalledObjectOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.