antsnest.io
Class DefaultAntInputStream

java.lang.Object
  extended by antsnest.io.DefaultAntInputStream
All Implemented Interfaces:
AntInputStream

public class DefaultAntInputStream
extends Object
implements AntInputStream

Implementation of AntInputStream

Author:
Chris Clohosy

Constructor Summary
DefaultAntInputStream()
           
 
Method Summary
static void main(String[] args)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAntInputStream

public DefaultAntInputStream()
Method Detail

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 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

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 from
antInfo - 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)