From dbdd697f4d96c8ee2b0151287e9bc2b66a7f4b4d Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Thu, 21 Jun 2012 16:09:12 +0200 Subject: [PATCH] moved RDFaParser.xsl configuration file to defaults --- build.xml | 6 -- {RDFaParser => defaults}/RDFaParser.xsl | 0 .../parser/rdfa/impl/RDFaTripleImpl.java | 58 ++++++++----------- 3 files changed, 25 insertions(+), 39 deletions(-) rename {RDFaParser => defaults}/RDFaParser.xsl (100%) diff --git a/build.xml b/build.xml index cf86dbc61..9003b3150 100644 --- a/build.xml +++ b/build.xml @@ -301,12 +301,6 @@ includes="**/*"/> - - - - - diff --git a/RDFaParser/RDFaParser.xsl b/defaults/RDFaParser.xsl similarity index 100% rename from RDFaParser/RDFaParser.xsl rename to defaults/RDFaParser.xsl diff --git a/source/net/yacy/document/parser/rdfa/impl/RDFaTripleImpl.java b/source/net/yacy/document/parser/rdfa/impl/RDFaTripleImpl.java index 35dc378c5..b1a125f4b 100644 --- a/source/net/yacy/document/parser/rdfa/impl/RDFaTripleImpl.java +++ b/source/net/yacy/document/parser/rdfa/impl/RDFaTripleImpl.java @@ -14,13 +14,12 @@ import javax.xml.transform.TransformerFactory; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; +import net.yacy.yacy; import net.yacy.document.parser.rdfa.IRDFaTriple; import net.yacy.kelondro.logging.Log; -import net.yacy.yacy; - public class RDFaTripleImpl{ - + private static Templates templates = null; private String propertyURI = null; private String subjectURI = null; @@ -30,59 +29,52 @@ public class RDFaTripleImpl{ private String value = null; private String dataType = null; private String language = null; - private Reader in; - private Transformer aTransformer; - private ArrayList allRDFaTriples = new ArrayList(); + private final Reader in; + private final Transformer aTransformer; + private final ArrayList allRDFaTriples = new ArrayList(); public RDFaTripleImpl(Reader in, String base) throws IOException, TransformerException, TransformerConfigurationException { - + BufferedReader bufReader = new BufferedReader(in); String readLine = bufReader.readLine(); if (!readLine.toLowerCase().contains("