|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceManager
Defines operations a Producer can do on the source file tree.
Method Summary | |
---|---|
boolean |
fileHasBeenUpdated(java.lang.String url,
long when)
Check if the specified file has been updated since the specified time. |
java.io.File |
getFile(java.lang.String url)
Get a File object representing the given file or directory. |
javax.xml.transform.Source |
getFileAsJAXPSource(java.lang.String url,
Target target)
Get a TrAX/JAXP Source object representing the given file. |
void |
getFileAsSAX(java.lang.String url,
org.xml.sax.ContentHandler sax,
Target target)
Parse the file as XML and deliver SAX2 events. |
java.lang.String |
getFileURL(java.lang.String url)
Get an URL representing the given file or directory. |
java.lang.String |
getSourceURL()
Get the URL representing the main source. |
java.io.InputStream |
openFile(java.lang.String url)
Open an auxiallary source file. |
Method Detail |
---|
java.lang.String getSourceURL() throws java.io.FileNotFoundException
null
java.io.FileNotFoundException
- if the main source file is not specifiedjava.io.InputStream openFile(java.lang.String url) throws java.io.FileNotFoundException, java.io.IOException
url
- URL to the file, if relative it's searched for relative to
the main source file (or a FileNotFoundException is thrown if
there is no main source file).
java.io.FileNotFoundException
java.io.IOException
java.io.File getFile(java.lang.String url) throws java.io.FileNotFoundException
url
- URL to the file, if relative it's searched for relative to
the main source file (or a FileNotFoundException is thrown if
there is no main source file).
null
if URL is absolute with another scheme than
file or res.
java.io.FileNotFoundException
javax.xml.transform.Source getFileAsJAXPSource(java.lang.String url, Target target) throws java.io.FileNotFoundException
url
- URL to the file, if relative it's searched for relative to
the main source file (or a FileNotFoundException is thrown if
there is no main source file).target
- The current target.
java.io.FileNotFoundException
- if the main source file is not specifiedvoid getFileAsSAX(java.lang.String url, org.xml.sax.ContentHandler sax, Target target) throws java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException
url
- URL to the file, if relative it's searched for relative to
the main source file (or a FileNotFoundException is thrown if
there is no main source file).sax
- The SAX2 ContentHandler to deliver events to.target
- The current target.
java.io.FileNotFoundException
- if the main source file is not specified
java.io.IOException
org.xml.sax.SAXException
java.lang.String getFileURL(java.lang.String url) throws java.io.FileNotFoundException
url
- URL to the file, if relative it's searched for relative to
the main source file (or a FileNotFoundException is thrown if
there is no main source file).
java.io.FileNotFoundException
boolean fileHasBeenUpdated(java.lang.String url, long when) throws java.io.FileNotFoundException, java.io.IOException, LagoonException
url
- URL to the file, if relative it's searched for relative to
the main source file (or a FileNotFoundException is thrown if
there is no main source file).when
- the time
java.io.FileNotFoundException
java.io.IOException
LagoonException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |