|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.vxart.zipupdate.UpdateLocation
public class UpdateLocation
Encapsulates an URL-based location which holds the up-to-date version of an archive and provides the fine-grained access functionality to a remote archive's contents.
Constructor Summary | |
---|---|
UpdateLocation(java.net.URL url)
Creates a new UpdateLocation sourced from the specified URL. |
Method Summary | |
---|---|
void |
addProgressListener(ProgressListener listener)
|
void |
fetchData(java.util.Map<Resource,java.lang.String> diff)
Fetches any data required by the specified diff into a temporary cache. |
java.util.Iterator<Resource> |
getData(java.util.Map<Resource,java.lang.String> diff)
Provides an Iterator over any remote Resources that are flagged as ADD or UPDATE. |
java.util.Set<Resource> |
getResources()
Fetches the resources available from this UpdateLocation |
java.net.URL |
getUrl()
|
void |
removeProgressListener(ProgressListener listener)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UpdateLocation(java.net.URL url)
url
- the URL to use as source of the up-to-date dataMethod Detail |
---|
public java.net.URL getUrl()
public java.util.Set<Resource> getResources() throws java.io.IOException
java.io.IOException
public void fetchData(java.util.Map<Resource,java.lang.String> diff) throws java.io.IOException
diff
- the diff to fetch data for
java.io.IOException
public java.util.Iterator<Resource> getData(java.util.Map<Resource,java.lang.String> diff) throws java.io.IOException
java.io.IOException
public void addProgressListener(ProgressListener listener)
public void removeProgressListener(ProgressListener listener)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |