IceStorm.TopicDictHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icestorm-compat Show documentation
Show all versions of icestorm-compat Show documentation
Publish-subscribe event distribution service
// **********************************************************************
//
// 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.7.1
//
//
//
// Generated from file `IceStorm.ice'
//
// Warning: do not edit this file.
//
//
//
package IceStorm;
public final class TopicDictHelper
{
public static void
write(Ice.OutputStream ostr, java.util.Map v)
{
if(v == null)
{
ostr.writeSize(0);
}
else
{
ostr.writeSize(v.size());
for(java.util.Map.Entry e : v.entrySet())
{
ostr.writeString(e.getKey());
TopicPrxHelper.write(ostr, e.getValue());
}
}
}
public static java.util.Map
read(Ice.InputStream istr)
{
java.util.Map v;
v = new java.util.HashMap();
int sz0 = istr.readSize();
for(int i0 = 0; i0 < sz0; i0++)
{
String key;
key = istr.readString();
TopicPrx value;
value = TopicPrxHelper.read(istr);
v.put(key, value);
}
return v;
}
}