blob: 0e75ab9ae6b0a327a459288e8d0c4089fbadc91c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// **********************************************************************
//
// Copyright (c) 2003-2014 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;
}
|