jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [3/3] jena git commit: JENA-1011 : Use non-deprecated parer method; call "start()".
Date Thu, 20 Aug 2015 12:01:04 GMT
JENA-1011 : Use non-deprecated parer method; call "start()".

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/03ae45e2
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/03ae45e2
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/03ae45e2

Branch: refs/heads/master
Commit: 03ae45e29586a1d1ee56fc786474c8fe7465cfa6
Parents: f1446c8
Author: Andy Seaborne <andy@apache.org>
Authored: Thu Aug 20 13:00:46 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Thu Aug 20 13:00:46 2015 +0100

----------------------------------------------------------------------
 jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/03ae45e2/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java b/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java
index 67b9384..1159058 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java
@@ -114,8 +114,7 @@ public class RiotReader
      */  
     public static void parse(InputStream in, Lang lang, String baseIRI, StreamRDF dest)
     {
-        LangRIOT parser = RiotReader.createParser(in, lang, baseIRI, dest) ;
-        parser.parse() ;
+        RDFDataMgr.parse(dest, in, baseIRI, lang);
     }
 
     // -------- Parsers
@@ -284,7 +283,9 @@ public class RiotReader
                 @Override
                 public void run()
                 {
+                    out.start();
                     parse(input, lang, baseIRI, out);
+                    out.finish() ;
                 }
             });
             t.start();
@@ -318,7 +319,9 @@ public class RiotReader
                 @Override
                 public void run()
                 {
+                    out.start();
                     parse(input, lang, baseIRI, out);
+                    //out.finish() ;
                 }
             });
             t.start();


Mime
View raw message