All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Ice.UnknownSlicedObject Maven / Gradle / Ivy

Go to download

Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

package Ice;

/**
 * Unknown sliced object holds an instance of unknown type.
 **/
public final class UnknownSlicedObject extends ObjectImpl
{
    /**
     * Instantiates the class for an Ice object having the given Slice type.
     *
     * @param unknownTypeId The Slice type ID of the unknown object.
     **/
    public
    UnknownSlicedObject(String unknownTypeId)
    {
        _unknownTypeId = unknownTypeId;
    }

    /**
     * Determine the Slice type ID associated with this object.
     *
     * @return The type ID.
     **/
    public String
    getUnknownTypeId()
    {
        return _unknownTypeId;
    }

    @Override
    public void
    __write(IceInternal.BasicStream __os)
    {
        __os.startWriteObject(_slicedData);
        __os.endWriteObject();
    }

    @Override
    public void
    __read(IceInternal.BasicStream __is)
    {
        __is.startReadObject();
        _slicedData = __is.endReadObject(true);
    }

    private final String _unknownTypeId;
    private SlicedData _slicedData;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy