|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.excalibur.source.impl.AbstractSource
org.apache.excalibur.source.impl.CommonsVFSSource
Source implementation that provides resolver access to all protocols supported by Commons VFS.
| Constructor Summary | |
CommonsVFSSource(java.lang.String location,
java.util.Map parameters)
Constructor, creates instance of class. |
|
| Method Summary | |
boolean |
canCancel(java.io.OutputStream stream)
Whether we can cancel writing to the output stream |
void |
cancel(java.io.OutputStream stream)
Cancels writing to the specified output stream. |
void |
delete()
Deletes the source. |
void |
enableLogging(Logger logger)
Enables logging for this source. |
boolean |
exists()
Whether this resource exists or not |
protected void |
getInfos()
Sets content information for this source. |
java.io.InputStream |
getInputStream()
Obtain an InputStream for this source. |
java.io.OutputStream |
getOutputStream()
Obtain an OutputStream to the source |
| Methods inherited from class org.apache.excalibur.source.impl.AbstractSource |
checkInfos, getContentLength, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh, setContentLength, setLastModified, setScheme, setSystemId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.excalibur.source.Source |
getContentLength, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh |
| Constructor Detail |
public CommonsVFSSource(java.lang.String location,
java.util.Map parameters)
throws org.apache.commons.vfs.FileSystemException
location - location to resolveparameters - protocol specific parameters
org.apache.commons.vfs.FileSystemException - if an error occurs| Method Detail |
protected void getInfos()
getInfos in class AbstractSourceAbstractSource.getInfos()
public java.io.InputStream getInputStream()
throws java.io.IOException,
SourceException
InputStream for this source.
getInputStream in interface SourcegetInputStream in class AbstractSourceInputStream
java.io.IOException - if an IO error occurs
SourceException - if a source exception occursSource.getInputStream()public boolean exists()
exists in interface SourceSource.exists()public boolean canCancel(java.io.OutputStream stream)
canCancel in interface ModifiableSourcestream - stream to cancel
ModifiableSource.canCancel(java.io.OutputStream)
public void cancel(java.io.OutputStream stream)
throws java.io.IOException
cancel in interface ModifiableSourcestream - stream to cancel writing to
java.io.IOException - if an error occursModifiableSource.cancel(java.io.OutputStream)
public void delete()
throws SourceException
delete in interface ModifiableSourceSourceException - if an error occursModifiableSource.delete()
public java.io.OutputStream getOutputStream()
throws java.io.IOException
OutputStream to the source
getOutputStream in interface ModifiableSourceOutputStream
java.io.IOExceptionModifiableSource.getOutputStream()public void enableLogging(Logger logger)
enableLogging in interface LogEnabledlogger - Logger instance to use#enableLogging(org.apache.avalon.framework.logger.Logger)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||