Skip to content

Commit ca7c607

Browse files
committed
Create io package
The `io` package contains modules for reading and writing data.
1 parent c567ee8 commit ca7c607

31 files changed

+50
-57
lines changed

src/main/java/org/culturegraph/mf/flux/parser/Flow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.culturegraph.mf.framework.Receiver;
2727
import org.culturegraph.mf.framework.Sender;
2828
import org.culturegraph.mf.framework.Tee;
29-
import org.culturegraph.mf.stream.source.StdInOpener;
29+
import org.culturegraph.mf.io.StdInOpener;
3030

3131

3232
/**

src/main/java/org/culturegraph/mf/stream/sink/AbstractObjectWriter.java renamed to src/main/java/org/culturegraph/mf/io/AbstractObjectWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013, 2014 Christoph Böhme
2+
* Copyright 2016 Christoph Böhme
33
*
44
* Licensed under the Apache License, Version 2.0 the "License";
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.sink;
16+
package org.culturegraph.mf.io;
1717

1818
/**
1919
* Common functions for object writers.

src/main/java/org/culturegraph/mf/stream/sink/ConfigurableObjectWriter.java renamed to src/main/java/org/culturegraph/mf/io/ConfigurableObjectWriter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013, 2014 Christoph Böhme
2+
* Copyright 2016 Christoph Böhme
33
*
44
* Licensed under the Apache License, Version 2.0 the "License";
55
* you may not use this file except in compliance with the License.
@@ -13,10 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.sink;
16+
package org.culturegraph.mf.io;
1717

1818
import org.culturegraph.mf.framework.ObjectReceiver;
19-
import org.culturegraph.mf.util.FileCompression;
2019

2120
/**
2221
* Back end implementations for {@link ObjectWriter} should offer

src/main/java/org/culturegraph/mf/util/FileCompression.java renamed to src/main/java/org/culturegraph/mf/io/FileCompression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.util;
16+
package org.culturegraph.mf.io;
1717

1818
import java.io.BufferedInputStream;
1919
import java.io.BufferedOutputStream;

src/main/java/org/culturegraph/mf/stream/source/FileOpener.java renamed to src/main/java/org/culturegraph/mf/io/FileOpener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.source;
16+
package org.culturegraph.mf.io;
1717

1818
import java.io.FileInputStream;
1919
import java.io.IOException;
@@ -29,7 +29,6 @@
2929
import org.culturegraph.mf.framework.annotations.In;
3030
import org.culturegraph.mf.framework.annotations.Out;
3131
import org.culturegraph.mf.framework.helpers.DefaultObjectPipe;
32-
import org.culturegraph.mf.util.FileCompression;
3332

3433

3534
/**

src/main/java/org/culturegraph/mf/stream/source/HttpOpener.java renamed to src/main/java/org/culturegraph/mf/io/HttpOpener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.source;
16+
package org.culturegraph.mf.io;
1717

1818
import java.io.IOException;
1919
import java.io.InputStreamReader;

src/main/java/org/culturegraph/mf/stream/sink/IoWriterFactory.java renamed to src/main/java/org/culturegraph/mf/io/IoWriterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.sink;
16+
package org.culturegraph.mf.io;
1717

1818
import java.io.Writer;
1919

src/main/java/org/culturegraph/mf/stream/converter/LineReader.java renamed to src/main/java/org/culturegraph/mf/io/LineReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.converter;
16+
package org.culturegraph.mf.io;
1717

1818
import java.io.BufferedReader;
1919
import java.io.IOException;

src/main/java/org/culturegraph/mf/stream/sink/ObjectFileWriter.java renamed to src/main/java/org/culturegraph/mf/io/ObjectFileWriter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.sink;
16+
package org.culturegraph.mf.io;
1717

1818
import java.io.FileOutputStream;
1919
import java.io.IOException;
@@ -26,7 +26,6 @@
2626
import org.culturegraph.mf.framework.FluxCommand;
2727
import org.culturegraph.mf.framework.MetafactureException;
2828
import org.culturegraph.mf.framework.annotations.In;
29-
import org.culturegraph.mf.util.FileCompression;
3029

3130
/**
3231
* @param <T>

src/main/java/org/culturegraph/mf/stream/sink/ObjectJavaIoWriter.java renamed to src/main/java/org/culturegraph/mf/io/ObjectJavaIoWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.sink;
16+
package org.culturegraph.mf.io;
1717

1818
import java.io.IOException;
1919
import java.io.Writer;

0 commit comments

Comments
 (0)