Пример #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;
        }