org.anadix
Interface Source


public interface Source

Represents a source for analysis

Version:
$Id: $
Author:
tomason

Method Summary
 String getDescription()
          Gets the description of the source (eg.
 Reader getReader()
          Gets reader representation of the source
 InputStream getStream()
          Gets stream representation of the source
 String getText()
          Gets the source as a String.
 

Method Detail

getDescription

String getDescription()
Gets the description of the source (eg. filename, url, classpath)

Returns:
description of the source

getText

String getText()
Gets the source as a String. If for example the source reads a stream then the whole stream is read and returned as a String.

Returns:
source as a String

getReader

Reader getReader()
Gets reader representation of the source

Returns:
source as a Reader

getStream

InputStream getStream()
Gets stream representation of the source

Returns:
source as a Stream


Copyright © 2011. All Rights Reserved.