fipaos.util
Class DocumentRetriever


public class DocumentRetriever


Method Summary
 static byte[]getBinDoc(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 byte[]getBinDocFromClasspath(String name)
          This varient of the getDoc method will attempt to load the given file from
a class-path entry
 static byte[]getBinDocFromFile(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 byte[]getBinDocFromURL(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 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

getBinDoc

public static byte[] getBinDoc(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 getBinDocFromX() methods of this class to retrieve the given document

getBinDocFromClasspath

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

getBinDocFromFile

public static byte[] getBinDocFromFile(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.

getBinDocFromURL

public static byte[] getBinDocFromURL(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.

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)