|
||||||||||
| 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
public class CommonsVFSSource
Source implementation that provides resolver access to all protocols supported by Commons VFS.
| Constructor Summary | |
|---|---|
CommonsVFSSource(String location,
Map parameters)
Constructor, creates instance of class. |
|
| Method Summary | |
|---|---|
boolean |
canCancel(OutputStream stream)
Whether we can cancel writing to the output stream |
void |
cancel(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. |
InputStream |
getInputStream()
Obtain an InputStream for this source. |
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(String location,
Map parameters)
throws org.apache.commons.vfs2.FileSystemException
location - location to resolveparameters - protocol specific parameters
org.apache.commons.vfs2.FileSystemException - if an error occurs| Method Detail |
|---|
protected void getInfos()
getInfos in class AbstractSourceAbstractSource.getInfos()
public InputStream getInputStream()
throws IOException,
SourceException
InputStream for this source.
getInputStream in interface SourcegetInputStream in class AbstractSourceInputStream
IOException - if an IO error occurs
SourceException - if a source exception occursSource.getInputStream()public boolean exists()
exists in interface SourceSource.exists()public boolean canCancel(OutputStream stream)
canCancel in interface ModifiableSourcestream - stream to cancel
ModifiableSource.canCancel(java.io.OutputStream)
public void cancel(OutputStream stream)
throws IOException
cancel in interface ModifiableSourcestream - stream to cancel writing to
IOException - if an error occursModifiableSource.cancel(java.io.OutputStream)
public void delete()
throws SourceException
delete in interface ModifiableSourceSourceException - if an error occursModifiableSource.delete()
public OutputStream getOutputStream()
throws IOException
OutputStream to the source
getOutputStream in interface ModifiableSourceOutputStream
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 | |||||||||