コード例 #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);
        }
コード例 #2
0
 public BinaryTagWriter(Stream stream)
 {
     _state  = new TagState(FileAccess.Write);
     _stream = stream;
 }
コード例 #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;
 }
コード例 #4
0
 public TR2(Stream stream)
 {
     _stream = stream;
     _state  = new TagState(FileAccess.Read);
 }