hep.aida.ref.xml.ascii
Class AidaAsciiXMLWriter

java.lang.Object
  extended by hep.aida.ref.xml.ascii.AidaAsciiXMLWriter
All Implemented Interfaces:
WBXMLTagWriter

public class AidaAsciiXMLWriter
extends Object
implements WBXMLTagWriter

Delegates the writing of tags to an ASCII XML Writer

Version:
$Id$
Author:
Mark Donszelmann

Constructor Summary
AidaAsciiXMLWriter(Writer writer)
           
 
Method Summary
 void close()
           
 void closeDoc()
           
 void closeTag()
           
 void openDoc()
           
 void openDoc(String version, String encoding, boolean standalone)
           
 void openTag(int tag)
           
 void print(String text)
           
 void printComment(String comment)
           
 void printTag(int tag)
           
 void referToDTD(String name, String system)
           
 void referToDTD(String name, String pid, String ref)
           
 void setAttribute(int tag, boolean value)
           
 void setAttribute(int tag, boolean[] value, int offset, int length)
           
 void setAttribute(int tag, byte value)
           
 void setAttribute(int tag, byte[] value, int offset, int length)
           
 void setAttribute(int tag, char value)
           
 void setAttribute(int tag, char[] value, int offset, int length)
           
 void setAttribute(int tag, Color value)
           
 void setAttribute(int tag, Color[] value, int offset, int length)
           
 void setAttribute(int tag, double value)
           
 void setAttribute(int tag, double[] value, int offset, int length)
           
 void setAttribute(int tag, float value)
           
 void setAttribute(int tag, float[] value, int offset, int length)
           
 void setAttribute(int tag, int value)
           
 void setAttribute(int tag, int[] value, int offset, int length)
           
 void setAttribute(int tag, long value)
           
 void setAttribute(int tag, long[] value, int offset, int length)
           
 void setAttribute(int tag, short value)
           
 void setAttribute(int tag, short[] value, int offset, int length)
           
 void setAttribute(int tag, String value)
           
 void setAttribute(int tag, String[] value, int offset, int length)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AidaAsciiXMLWriter

public AidaAsciiXMLWriter(Writer writer)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface WBXMLTagWriter
Throws:
IOException

closeDoc

public void closeDoc()
              throws IOException
Specified by:
closeDoc in interface WBXMLTagWriter
Throws:
IOException

closeTag

public void closeTag()
              throws IOException
Specified by:
closeTag in interface WBXMLTagWriter
Throws:
IOException

openDoc

public void openDoc()
             throws IOException
Specified by:
openDoc in interface WBXMLTagWriter
Throws:
IOException

openDoc

public void openDoc(String version,
                    String encoding,
                    boolean standalone)
             throws IOException
Specified by:
openDoc in interface WBXMLTagWriter
Throws:
IOException

openTag

public void openTag(int tag)
             throws IOException
Specified by:
openTag in interface WBXMLTagWriter
Throws:
IOException

print

public void print(String text)
           throws IOException
Specified by:
print in interface WBXMLTagWriter
Throws:
IOException

printComment

public void printComment(String comment)
                  throws IOException
Specified by:
printComment in interface WBXMLTagWriter
Throws:
IOException

printTag

public void printTag(int tag)
              throws IOException
Specified by:
printTag in interface WBXMLTagWriter
Throws:
IOException

referToDTD

public void referToDTD(String name,
                       String system)
Specified by:
referToDTD in interface WBXMLTagWriter

referToDTD

public void referToDTD(String name,
                       String pid,
                       String ref)
Specified by:
referToDTD in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         String value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         String[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         Color value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         Color[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         byte value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         byte[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         char value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         char[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         long value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         long[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         int value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         int[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         short value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         short[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         boolean value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         boolean[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         float value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         float[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         double value)
Specified by:
setAttribute in interface WBXMLTagWriter

setAttribute

public void setAttribute(int tag,
                         double[] value,
                         int offset,
                         int length)
Specified by:
setAttribute in interface WBXMLTagWriter


Copyright © 2000-2013 FreeHEP. All Rights Reserved.