antsnest.io
Class DefaultAntInputStream
java.lang.Object
antsnest.io.DefaultAntInputStream
- All Implemented Interfaces:
- AntInputStream
public class DefaultAntInputStream
- extends Object
- implements AntInputStream
Implementation of AntInputStream
- Author:
- Chris Clohosy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAntInputStream
public DefaultAntInputStream()
read
public AntNode read(InputStream inputStream,
AntInfo antInfo,
IDPool idPool)
throws AntIOException
- Reads a node from an input stream
- Specified by:
read in interface AntInputStream
- Parameters:
inputStream - the input stream to read fromantInfo - information about Ant build filesidPool - the pool to generate IDs from
- Returns:
- an AntNode, the read node
- Throws:
AntIOException - if there's a problem reading the node
read
public AntNode read(File file,
AntInfo antInfo)
throws AntIOException
- Reads a node from an input stream
- Specified by:
read in interface AntInputStream
- Parameters:
file - the file to read fromantInfo - information about Ant build files
- Returns:
- an AntNode, the read node
- Throws:
AntIOException - if there's a problem reading the node
main
public static void main(String[] args)