java.lang.Object
com.zeroc.IceGrid.TemplateDescriptorDictHelper
Helper class for marshaling/unmarshaling TemplateDescriptorDict.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,
TemplateDescriptor> read
(InputStream istr) Unmarshals a dictionary ofTemplateDescriptorDict
from an input stream.static Optional<Map<String,
TemplateDescriptor>> read
(InputStream istr, int tag) Unmarshals an optional dictionary ofTemplateDescriptorDict
from an input stream.static void
write
(OutputStream ostr, int tag, Map<String, TemplateDescriptor> v) Marshals an optional dictionary ofTemplateDescriptorDict
into an output stream.static void
write
(OutputStream ostr, int tag, Optional<Map<String, TemplateDescriptor>> v) Marshals an optional dictionary ofTemplateDescriptorDict
into an output stream.static void
write
(OutputStream ostr, Map<String, TemplateDescriptor> v) Marshals a dictionary ofTemplateDescriptorDict
into an output stream.
-
Constructor Details
-
TemplateDescriptorDictHelper
public TemplateDescriptorDictHelper()
-
-
Method Details
-
write
Marshals a dictionary ofTemplateDescriptorDict
into an output stream.- Parameters:
ostr
- the output streamv
- the dictionary to marshal
-
read
Unmarshals a dictionary ofTemplateDescriptorDict
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the dictionary
-
write
Marshals an optional dictionary ofTemplateDescriptorDict
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the dictionary to marshal
-
write
Marshals an optional dictionary ofTemplateDescriptorDict
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the dictionary to marshal
-
read
Unmarshals an optional dictionary ofTemplateDescriptorDict
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the dictionary
-