|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.book.basic.AbstractBookList
org.crosswire.jsword.book.install.sword.AbstractSwordInstaller
org.crosswire.jsword.book.install.sword.FtpSwordInstaller
public class FtpSwordInstaller
An implementation of Installer for reading data from Sword FTP sites.
|
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence| Field Summary | |
|---|---|
private static Logger |
log
The log stream |
private String |
password
The password to go with username. |
private static String |
PROTOCOL_SWORD
We need to be ablee to provide a URL as part of the API |
private String |
username
The remote username for a valid account on the host. |
| Fields inherited from class org.crosswire.jsword.book.install.sword.AbstractSwordInstaller |
|---|
directory, DOWNLOAD_PREFIX, entries, FILE_LIST_GZ, host, loaded, PACKAGE_DIR, SEARCH_DIR, ZIP_SUFFIX |
| Constructor Summary | |
|---|---|
FtpSwordInstaller()
|
|
| Method Summary | |
|---|---|
protected void |
download(Job job,
String dir,
String file,
URL dest)
Utility to download a file from a remote site |
boolean |
equals(Object object)
|
String |
getPassword()
|
String |
getURL()
Accessor for the URL |
String |
getUsername()
|
int |
hashCode()
|
void |
setPassword(String password)
|
void |
setUsername(String username)
|
URL |
toRemoteURL(Book book)
|
String |
toString()
Like getURL() except that we skip the password for display purposes. |
| Methods inherited from class org.crosswire.jsword.book.install.sword.AbstractSwordInstaller |
|---|
compareTo, downloadSearchIndex, equals, getBooks, getCachedIndexFile, getDirectory, getHost, install, isNewer, reloadBookList, setDirectory, setHost |
| Methods inherited from class org.crosswire.jsword.book.basic.AbstractBookList |
|---|
addBooksListener, fireBooksChanged, getBooks, removeBooksListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.crosswire.jsword.book.BookList |
|---|
addBooksListener, getBooks, removeBooksListener |
| Field Detail |
|---|
private String username
host.
private String password
username.
private static final String PROTOCOL_SWORD
private static final Logger log
| Constructor Detail |
|---|
public FtpSwordInstaller()
| Method Detail |
|---|
public String getURL()
Installer
getURL in interface Installerpublic URL toRemoteURL(Book book)
toRemoteURL in interface Installerbook - The book meta-data to get a URL from.
protected void download(Job job,
String dir,
String file,
URL dest)
throws InstallException
AbstractSwordInstaller
download in class AbstractSwordInstallerjob - The way of noting progressdir - The directory from which to download the filefile - The file to download
InstallExceptionpublic String getPassword()
public void setPassword(String password)
password - The password to set.public String getUsername()
public void setUsername(String username)
username - The username to set.public String toString()
toString in class ObjectgetURL(),
Object.toString()public boolean equals(Object object)
equals in class AbstractSwordInstallerpublic int hashCode()
hashCode in class AbstractSwordInstaller
|
Copyright ? 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||