Skip to content

Commit b92035f

Browse files
committed
Create formatting package
The `formatting` package contains modules for formatting streams for string output.
1 parent 483103b commit b92035f

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/main/java/org/culturegraph/mf/stream/converter/ObjectTemplate.java renamed to src/main/java/org/culturegraph/mf/formatting/ObjectTemplate.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.formatting;
1717

1818
import java.util.HashMap;
1919
import java.util.Map;

src/main/java/org/culturegraph/mf/stream/converter/PreambleEpilogueAdder.java renamed to src/main/java/org/culturegraph/mf/formatting/PreambleEpilogueAdder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2016 Christoph Böhme
3-
* Copyright 2013, 2014 Deutsche Nationalbibliothek
43
*
54
* Licensed under the Apache License, Version 2.0 the "License";
65
* you may not use this file except in compliance with the License.
@@ -14,7 +13,7 @@
1413
* See the License for the specific language governing permissions and
1514
* limitations under the License.
1615
*/
17-
package org.culturegraph.mf.stream.converter;
16+
package org.culturegraph.mf.formatting;
1817

1918
import org.culturegraph.mf.framework.FluxCommand;
2019
import org.culturegraph.mf.framework.ObjectReceiver;

src/main/java/org/culturegraph/mf/stream/converter/StreamLiteralFormatter.java renamed to src/main/java/org/culturegraph/mf/formatting/StreamLiteralFormatter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2016 Christoph Böhme
3-
* Copyright 2013, 2014 Deutsche Nationalbibliothek
43
*
54
* Licensed under the Apache License, Version 2.0 the "License";
65
* you may not use this file except in compliance with the License.
@@ -14,7 +13,7 @@
1413
* See the License for the specific language governing permissions and
1514
* limitations under the License.
1615
*/
17-
package org.culturegraph.mf.stream.converter;
16+
package org.culturegraph.mf.formatting;
1817

1918
import org.culturegraph.mf.framework.FluxCommand;
2019
import org.culturegraph.mf.framework.ObjectReceiver;

src/main/resources/flux-commands.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ handle-picaxml org.culturegraph.mf.stream.converter.xml.PicaXmlHandler
6060
handle-mabxml org.culturegraph.mf.stream.converter.xml.AlephMabXmlHandler
6161

6262
# Encoders:
63-
encode-literals org.culturegraph.mf.stream.converter.StreamLiteralFormatter
63+
encode-literals org.culturegraph.mf.formatting.StreamLiteralFormatter
6464
encode-formeta org.culturegraph.mf.formeta.FormetaEncoder
6565
encode-json org.culturegraph.mf.stream.converter.JsonEncoder
6666
encode-pica org.culturegraph.mf.stream.converter.bib.pica.PicaEncoder
@@ -85,8 +85,8 @@ change-id org.culturegraph.mf.mangling.RecordIdChanger
8585
flatten org.culturegraph.mf.mangling.StreamFlattener
8686
record-to-entity org.culturegraph.mf.mangling.RecordToEntity
8787

88-
template org.culturegraph.mf.stream.converter.ObjectTemplate
89-
add-preamble-epilogue org.culturegraph.mf.stream.converter.PreambleEpilogueAdder
88+
template org.culturegraph.mf.formatting.ObjectTemplate
89+
add-preamble-epilogue org.culturegraph.mf.formatting.PreambleEpilogueAdder
9090

9191
filter-duplicate-objects org.culturegraph.mf.mangling.DuplicateObjectFilter
9292

0 commit comments

Comments
 (0)