FreeHEP API
Version v1.2.2

hep.graphics.heprep.xml
Class XMLHepRepWriter

java.lang.Object
  |
  +--hep.graphics.heprep.xml.XMLHepRepWriter
All Implemented Interfaces:
HepRepWriter

public class XMLHepRepWriter
extends Object
implements HepRepWriter

Version:
$Id: XMLHepRepWriter.java,v 1.35 2003/12/03 17:57:14 duns Exp $
Author:
M.Donszelmann

Field Summary
static String cvsId
           
 
Constructor Summary
XMLHepRepWriter(OutputStream out, boolean randomAccess, boolean compress)
           
XMLHepRepWriter(Writer out)
           
 
Method Summary
 void close()
          Closes the writer and its underlying stream.
 void setBitEncoding(boolean bitEncoding)
           
 void write(HepRepAction action)
          Writes a HepRepAction.
 void write(HepRepAttDef attDef)
          Writes a HepRepAttDef.
 void write(HepRepAttribute attribute)
          Writes a HepRepAttribute.
 void write(HepRepAttValue attValue)
          Writes a HepRepAttValue.
 void write(HepRepDefinition definition)
          Writes a HepRepDefinition.
 void write(HepRepInstance instance)
          Writes a HepRepInstance.
 void write(HepRepInstanceTree instanceTree)
          Writes a HepRepInstanceTree.
 void write(HepRepPoint point)
          Writes a HepRepPoint.
 void write(HepRep heprep, String name)
          Writes a HepRep.
 void write(HepRepTreeID treeID)
          Writes a HepRepTreeID.
 void write(HepRepType type)
          Writes a HepRepType.
 void write(HepRepTypeTree typeTree)
          Writes a HepRepTypeTree.
 void write(List layers)
          Writes the layerOrder.
 void write(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cvsId

public static final String cvsId
See Also:
Constant Field Values
Constructor Detail

XMLHepRepWriter

public XMLHepRepWriter(OutputStream out,
                       boolean randomAccess,
                       boolean compress)
                throws IOException

XMLHepRepWriter

public XMLHepRepWriter(Writer out)
Method Detail

setBitEncoding

public void setBitEncoding(boolean bitEncoding)

close

public void close()
           throws IOException
Description copied from interface: HepRepWriter
Closes the writer and its underlying stream.

Specified by:
close in interface HepRepWriter
Throws:
IOException - in case of a stream problem.

write

public void write(Object object)
           throws IOException
IOException

write

public void write(HepRep heprep,
                  String name)
           throws IOException
Description copied from interface: HepRepWriter
Writes a HepRep.

Specified by:
write in interface HepRepWriter
Parameters:
heprep - to be written.
name - for the heprep to be written (for tagged access), may be ommited.
Throws:
IOException - in case of a stream problem.

write

public void write(List layers)
Description copied from interface: HepRepWriter
Writes the layerOrder.

Specified by:
write in interface HepRepWriter
Parameters:
layers - to be written.

write

public void write(HepRepTypeTree typeTree)
Description copied from interface: HepRepWriter
Writes a HepRepTypeTree.

Specified by:
write in interface HepRepWriter
Parameters:
typeTree - to be written.

write

public void write(HepRepType type)
Description copied from interface: HepRepWriter
Writes a HepRepType.

Specified by:
write in interface HepRepWriter
Parameters:
type - to be written.

write

public void write(HepRepTreeID treeID)
Description copied from interface: HepRepWriter
Writes a HepRepTreeID.

Specified by:
write in interface HepRepWriter
Parameters:
treeID - to be written.

write

public void write(HepRepAction action)
Description copied from interface: HepRepWriter
Writes a HepRepAction.

Specified by:
write in interface HepRepWriter
Parameters:
action - to be written.

write

public void write(HepRepInstanceTree instanceTree)
Description copied from interface: HepRepWriter
Writes a HepRepInstanceTree.

Specified by:
write in interface HepRepWriter
Parameters:
instanceTree - to be written.

write

public void write(HepRepInstance instance)
Description copied from interface: HepRepWriter
Writes a HepRepInstance.

Specified by:
write in interface HepRepWriter
Parameters:
instance - to be written.

write

public void write(HepRepPoint point)
Description copied from interface: HepRepWriter
Writes a HepRepPoint.

Specified by:
write in interface HepRepWriter
Parameters:
point - to be written.

write

public void write(HepRepAttribute attribute)
Description copied from interface: HepRepWriter
Writes a HepRepAttribute.

Specified by:
write in interface HepRepWriter
Parameters:
attribute - to be written.

write

public void write(HepRepDefinition definition)
Description copied from interface: HepRepWriter
Writes a HepRepDefinition.

Specified by:
write in interface HepRepWriter
Parameters:
definition - to be written.

write

public void write(HepRepAttValue attValue)
Description copied from interface: HepRepWriter
Writes a HepRepAttValue.

Specified by:
write in interface HepRepWriter
Parameters:
attValue - to be written.

write

public void write(HepRepAttDef attDef)
Description copied from interface: HepRepWriter
Writes a HepRepAttDef.

Specified by:
write in interface HepRepWriter
Parameters:
attDef - to be written.

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.