|
||||||||||
| 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.URLSource
org.apache.excalibur.source.impl.FTPSource
public class FTPSource
Source implementation for the File Transfer Protocol.
| Field Summary |
|---|
| Fields inherited from class org.apache.excalibur.source.impl.URLSource |
|---|
m_cachedLastModificationDate, m_cachedValidity, m_connection, m_encoding, m_exists, m_isPost, m_mimeType, m_parameters, m_url |
| Constructor Summary | |
|---|---|
FTPSource()
|
|
| Method Summary | |
|---|---|
boolean |
canCancel(OutputStream stream)
Can the data sent to an OutputStream returned by
getOutputStream() be cancelled ? |
void |
cancel(OutputStream stream)
Cancel the data sent to an OutputStream returned by
getOutputStream(). |
void |
delete()
Delete the source. |
protected void |
getInfos()
Get the last modification date and content length of the source. |
OutputStream |
getOutputStream()
Return an OutputStream to write to. |
void |
init(URL url,
Map parameters)
Initialize a new object from a URL. |
| Methods inherited from class org.apache.excalibur.source.impl.URLSource |
|---|
exists, getInputStream, getMimeType, getUserInfo, getValidity, parameterize, refresh |
| Methods inherited from class org.apache.excalibur.source.impl.AbstractSource |
|---|
checkInfos, getContentLength, getLastModified, getScheme, getURI, 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 |
|---|
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh |
| Constructor Detail |
|---|
public FTPSource()
| Method Detail |
|---|
public void init(URL url,
Map parameters)
throws IOException
URL.
init in class URLSourceparameters - This is optional
IOExceptionpublic boolean canCancel(OutputStream stream)
OutputStream returned by
getOutputStream() be cancelled ?
canCancel in interface ModifiableSourcetrue if the stream can be cancelled
public void cancel(OutputStream stream)
throws IOException
OutputStream returned by
getOutputStream().
After cancel, the stream should not be used.
cancel in interface ModifiableSourceIOException
public void delete()
throws SourceException
delete in interface ModifiableSourceSourceExceptionprotected void getInfos()
getInfos in class URLSource
public OutputStream getOutputStream()
throws IOException
OutputStream to write to.
The returned stream must be closed or cancelled by the calling code.
getOutputStream in interface ModifiableSourceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||