Esempio n. 1
0
        public XmlTagWriter(Stream stream)
        {
            XmlWriterSettings settings;

            settings = new XmlWriterSettings
            {
                Indent   = true,
                Encoding = Encoding.UTF8
            };

            _state  = new TagState(FileAccess.Write);
            _writer = XmlWriter.Create(stream, settings);
        }
Esempio n. 2
0
 public BinaryTagWriter(Stream stream)
 {
     _state  = new TagState(FileAccess.Write);
     _stream = stream;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor. <see cref="XmlWriter"/>
 /// </summary>
 /// <param name="writer">The writer.</param>
 public XmlTagWriter(XmlWriter writer)
 {
     _state  = new TagState(FileAccess.Write);
     _writer = writer;
 }
Esempio n. 4
0
 public TR2(Stream stream)
 {
     _stream = stream;
     _state  = new TagState(FileAccess.Read);
 }