org.apache.avalon.composition.data.writer
Class XMLContainmentProfileWriter

java.lang.Object
  extended byorg.apache.avalon.composition.data.writer.XMLDeploymentProfileWriter
      extended byorg.apache.avalon.composition.data.writer.XMLContainmentProfileWriter

public class XMLContainmentProfileWriter
extends XMLDeploymentProfileWriter

Write ContainmentProfile objects to a stream as xml documents.

Version:
$Revision: 1.2 $ $Date: 2003/10/28 20:21:00 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from class org.apache.avalon.composition.data.writer.XMLDeploymentProfileWriter
INDENT
 
Constructor Summary
XMLContainmentProfileWriter()
           
 
Method Summary
 void writeContainmentProfile(ContainmentProfile profile, OutputStream output)
          Write out a containment profile to xml.
protected  void writeContainmentProfile(Writer writer, ContainmentProfile profile, boolean flag, String pad)
          Write out a containment profile to xml.
protected  void writeContainmentProfile(Writer writer, ContainmentProfile profile, String pad)
          Write out a containment profile to xml.
 
Methods inherited from class org.apache.avalon.composition.data.writer.XMLDeploymentProfileWriter
writeCategories, writeDeploymentBody, writeDeploymentProfile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLContainmentProfileWriter

public XMLContainmentProfileWriter()
Method Detail

writeContainmentProfile

public void writeContainmentProfile(ContainmentProfile profile,
                                    OutputStream output)
                             throws Exception
Write out a containment profile to xml.

Parameters:
profile - the type object
output - the stream to write to
Throws:
Exception - if unable to write xml

writeContainmentProfile

protected void writeContainmentProfile(Writer writer,
                                       ContainmentProfile profile,
                                       String pad)
                                throws Exception
Write out a containment profile to xml.

Parameters:
writer - the stream to write to
profile - the containment profile to write
pad - character offset
Throws:
Exception - if unable to write xml

writeContainmentProfile

protected void writeContainmentProfile(Writer writer,
                                       ContainmentProfile profile,
                                       boolean flag,
                                       String pad)
                                throws Exception
Write out a containment profile to xml.

Parameters:
writer - the stream to write to
profile - the containment profile to write
flag - not used !
pad - character offset
Throws:
Exception - if unable to write xml


Copyright © Apache Software Foundation. All Rights Reserved.