Ejemplo n.º 1
0
 /// <exception cref="System.IO.IOException"/>
 internal override void LeaveEnclosingElement()
 {
     if (tagQ.Count == 0)
     {
         throw new IOException("Tried to exit non-existent enclosing element " + "in FSImage file"
                               );
     }
     ImageVisitor.ImageElement element = tagQ.Pop();
     Write("</" + element.ToString() + ">\n");
 }
Ejemplo n.º 2
0
 /// <exception cref="System.IO.IOException"/>
 internal override void VisitEnclosingElement(ImageVisitor.ImageElement element, ImageVisitor.ImageElement
                                              key, string value)
 {
     Write("<" + element.ToString() + " " + key + "=\"" + value + "\">\n");
     tagQ.Push(element);
 }
Ejemplo n.º 3
0
 /// <exception cref="System.IO.IOException"/>
 internal override void VisitEnclosingElement(ImageVisitor.ImageElement element)
 {
     Write("<" + element.ToString() + ">\n");
     tagQ.Push(element);
 }
Ejemplo n.º 4
0
 /// <exception cref="System.IO.IOException"/>
 internal override void Visit(ImageVisitor.ImageElement element, string value)
 {
     WriteTag(element.ToString(), value);
 }