antsnest.io
Class DefaultAntOutputStream
java.lang.Object
antsnest.io.DefaultAntOutputStream
- All Implemented Interfaces:
- AntOutputStream
public class DefaultAntOutputStream
- extends Object
- implements AntOutputStream
Implementation of AntOutputStream
- Author:
- Chris Clohosy
- See Also:
AntOutputStream
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAntOutputStream
public DefaultAntOutputStream()
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 outoutputStream - 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 outfile - the file to write to
- Throws:
AntIOException - if the file is not found