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 2013/10/02 18:57:15 UTC
svn commit: r1528559 -
/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
Author: andy
Date: Wed Oct 2 16:57:15 2013
New Revision: 1528559
URL: http://svn.apache.org/r1528559
Log:
Add some (deprecated) java.io.Writer versions
Modified:
jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java?rev=1528559&r1=1528558&r2=1528559&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java Wed Oct 2 16:57:15 2013
@@ -903,32 +903,6 @@ public class RDFDataMgr
return ct ;
}
-
-// /* 2.10.2 */
-// if ( true ) {
-// if ( ct == null && hintLang != null )
-// ct = hintLang.getContentType() ;
-//
-// if ( ct == null || isTextPlain )
-// ct = RDFLanguages.guessContentType(target) ;
-//
-// return ct ;
-// }
-//
-// /* 2.10.1 */
-// if ( true ) {
-// if ( ct == null || isTextPlain )
-// ct = RDFLanguages.guessContentType(target) ;
-//
-// if ( ct == null && hintLang != null )
-// ct = hintLang.getContentType() ;
-//
-// return ct ;
-// }
-//
-// return null ;
-
-
// -------- WRITERS
/** Write the model to the output stream in the default serialization for the language.
@@ -952,7 +926,7 @@ public class RDFDataMgr
}
/** Write the graph to the output stream in the default serialization for the language.
- * @param out OutputStream
+ * @param out StringWriter
* @param model Model to write
* @param lang Serialization format
*/
@@ -961,8 +935,21 @@ public class RDFDataMgr
write(out, model.getGraph(), lang) ;
}
+
/** Write the graph to the output stream in the default serialization for the language.
- * @param out OutputStream
+ * @param out Writer
+ * @param model Model to write
+ * @param lang Serialization format
+ * @deprecated Use of writers is deprecated - use an OutputStream
+ */
+ @Deprecated
+ public static void write(Writer out, Model model, Lang lang)
+ {
+ write(out, model.getGraph(), lang) ;
+ }
+
+ /** 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,7 +992,7 @@ public class RDFDataMgr
}
/** Write the graph to the output stream in the default serialization for the language.
- * @param out OutputStream
+ * @param out StringWriter
* @param graph Graph to write
* @param lang Serialization format
*/
@@ -1016,6 +1003,18 @@ public class RDFDataMgr
}
/** Write the graph to the output stream in the default serialization for the language.
+ * @param out Writer
+ * @param graph Graph to write
+ * @param lang Serialization format
+ * @deprecated Use of writers is deprecated - use an OutputStream
+ */
+ @Deprecated
+ public static void write(Writer out, Graph graph, Lang lang)
+ {
+ write$(out, graph, RDFWriterRegistry.defaultSerialization(lang)) ;
+ }
+
+ /** 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