antsnest.io
Interface AntInputStream

All Known Implementing Classes:
DefaultAntInputStream

public interface AntInputStream

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

Author:
Chris Clohosy

Method Summary
 AntNode read(File file, AntInfo antInfo)
          Reads a node from an input stream
 AntNode read(InputStream inputStream, AntInfo antInfo, IDPool idPool)
          Reads a node from an input stream
 

Method Detail

read

AntNode read(File file,
             AntInfo antInfo)
             throws AntIOException
Reads a node from an input stream

Parameters:
file - the file to read from
antInfo - information about Ant build files
Returns:
an AntNode, the read node
Throws:
AntIOException - if there's a problem reading the node

read

AntNode read(InputStream inputStream,
             AntInfo antInfo,
             IDPool idPool)
             throws AntIOException
Reads a node from an input stream

Parameters:
inputStream - the input stream to read from
antInfo - information about Ant build files
idPool - the pool to generate IDs from
Returns:
an AntNode, the read node
Throws:
AntIOException - if there's a problem reading the node