Repository: jena
Updated Branches:
  refs/heads/master f2ef20511 -> a5d3d915f


Move ActionPrint next to it's only user


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

Branch: refs/heads/master
Commit: a5d3d915f7a6354dea6b97389ca056d258cc25d8
Parents: f2ef205
Author: Andy Seaborne <[email protected]>
Authored: Mon Apr 27 18:16:55 2015 +0100
Committer: Andy Seaborne <[email protected]>
Committed: Mon Apr 27 18:17:41 2015 +0100

----------------------------------------------------------------------
 .../apache/jena/atlas/iterator/ActionPrint.java | 41 -------------------
 .../org/apache/jena/sdb/print/ActionPrint.java  | 42 ++++++++++++++++++++
 .../org/apache/jena/sdb/print/StreamsPrint.java |  2 -
 3 files changed, 42 insertions(+), 43 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/a5d3d915/jena-arq/src/main/java/org/apache/jena/atlas/iterator/ActionPrint.java
----------------------------------------------------------------------
diff --git 
a/jena-arq/src/main/java/org/apache/jena/atlas/iterator/ActionPrint.java 
b/jena-arq/src/main/java/org/apache/jena/atlas/iterator/ActionPrint.java
deleted file mode 100644
index e1dda80..0000000
--- a/jena-arq/src/main/java/org/apache/jena/atlas/iterator/ActionPrint.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.
- */
-
-package org.apache.jena.atlas.iterator;
-
-import org.apache.jena.atlas.io.IndentedWriter ;
-import org.apache.jena.atlas.io.Printable ;
-
-public class ActionPrint <T extends Printable> implements Action<T> 
-{
-    private boolean first = true ;
-    private IndentedWriter out ;
-    private String sep ; 
-    
-    public ActionPrint(IndentedWriter out, String sep) { this.out = out ; 
this.sep = sep ; }
-    public ActionPrint(IndentedWriter out) { this(out, " ") ; }
-    
-    @Override
-    public void apply(Printable item)
-    {
-        if ( ! first && sep != null )
-            out.print(sep) ;
-        first = false ;
-        item.output(out) ;
-    }
-}

http://git-wip-us.apache.org/repos/asf/jena/blob/a5d3d915/jena-sdb/src/main/java/org/apache/jena/sdb/print/ActionPrint.java
----------------------------------------------------------------------
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/print/ActionPrint.java 
b/jena-sdb/src/main/java/org/apache/jena/sdb/print/ActionPrint.java
new file mode 100644
index 0000000..ed1e70f
--- /dev/null
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/print/ActionPrint.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
+package org.apache.jena.sdb.print;
+
+import org.apache.jena.atlas.io.IndentedWriter ;
+import org.apache.jena.atlas.io.Printable ;
+import org.apache.jena.atlas.iterator.Action ;
+
+public class ActionPrint <T extends Printable> implements Action<T> 
+{
+    private boolean first = true ;
+    private IndentedWriter out ;
+    private String sep ; 
+    
+    public ActionPrint(IndentedWriter out, String sep) { this.out = out ; 
this.sep = sep ; }
+    public ActionPrint(IndentedWriter out) { this(out, " ") ; }
+    
+    @Override
+    public void apply(Printable item)
+    {
+        if ( ! first && sep != null )
+            out.print(sep) ;
+        first = false ;
+        item.output(out) ;
+    }
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/a5d3d915/jena-sdb/src/main/java/org/apache/jena/sdb/print/StreamsPrint.java
----------------------------------------------------------------------
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/print/StreamsPrint.java 
b/jena-sdb/src/main/java/org/apache/jena/sdb/print/StreamsPrint.java
index 288fe05..0d3e0b0 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/print/StreamsPrint.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/print/StreamsPrint.java
@@ -22,8 +22,6 @@ import static org.apache.jena.atlas.iterator.Iter.apply ;
 import org.apache.jena.atlas.io.IndentedLineBuffer ;
 import org.apache.jena.atlas.io.IndentedWriter ;
 import org.apache.jena.atlas.io.Printable ;
-import org.apache.jena.atlas.iterator.ActionPrint ;
-
 
 public class StreamsPrint
 {

Reply via email to