fipaos.util
Class DocumentRetriever

java.lang.Object
  |
  +--fipaos.util.DocumentRetriever

public class DocumentRetriever
extends java.lang.Object


Constructor Summary
DocumentRetriever()
           
 
Method Summary
static byte[] getBinDoc(java.lang.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(java.lang.String name)
          This varient of the getDoc method will attempt to load the given file from a class-path entry
static byte[] getBinDocFromFile(java.lang.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(java.lang.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 java.lang.String getDoc(java.lang.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 java.lang.String getDocFromClasspath(java.lang.String name)
          This varient of the getDoc method will attempt to load the given file from a class-path entry
static java.lang.String getDocFromFile(java.lang.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 java.lang.String getDocFromURL(java.lang.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 void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentRetriever

public DocumentRetriever()
Method Detail

getDocFromClasspath

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

getBinDocFromClasspath

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

getDocFromURL

public static java.lang.String getDocFromURL(java.lang.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(java.lang.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.

getDocFromFile

public static java.lang.String getDocFromFile(java.lang.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.

getBinDocFromFile

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

getBinDoc

public static byte[] getBinDoc(java.lang.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

main

public static void main(java.lang.String[] args)