|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.japtproxy.fetcher.FetchedResourceFtp
public class FetchedResourceFtp
The FetchedResourceFtp provides access to the via FTP fetched resource.
| Constructor Summary | |
|---|---|
FetchedResourceFtp(org.apache.commons.net.ftp.FTPClient ftpClient,
org.apache.commons.net.ftp.FTPFile file)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Closes open fetcher connection. |
long |
getContentLength()
|
java.lang.String |
getContentType()
|
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
|
boolean |
isModified()
|
void |
setModified(boolean modified)
Sets the modified field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FetchedResourceFtp(org.apache.commons.net.ftp.FTPClient ftpClient,
org.apache.commons.net.ftp.FTPFile file)
ftpClient - the FTPClient to use.file - the referenced file.| Method Detail |
|---|
public boolean isModified()
isModified in interface FetchedResourcepublic void setModified(boolean modified)
modified - the modified field.public java.lang.String getContentType()
getContentType in interface FetchedResourcepublic long getLastModified()
getLastModified in interface FetchedResourcepublic long getContentLength()
getContentLength in interface FetchedResource
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface FetchedResourceInputStream.
java.io.IOException - is thrown if the operation fails.public void close()
close in interface FetchedResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||