jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1568826 - in /jena/trunk/jena-arq/src/main/java: org/apache/jena/riot/RDFParserRegistry.java org/apache/jena/riot/RiotReader.java riotcmd/CmdLangParse.java
Date Sun, 16 Feb 2014 20:52:10 GMT
Author: andy
Date: Sun Feb 16 20:52:10 2014
New Revision: 1568826

URL: http://svn.apache.org/r1568826
Log:
Deprecation for future removal of public RiotReader operations (use RDFDataMgr alternatives).

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java
    jena/trunk/jena-arq/src/main/java/riotcmd/CmdLangParse.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java?rev=1568826&r1=1568825&r2=1568826&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RDFParserRegistry.java Sun Feb
16 20:52:10 2014
@@ -157,6 +157,7 @@ public class RDFParserRegistry
 
         @Override
         public void read(InputStream in, String baseURI, ContentType ct, StreamRDF output,
Context context) {
+            @SuppressWarnings("deprecation")
             LangRIOT parser = RiotReader.createParser(in, lang, baseURI, output) ;
             parser.getProfile().setHandler(errorHandler) ;
             parser.parse() ;
@@ -164,6 +165,7 @@ public class RDFParserRegistry
 
         @Override
         public void read(Reader in, String baseURI, ContentType ct, StreamRDF output, Context
context) {
+            @SuppressWarnings("deprecation")
             LangRIOT parser = RiotReader.createParser(in, lang, baseURI, output) ;
             parser.getProfile().setHandler(errorHandler) ; 
             parser.parse() ;

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java?rev=1568826&r1=1568825&r2=1568826&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/RiotReader.java Sun Feb 16 20:52:10
2014
@@ -119,7 +119,10 @@ public class RiotReader
 
     // -------- Parsers
     
-    /** Create a parser */  
+    /** Create a parser 
+     * @deprecated Use {@linkplain RDFDataMgr#createReader(Lang)}
+     */
+    @Deprecated
     public static LangRIOT createParser(InputStream input, Lang lang, String baseIRI, StreamRDF
dest)
     {
         if ( lang == RDFXML )
@@ -134,7 +137,10 @@ public class RiotReader
         return createParser(tokenizer, lang, baseIRI, dest) ;
     }
 
-    /** Create a parser */  
+    /** Create a parser 
+     * @deprecated Use {@linkplain RDFDataMgr#createReader(Lang)}
+     */
+    @Deprecated
     public static LangRIOT createParser(Reader input, Lang lang, String baseIRI, StreamRDF
dest)
     {
         if ( lang == RDFXML )
@@ -149,7 +155,10 @@ public class RiotReader
         return createParser(tokenizer, lang, baseIRI, dest) ;
     }
 
-    /** Create a parser */  
+    /** Create a parser 
+     * @deprecated Use {@linkplain RDFDataMgr#createReader(Lang)}
+     */
+    @Deprecated  
     public static LangRIOT createParser(Tokenizer tokenizer, Lang lang, String baseIRI, StreamRDF
dest)
     {
         if ( RDFLanguages.sameLang(RDFXML, lang) )

Modified: jena/trunk/jena-arq/src/main/java/riotcmd/CmdLangParse.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/riotcmd/CmdLangParse.java?rev=1568826&r1=1568825&r2=1568826&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/riotcmd/CmdLangParse.java (original)
+++ jena/trunk/jena-arq/src/main/java/riotcmd/CmdLangParse.java Sun Feb 16 20:52:10 2014
@@ -250,6 +250,7 @@ public abstract class CmdLangParse exten
         s = null ;
         
         // Need low level control over the parser.
+        @SuppressWarnings("deprecation")
         LangRIOT parser = RiotReader.createParser(in, lang, baseURI, sink) ;
         try
         {



Mime
View raw message