added stub for PHPBB3 extraction code using direct access to mySQL

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5979 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent e735d3a69f
commit c72a5cf326

@ -45,5 +45,6 @@
<classpathentry exported="true" kind="lib" path="lib/sbbi-upnplib-1.0.4.jar"/>
<classpathentry kind="lib" path="lib/xerces.jar"/>
<classpathentry kind="lib" path="lib/bzip2.jar"/>
<classpathentry kind="lib" path="libx/mysql-connector-java-5.1.7-bin.jar"/>
<classpathentry kind="output" path="gen"/>
</classpath>

@ -43,6 +43,19 @@ public class DCEntry extends HashMap<String, String> {
super();
}
public DCEntry(
yacyURL url,
String title,
String author,
String body
) {
super();
this.put("url", url.toNormalform(true, false));
this.put("title", title);
this.put("author", author);
this.put("body", body);
}
/*
DC according to rfc 5013
@ -101,6 +114,14 @@ public class DCEntry extends HashMap<String, String> {
return t;
}
public String author() {
String t = this.get("author");
if (t == null) t = this.get("dc:Creator");
t = stripCDATA(t);
if (t == null) return "";
return t;
}
public String body() {
String t = this.get("body");
if (t == null) t = this.get("dc:Description");

Loading…
Cancel
Save