|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.util.mail.FileSource
public class FileSource
Class that will load file data from the file system or from the directory
Constructor Summary | |
---|---|
FileSource(String dnBase,
File pathBase)
Construct a FileSource with the passed bases. |
Method Summary | |
---|---|
InputStream |
getFile(String filename)
Return an open InputStream from which to read the bytes of the file with the passed filename. |
InputStream |
getFile(String path,
String[] baseURI)
Return an open InputStream from which to read the bytes of the file with the passed filename. |
String |
resolveFilename(String filename)
Resolve a file system filename with the pathBase we have in this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSource(String dnBase, File pathBase)
dnBase
- Base location for objects in directory.pathBase
- Base location for files in file system.Method Detail |
---|
public InputStream getFile(String filename) throws IOException
filename
- The name of the file to get.
IOException
- if data cannot be foundpublic InputStream getFile(String path, String[] baseURI) throws IOException
path
- The name of the file to get.baseURI
- An array (of at least one) String in which to
return the URI of the found data. (May be null)
IOException
- if data cannot be foundpublic String resolveFilename(String filename) throws FileNotFoundException
filename
- Filename to resolve.
FileNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |