|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.resource.ResourceLoader
public class ResourceLoader
A dynamic loader of resources from a URL.
Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
| Field Summary | |
|---|---|
static int |
DOCUMENT_FILESIZE
|
static int |
DOWNLOAD_FILEDATE
|
static int |
DOWNLOAD_FILENAME
|
static int |
DOWNLOAD_ID
|
static int |
DOWNLOAD_PROGRESS
|
| Constructor Summary | |
|---|---|
protected |
ResourceLoader(Project project)
Creates a new instance of DocumentManager |
| Method Summary | |
|---|---|
java.lang.ClassLoader |
getClassloader()
|
static ResourceLoader |
getInstance(Project project)
|
java.lang.String |
getSourceFileName(java.lang.String fileName)
Get the complete server URL of the file |
java.io.File |
getTargetFile(java.lang.String fileName,
boolean makeDirs)
Get the complete target filename |
void |
pauseDownload()
|
void |
setServerURL(java.lang.String url)
Fixup the server URL |
void |
setTargetFolder(java.io.File folder)
Fixup the target folder |
void |
startCacheCheck(BaseModel fileList,
java.io.File outputFolder)
Start the download service |
void |
startDownload(BaseModel fileList,
java.lang.String downloadServer,
java.io.File outputFolder,
ResourceLoaderStatus status)
Start the download service |
void |
stopDownload()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DOWNLOAD_FILENAME
public static final int DOWNLOAD_ID
public static final int DOCUMENT_FILESIZE
public static final int DOWNLOAD_FILEDATE
public static final int DOWNLOAD_PROGRESS
| Constructor Detail |
|---|
protected ResourceLoader(Project project)
| Method Detail |
|---|
public static ResourceLoader getInstance(Project project)
public java.lang.ClassLoader getClassloader()
public void startCacheCheck(BaseModel fileList,
java.io.File outputFolder)
public void startDownload(BaseModel fileList,
java.lang.String downloadServer,
java.io.File outputFolder,
ResourceLoaderStatus status)
public void stopDownload()
public void pauseDownload()
public java.lang.String getSourceFileName(java.lang.String fileName)
public java.io.File getTargetFile(java.lang.String fileName,
boolean makeDirs)
public void setServerURL(java.lang.String url)
public void setTargetFolder(java.io.File folder)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||