|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.client.pview.PViewFileCache
PViewFileCache
is used to track the usage of files in the PViewCache
When multiple instances of the viewer are in use, for a given url references to
some viewable content (shapesource), PView will first look to its understanding
of what files have been viewed. Hence when it comes to delete files from the cache,
it is important no other instance of the viewer is using the file.
Supported API: false
Extendable: false
Field Summary | |
private String |
file
|
private String |
url
|
private Vector |
usedBy
|
Constructor Summary | |
PViewFileCache(String url,
String file,
int usedby)
Creates new PViewFileCache object |
Method Summary | |
void |
addUsedBy(int usedby)
Adds another viewer reference |
String |
getFile()
Returns the associated file reference |
String |
getUrl()
Returns the associated url reference |
boolean |
isUsed()
Determines if FileCache is referenced by any viewer |
boolean |
isUsedBy(int usedby)
Determines if currently used by the specified viewer reference |
void |
removeUsedBy(int usedby)
Removes a viewers reference |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Vector usedBy
private String url
private String file
Constructor Detail |
public PViewFileCache(String url, String file, int usedby)
url
- the url that is referenced by PViewfile
- the actual file in the Cacheusedby
- a reference to the viewer, typically the HWND (window handle)Method Detail |
public void addUsedBy(int usedby)
public boolean isUsedBy(int usedby)
public void removeUsedBy(int usedby)
public boolean isUsed()
public String getUrl()
public String getFile()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |