Ice.PropertyDictHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice Show documentation
Show all versions of ice Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
// **********************************************************************
//
// Copyright (c) 2003-2018 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.
//
// **********************************************************************
//
// Ice version 3.6.5
//
//
//
// Generated from file `PropertiesAdmin.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
public final class PropertyDictHelper
{
public static void
write(IceInternal.BasicStream __os, java.util.Map __v)
{
if(__v == null)
{
__os.writeSize(0);
}
else
{
__os.writeSize(__v.size());
for(java.util.Map.Entry __e : __v.entrySet())
{
__os.writeString(__e.getKey());
__os.writeString(__e.getValue());
}
}
}
public static java.util.Map
read(IceInternal.BasicStream __is)
{
java.util.Map __v;
__v = new java.util.HashMap();
int __sz0 = __is.readSize();
for(int __i0 = 0; __i0 < __sz0; __i0++)
{
String __key;
__key = __is.readString();
String __value;
__value = __is.readString();
__v.put(__key, __value);
}
return __v;
}
}