blob: 05d40253d7c8f4d97ebbc36dfcf9b300c7dee80c (
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
|
// **********************************************************************
//
// Copyright (c) 2003-2013 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;
/**
* Applications that make use of compact type IDs to conserve space
* when marshaling class instances, and also use the streaming API to
* extract such classes, can intercept the translation between compact
* type IDs and their corresponding string type IDs by installing an
* instance of <code>CompactIdResolver</code> in <code>InitializationData</code>.
**/
public interface CompactIdResolver
{
/**
* Translates a compact (integer) ID into its string equivalent.
*
* @param id The compact ID.
* @return A string type ID (such as <code>"::Module::Class"</code>),
* or an empty string if the compact ID is unknown.
**/
String resolve(int id);
}
|