antsnest.io
Class DefaultAntOutputStream

java.lang.Object
  extended by antsnest.io.DefaultAntOutputStream
All Implemented Interfaces:
AntOutputStream

public class DefaultAntOutputStream
extends Object
implements AntOutputStream

Implementation of AntOutputStream

Author:
Chris Clohosy
See Also:
AntOutputStream

Constructor Summary
DefaultAntOutputStream()
           
 
Method Summary
 void write(AntNode node, File file)
          Writes the build file XML to a file
 void write(AntNode node, OutputStream outputStream)
          Writes the build file XML to an output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAntOutputStream

public DefaultAntOutputStream()
Method Detail

write

public void write(AntNode node,
                  OutputStream outputStream)
           throws AntIOException
Writes the build file XML to an output stream

Specified by:
write in interface AntOutputStream
Parameters:
node - the node to write out
outputStream - the output stream
Throws:
AntIOException - if there's a problem writing out the project

write

public void write(AntNode node,
                  File file)
           throws AntIOException
Writes the build file XML to a file

Specified by:
write in interface AntOutputStream
Parameters:
node - the node to write out
file - the file to write to
Throws:
AntIOException - if the file is not found