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 2015/10/17 12:34:22 UTC

[5/7] jena git commit: Implement Lang:rdf/null reader.

Implement Lang:rdf/null reader.

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

Branch: refs/heads/master
Commit: ea531a108e5946cb1231d7958f3b5d82e7c9cb39
Parents: 2610ca3
Author: Andy Seaborne <an...@apache.org>
Authored: Sat Oct 17 10:51:21 2015 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Sat Oct 17 10:51:21 2015 +0100

----------------------------------------------------------------------
 .../apache/jena/riot/lang/ReaderRDFNULL.java    | 53 ++++++++++++++++++++
 1 file changed, 53 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/ea531a10/jena-arq/src/main/java/org/apache/jena/riot/lang/ReaderRDFNULL.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/lang/ReaderRDFNULL.java b/jena-arq/src/main/java/org/apache/jena/riot/lang/ReaderRDFNULL.java
new file mode 100644
index 0000000..e5964c4
--- /dev/null
+++ b/jena-arq/src/main/java/org/apache/jena/riot/lang/ReaderRDFNULL.java
@@ -0,0 +1,53 @@
+/*
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ *  See the NOTICE file distributed with this work for additional
+ *  information regarding copyright ownership.
+ */
+
+package org.apache.jena.riot.lang;
+
+import java.io.InputStream ;
+import java.io.Reader ;
+
+import org.apache.jena.atlas.web.ContentType ;
+import org.apache.jena.riot.ReaderRIOT ;
+import org.apache.jena.riot.system.ErrorHandler ;
+import org.apache.jena.riot.system.ParserProfile ;
+import org.apache.jena.riot.system.StreamRDF ;
+import org.apache.jena.sparql.util.Context ;
+
+public class ReaderRDFNULL implements ReaderRIOT {
+    public ReaderRDFNULL() {}
+    @Override
+    public void read(InputStream in, String baseURI, ContentType ct, StreamRDF output, Context context) {}
+
+    @Override
+    public void read(Reader reader, String baseURI, ContentType ct, StreamRDF output, Context context) {}
+
+    @Override
+    public ErrorHandler getErrorHandler() {
+        return null;
+    }
+
+    @Override
+    public void setErrorHandler(ErrorHandler errorHandler) {}
+
+    @Override
+    public ParserProfile getParserProfile() {
+        return null;
+    }
+
+    @Override
+    public void setParserProfile(ParserProfile profile) {}
+}
\ No newline at end of file