| Method from org.apache.cocoon.components.source.impl.AvalonToCocoonSource Detail: |
public long getContentLength() {
return this.source.getContentLength();
}
Get the content length of the source or -1 if it
is not possible to determine the length. |
public InputSource getInputSource() throws IOException, ProcessingException {
try {
InputSource newObject = new InputSource(this.source.getInputStream());
newObject.setSystemId(this.getSystemId());
return newObject;
} catch (SourceException se) {
throw SourceUtil.handle(se);
}
}
Return an InputSource object to read the XML
content. |
public InputStream getInputStream() throws IOException, ProcessingException {
try {
return this.source.getInputStream();
} catch (SourceException e) {
throw SourceUtil.handle(e);
}
}
Return an InputStream object to read from the source. |
public long getLastModified() {
return this.source.getLastModified();
}
Get the last modification date of the source or 0 if it
is not possible to determine the date. |
public String getSystemId() {
return this.source.getURI();
}
Return the unique identifer for this source |
public void recycle() {
this.resolver.release(this.source);
this.source = null;
this.environment = null;
}
|
public void refresh() {
this.source.refresh();
}
|
public void toSAX(ContentHandler handler) throws SAXException {
try {
SourceUtil.parse(this.manager, this.source, handler);
} catch (ProcessingException pe) {
throw new SAXException("ProcessingException during streaming.", pe);
} catch (IOException ioe) {
throw new SAXException("IOException during streaming.", ioe);
}
}
Stream content to a content handler or to an XMLConsumer. |