Esempio n. 1
0
        private void  InitBlock()
        {
            ExtUtil.writeNumeric(out_Renamed, attributes.size());

            for (TreeElement e: attributes)
            {
                ExtUtil.write(out_Renamed, e.getNamespace());
                ExtUtil.write(out_Renamed, e.getName());
                ExtUtil.write(out_Renamed, e.getAttributeValue());
            }
            int size = (int)ExtUtil.readNumeric(in_Renamed);

            List <TreeElement> attributes = new List <TreeElement>();

            for (int i = 0; i < size; ++i)
            {
                System.String namespace_Renamed = ExtUtil.readString(in_Renamed);
                System.String name          = ExtUtil.readString(in_Renamed);
                System.String value_Renamed = ExtUtil.readString(in_Renamed);

                TreeElement attr = TreeElement.constructAttributeElement(namespace_Renamed, name, value_Renamed);
                attr.setParent(parent);
                attributes.addElement(attr);
            }
            return(attributes);

            ExtUtil.stringCache = stringCache;
        }
Esempio n. 2
0
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public override void writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            System.Collections.ArrayList v = (System.Collections.ArrayList)val;

            ExtUtil.writeNumeric(out_Renamed, v.Count);
            for (int i = 0; i < v.Count; i++)
            {
                ExtUtil.write(out_Renamed, new ExtWrapTagged(v[i]));
            }
        }
Esempio n. 3
0
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public override void writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            System.Collections.ArrayList v = (System.Collections.ArrayList)val;

            ExtUtil.writeNumeric(out_Renamed, v.Count);
            for (int i = 0; i < v.Count; i++)
            {
                ExtUtil.write(out_Renamed, type == null ? v[i] : type.clone(v[i]));
            }
        }
Esempio n. 4
0
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     if (val != null)
     {
         out_Renamed.Write(true);
         ExtUtil.write(out_Renamed, val);
     }
     else
     {
         out_Renamed.Write(false);
     }
 }
Esempio n. 5
0
        //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
        public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
        {
            //UPGRADE_TODO: Class 'java.util.HashMap' was converted to 'System.Collections.Hashtable' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilHashMap'"
            System.Collections.Hashtable h = (System.Collections.Hashtable)val;

            ExtUtil.writeNumeric(out_Renamed, h.Count);

            for (Object key: h.keySet())
            {
                //UPGRADE_TODO: Method 'java.util.HashMap.get' was converted to 'System.Collections.Hashtable.Item' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javautilHashMapget_javalangObject'"
                System.Object elem = h[key];

                ExtUtil.write(out_Renamed, keyType == null?key:keyType.clone(key));
                ExtUtil.write(out_Renamed, new ExtWrapTagged(elem));
            }
        }
Esempio n. 6
0
 //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
 public override void  writeExternal(System.IO.BinaryWriter out_Renamed)
 {
     writeTag(out_Renamed, val);
     ExtUtil.write(out_Renamed, val);
 }