org.cagrid.gaards.websso.utils
Class FileHelper
java.lang.Object
org.cagrid.gaards.websso.utils.FileHelper
public class FileHelper
- extends java.lang.Object
|
Method Summary |
java.io.File |
getFile(java.lang.String fileName)
|
java.io.InputStream |
getFileAsStream(java.lang.String fileName)
|
java.io.InputStream |
getFileAsStream(java.lang.String fileName,
java.lang.ClassLoader classLoader)
|
java.net.URL |
getFileAsURL(java.lang.String fileName)
|
java.net.URL |
getFileAsURL(java.lang.String fileName,
java.lang.ClassLoader classLoader)
|
org.jdom.Document |
validateXMLwithSchema(java.lang.String propertiesFileName,
java.lang.String schemaFileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileHelper
public FileHelper()
getFileAsStream
public java.io.InputStream getFileAsStream(java.lang.String fileName,
java.lang.ClassLoader classLoader)
throws AuthenticationConfigurationException
- Throws:
AuthenticationConfigurationException
getFileAsURL
public java.net.URL getFileAsURL(java.lang.String fileName,
java.lang.ClassLoader classLoader)
throws AuthenticationConfigurationException
- Throws:
AuthenticationConfigurationException
getFileAsStream
public java.io.InputStream getFileAsStream(java.lang.String fileName)
throws AuthenticationConfigurationException
- Throws:
AuthenticationConfigurationException
getFileAsURL
public java.net.URL getFileAsURL(java.lang.String fileName)
throws AuthenticationConfigurationException
- Throws:
AuthenticationConfigurationException
getFile
public java.io.File getFile(java.lang.String fileName)
throws AuthenticationConfigurationException
- Throws:
AuthenticationConfigurationException
validateXMLwithSchema
public org.jdom.Document validateXMLwithSchema(java.lang.String propertiesFileName,
java.lang.String schemaFileName)
throws AuthenticationConfigurationException
- Throws:
AuthenticationConfigurationException