antsnest.io
Interface AntOutputStream

All Known Implementing Classes:
DefaultAntOutputStream

public interface AntOutputStream

Responsible for outputting an Ant's Nest project to an XML build file

Author:
Chris Clohosy

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
 

Method Detail

write

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

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

write

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

Parameters:
node - the node to write out
file - the file to write to
Throws:
AntIOException - if the file is not found