Class Loader

java.lang.Object
  extended byLoader

public class Loader
extends java.lang.Object


Constructor Summary
Loader(java.lang.String urlbase)
           
 
Method Summary
 boolean download(java.lang.String url, java.lang.String local)
          you can also access the file like a standard http file
 java.lang.String[] searchlist(java.lang.String search)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Loader

public Loader(java.lang.String urlbase)
Parameters:
urlbase - the folder on the server where the php files are
Method Detail

searchlist

public java.lang.String[] searchlist(java.lang.String search)
Parameters:
search - the file references returned contain this substring
Returns:
contains 2*n Strings with n results: url and file length

download

public boolean download(java.lang.String url,
                        java.lang.String local)
you can also access the file like a standard http file

Parameters:
url - the URL which is to be downloaded
local - the recordstore name where the data is stored
Returns:
true if download was successful