@ -238,7 +238,7 @@ public class plasmaParserDocument {
publicStringgetKeywords(charseparator){
publicStringgetKeywords(charseparator){
// sort out doubles and empty words
// sort out doubles and empty words
TreeSeths=newTreeSet();
TreeSet<String>hs=newTreeSet<String>();
Strings;
Strings;
for(inti=0;i<this.keywords.size();i++){
for(inti=0;i<this.keywords.size();i++){
if(this.keywords.get(i)==null)continue;
if(this.keywords.get(i)==null)continue;
@ -253,11 +253,11 @@ public class plasmaParserDocument {
returnsb.substring(0,sb.length()-1);
returnsb.substring(0,sb.length()-1);
}
}
publicListgetKeywords(){
publicList<String>getKeywords(){
returnthis.keywords;
returnthis.keywords;
}
}
publicMapgetAnchors(){
publicMap<String,String>getAnchors(){
// returns all links embedded as anchors (clickeable entities)
// returns all links embedded as anchors (clickeable entities)
// this is a url(String)/text(String) map
// this is a url(String)/text(String) map
returnanchors;
returnanchors;
@ -266,35 +266,35 @@ public class plasmaParserDocument {
// the next three methods provide a calculated view on the getAnchors/getImages:
// the next three methods provide a calculated view on the getAnchors/getImages:
publicMapgetHyperlinks(){
publicMap<String,String>getHyperlinks(){
// this is a subset of the getAnchor-set: only links to other hyperrefs
// this is a subset of the getAnchor-set: only links to other hyperrefs
if(!resorted)resortLinks();
if(!resorted)resortLinks();
returnhyperlinks;
returnhyperlinks;
}
}
publicMapgetAudiolinks(){
publicMap<String,String>getAudiolinks(){
if(!resorted)resortLinks();
if(!resorted)resortLinks();
returnthis.audiolinks;
returnthis.audiolinks;
}
}
publicMapgetVideolinks(){
publicMap<String,String>getVideolinks(){
if(!resorted)resortLinks();
if(!resorted)resortLinks();
returnthis.videolinks;
returnthis.videolinks;
}
}
publicTreeSetgetImages(){
publicTreeSet<htmlFilterImageEntry>getImages(){
// returns all links enbedded as pictures (visible in document)
// returns all links enbedded as pictures (visible in document)
// this resturns a htmlFilterImageEntry collection
// this resturns a htmlFilterImageEntry collection
if(!resorted)resortLinks();
if(!resorted)resortLinks();
returnimages;
returnimages;
}
}
publicMapgetApplinks(){
publicMap<String,String>getApplinks(){
if(!resorted)resortLinks();
if(!resorted)resortLinks();
returnthis.applinks;
returnthis.applinks;
}
}
publicMapgetEmaillinks(){
publicMap<String,String>getEmaillinks(){
// this is part of the getAnchor-set: only links to email addresses
// this is part of the getAnchor-set: only links to email addresses
if(!resorted)resortLinks();
if(!resorted)resortLinks();
returnemaillinks;
returnemaillinks;
@ -309,18 +309,18 @@ public class plasmaParserDocument {
intextpos,qpos;
intextpos,qpos;
Stringext=null;
Stringext=null;
i=anchors.entrySet().iterator();
i=anchors.entrySet().iterator();
hyperlinks=newHashMap();
hyperlinks=newHashMap<String,String>();
videolinks=newHashMap();
videolinks=newHashMap<String,String>();
audiolinks=newHashMap();
audiolinks=newHashMap<String,String>();
applinks=newHashMap();
applinks=newHashMap<String,String>();
emaillinks=newHashMap();
emaillinks=newHashMap<String,String>();
TreeSetcollectedImages=newTreeSet();// this is a set that is collected now and joined later to the imagelinks
TreeSet<htmlFilterImageEntry>collectedImages=newTreeSet<htmlFilterImageEntry>();// this is a set that is collected now and joined later to the imagelinks