Exemplo 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);
        }
Exemplo n.º 2
0
 public BinaryTagWriter(Stream stream)
 {
     _state  = new TagState(FileAccess.Write);
     _stream = stream;
 }
Exemplo 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;
 }
Exemplo n.º 4
0
 public TR2(Stream stream)
 {
     _stream = stream;
     _state  = new TagState(FileAccess.Read);
 }