You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/10/03 10:35:52 UTC

[20/41] jena git commit: Revert to RDFDataMgr wo the Context param in write methods

Revert to RDFDataMgr wo the Context param in write methods

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

Branch: refs/heads/master
Commit: 43be1cd80e309878e04a73d21c23e4a936876b4a
Parents: 69a1f8a
Author: Franc\u0327ois-Paul Servant <fp...@semanlink.net>
Authored: Wed Aug 31 10:33:27 2016 +0200
Committer: Franc\u0327ois-Paul Servant <fp...@semanlink.net>
Committed: Wed Aug 31 10:33:27 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/jena/riot/RDFDataMgr.java   | 36 +++++---------------
 1 file changed, 8 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/43be1cd8/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
index d8d2c11..a750b7f 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
@@ -936,7 +936,7 @@ public class RDFDataMgr
         write(out, model.getGraph(), lang);
     }
 
-    /** Write the model to the output stream with a given serialization format.
+    /** Write the model to the output stream in the default serialization for the language.
      * @param out           OutputStream
      * @param model         Model to write
      * @param serialization Serialization format
@@ -945,17 +945,7 @@ public class RDFDataMgr
         write(out, model.getGraph(), serialization);
     }
     
-    /** Write the model to the output stream with a given serialization format.
-     * @param out           OutputStream
-     * @param model         Model to write
-     * @param serialization Serialization format
-     * @param context       Content object to control writing process.
-     */
-    public static void write(OutputStream out, Model model, RDFFormat serialization, Context ctx) {
-      write(out, model.getGraph(), serialization, ctx);
-    }
-  
-   /** Write the graph to the output stream in the default serialization for the language.
+    /** Write the graph to the output stream in the default serialization for the language.
      * @param out           StringWriter
      * @param model         Model to write
      * @param lang          Serialization format
@@ -975,7 +965,7 @@ public class RDFDataMgr
         write(out, model.getGraph(), lang);
     }
 
-    /** Write the graph to the output stream with a given serialization format.
+    /** Write the graph to the output stream in the default serialization for the language.
      * @param out           StringWriter
      * @param model         Model to write
      * @param serialization Serialization format
@@ -1005,23 +995,13 @@ public class RDFDataMgr
         write(out, graph, serialization);
     }
 
-    /** Write the graph to the output stream with a given serialization format.
+    /** Write the graph to the output stream in the default serialization for the language.
      * @param out           OutputStream
      * @param graph         Graph to write
      * @param serialization Serialization format
      */
     public static void write(OutputStream out, Graph graph, RDFFormat serialization) {
-        write$(out, graph, serialization, RIOT.getContext());
-    }
-
-    /** Write the model to the output stream with a given serialization format.
-     * @param out           OutputStream
-     * @param model         Model to write
-     * @param serialization Serialization format
-     * @param context       Content object to control writing process.
-     */
-    public static void write(OutputStream out, Graph graph, RDFFormat serialization, Context ctx) {
-      write$(out, graph, serialization, ctx);
+        write$(out, graph, serialization);
     }
 
     /** Write the graph to the output stream in the default serialization for the language.
@@ -1227,9 +1207,9 @@ public class RDFDataMgr
         return wf.create(serialization);
     }
 
-    private static void write$(OutputStream out, Graph graph, RDFFormat serialization, Context ctx) {
-	      WriterGraphRIOT w = createGraphWriter$(serialization);
-	      w.write(out, graph, RiotLib.prefixMap(graph), null, ctx);
+    private static void write$(OutputStream out, Graph graph, RDFFormat serialization) {
+        WriterGraphRIOT w = createGraphWriter$(serialization);
+        w.write(out, graph, RiotLib.prefixMap(graph), null, RIOT.getContext());
     }
 
     private static void write$(Writer out, Graph graph, RDFFormat serialization) {