|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 occursMethod Detail |
protected void getInfos()
getInfos
in class AbstractSource
AbstractSource.getInfos()
public java.io.InputStream getInputStream() throws java.io.IOException, SourceException
InputStream
for this source.
getInputStream
in interface Source
getInputStream
in class AbstractSource
InputStream
java.io.IOException
- if an IO error occurs
SourceException
- if a source exception occursSource.getInputStream()
public boolean exists()
exists
in interface Source
Source.exists()
public boolean canCancel(java.io.OutputStream stream)
canCancel
in interface ModifiableSource
stream
- stream to cancel
ModifiableSource.canCancel(java.io.OutputStream)
public void cancel(java.io.OutputStream stream) throws java.io.IOException
cancel
in interface ModifiableSource
stream
- stream to cancel writing to
java.io.IOException
- if an error occursModifiableSource.cancel(java.io.OutputStream)
public void delete() throws SourceException
delete
in interface ModifiableSource
SourceException
- if an error occursModifiableSource.delete()
public java.io.OutputStream getOutputStream() throws java.io.IOException
OutputStream
to the source
getOutputStream
in interface ModifiableSource
OutputStream
java.io.IOException
ModifiableSource.getOutputStream()
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
logger
- 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 |