jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [03/10] git commit: start/finish around parser call.
Date Tue, 23 Sep 2014 13:50:19 GMT
start/finish around parser call.

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

Branch: refs/heads/master
Commit: c0bc67d7f3d7a49673494112900e2c4a084c9813
Parents: 4491980
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Sep 23 14:42:02 2014 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Sep 23 14:42:02 2014 +0100

----------------------------------------------------------------------
 jena-arq/src/main/java/riotcmd/CmdLangParse.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/c0bc67d7/jena-arq/src/main/java/riotcmd/CmdLangParse.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/riotcmd/CmdLangParse.java b/jena-arq/src/main/java/riotcmd/CmdLangParse.java
index f7ddf89..d11ce98 100644
--- a/jena-arq/src/main/java/riotcmd/CmdLangParse.java
+++ b/jena-arq/src/main/java/riotcmd/CmdLangParse.java
@@ -222,7 +222,7 @@ public abstract class CmdLangParse extends CmdGeneral
         // else use NodeToLabel.createBNodeByLabel() ;
         // Also, as URI.
         final boolean labelsAsGiven = false ;
-        
+
         NodeToLabel labels = SyntaxLabels.createNodeToLabel() ;
         if ( labelsAsGiven )
             labels = NodeToLabel.createBNodeByLabelEncoded() ;
@@ -246,7 +246,9 @@ public abstract class CmdLangParse extends CmdGeneral
             if ( labelsAsGiven )
                 reader.getParserProfile().setLabelToNode(LabelToNode.createUseLabelAsGiven())
;
             modTime.startTimer() ;
+            sink.start() ;
             reader.read(in, baseURI, ct, sink, null) ;
+            sink.finish() ;
         } catch (RiotException ex) {
             // Should have handled the exception and logged a message by now.
             // System.err.println("++++"+ex.getMessage());


Mime
View raw message