fipaos.util
Class DocumentRetriever


public class DocumentRetriever


Method Summary
 static StringgetDoc(String name)
          This method takes in the name of the documemt that is to be retrieved and will either return the document if successful or will return null after an exception is thrown.
 static StringgetDocFromClasspath(String name)
          This varient of the getDoc method will attempt to load the given file from a class-path entry
 static StringgetDocFromFile(String name)
          This public getDoc method takes in the name of the documemt that is to be retrieved and will either return the document if successful or will return null after an exception is thrown.
 static StringgetDocFromURL(String name)
          This public getDoc method takes in the name of the documemt that is to be retrieved and will either return the document if successful or will return null after an exception is thrown.
 static voidmain(String[] args)
           

Method Detail

getDoc

public static String getDoc(String name)
This method takes in the name of the documemt that is to be retrieved and will either return the document if successful or will return null after an exception is thrown. This method attempts to use the other getDocFromX() methods of this class to retrieve the given document

getDocFromClasspath

public static String getDocFromClasspath(String name)
This varient of the getDoc method will attempt to load the given file from a class-path entry

getDocFromFile

public static String getDocFromFile(String name)
This public getDoc method takes in the name of the documemt that is to be retrieved and will either return the document if successful or will return null after an exception is thrown.

getDocFromURL

public static String getDocFromURL(String name)
This public getDoc method takes in the name of the documemt that is to be retrieved and will either return the document if successful or will return null after an exception is thrown.

main

public static void main(String[] args)