From 1e61733ae56f81a0a0151033bda2821383928670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Sun, 16 Oct 2022 09:36:44 +0200 Subject: [PATCH] update copyright header --- .../org/xbib/marc/MarcFieldDirectory.java | 29 ++++--- src/main/java/org/xbib/marc/MarcListener.java | 29 ++++--- .../java/org/xbib/marc/MarcRecordAdapter.java | 29 ++++--- .../org/xbib/marc/MarcRecordListener.java | 29 ++++--- src/main/java/org/xbib/marc/MarcWriter.java | 29 ++++--- .../org/xbib/marc/MarcXchangeConstants.java | 29 ++++--- .../marc/PermissiveMarcFieldValidator.java | 15 ++++ .../aleph/AlephSequentialInputStream.java | 29 ++++--- .../bibliomondo/BiblioMondoInputStream.java | 29 ++++--- .../marc/dialects/mab/MabSubfieldControl.java | 15 ++++ .../mab/diskette/MabDisketteInputStream.java | 29 ++++--- .../dialects/mab/xml/MabXMLConstants.java | 29 ++++--- .../mab/xml/MabXMLContentHandler.java | 29 ++++--- .../marc/dialects/pica/PicaConstants.java | 29 ++++--- .../marc/dialects/pica/PicaInputStream.java | 29 ++++--- .../dialects/pica/PicaPlainInputStream.java | 29 ++++--- .../dialects/pica/PicaXMLContentHandler.java | 29 ++++--- .../marc/dialects/sisis/SisisInputStream.java | 29 ++++--- .../org/xbib/marc/io/BaseChunkStream.java | 29 ++++--- .../marc/io/BufferedSeparatorInputStream.java | 29 ++++--- .../java/org/xbib/marc/io/BytesArray.java | 29 ++++--- .../java/org/xbib/marc/io/BytesReference.java | 29 ++++--- .../org/xbib/marc/io/BytesStreamOutput.java | 29 ++++--- src/main/java/org/xbib/marc/io/Chunk.java | 29 ++++--- .../java/org/xbib/marc/io/ChunkListener.java | 29 ++++--- .../java/org/xbib/marc/io/ChunkStream.java | 29 ++++--- .../java/org/xbib/marc/io/DefaultChunk.java | 29 ++++--- .../io/FixedTokenReplacementInputStream.java | 29 ++++--- .../xbib/marc/io/InformationSeparator.java | 29 ++++--- .../org/xbib/marc/io/PatternInputStream.java | 29 ++++--- .../marc/io/ReplaceStringInputStream.java | 29 ++++--- .../java/org/xbib/marc/io/ScanBuffer.java | 29 ++++--- .../xbib/marc/io/SeparatorInputStream.java | 29 ++++--- .../xbib/marc/io/SeparatorOutputStream.java | 29 ++++--- .../org/xbib/marc/io/StreamTokenHandler.java | 29 ++++--- src/main/java/org/xbib/marc/json/Json.java | 29 ++++--- .../java/org/xbib/marc/json/JsonArray.java | 29 ++++--- .../xbib/marc/json/JsonDefaultHandler.java | 29 ++++--- .../org/xbib/marc/json/JsonException.java | 29 ++++--- .../java/org/xbib/marc/json/JsonHandler.java | 29 ++++--- .../java/org/xbib/marc/json/JsonLiteral.java | 29 ++++--- .../java/org/xbib/marc/json/JsonMapper.java | 31 ++++---- .../java/org/xbib/marc/json/JsonNumber.java | 29 ++++--- .../java/org/xbib/marc/json/JsonObject.java | 29 ++++--- .../java/org/xbib/marc/json/JsonReader.java | 29 ++++--- .../java/org/xbib/marc/json/JsonString.java | 29 ++++--- .../java/org/xbib/marc/json/JsonValue.java | 29 ++++--- .../java/org/xbib/marc/json/JsonWriter.java | 29 ++++--- .../org/xbib/marc/json/JsonWriterConfig.java | 29 ++++--- .../org/xbib/marc/json/MarcJsonWriter.java | 29 ++++--- .../xbib/marc/label/BibliographicLevel.java | 29 ++++--- .../marc/label/DescriptiveCatalogingForm.java | 29 ++++--- .../java/org/xbib/marc/label/Encoding.java | 29 ++++--- .../org/xbib/marc/label/EncodingLevel.java | 29 ++++--- .../label/MultipartResourceRecordLevel.java | 29 ++++--- .../java/org/xbib/marc/label/RecordLabel.java | 29 ++++--- .../org/xbib/marc/label/RecordLabelFixer.java | 29 ++++--- .../org/xbib/marc/label/RecordStatus.java | 29 ++++--- .../org/xbib/marc/label/TypeOfControl.java | 29 ++++--- .../org/xbib/marc/label/TypeOfRecord.java | 31 ++++---- .../java/org/xbib/marc/tools/MarcTool.java | 29 ++++--- .../marc/transformer/MarcTransformer.java | 29 ++++--- .../field/MarcFieldTransformer.java | 29 ++++--- .../field/MarcFieldTransformers.java | 29 ++++--- .../value/MarcValueTransformer.java | 29 ++++--- .../value/MarcValueTransformers.java | 29 ++++--- .../value/Xml10MarcValueCleaner.java | 29 ++++--- .../marc/xml/IndentingXMLEventWriter.java | 31 ++++---- .../marc/xml/InverseMarcContentHandler.java | 29 ++++--- .../org/xbib/marc/xml/MarcContentHandler.java | 29 ++++--- .../marc/xml/MarcXchangeEventConsumer.java | 29 ++++--- .../org/xbib/marc/xml/MarcXchangeWriter.java | 29 ++++--- src/main/java/org/xbib/marc/xml/Sax2Dom.java | 29 ++++--- .../java/org/xbib/marc/ConcurrencyTest.java | 17 +++- .../java/org/xbib/marc/MarcRecordTest.java | 15 ++++ .../java/org/xbib/marc/MarcRoundTripTest.java | 15 ++++ .../java/org/xbib/marc/MarcToModsTest.java | 15 ++++ src/test/java/org/xbib/marc/SWBTest.java | 15 ++++ .../dialects/aleph/AlephSequentialTest.java | 15 ++++ .../BiblioMondoInputStreamTest.java | 15 ++++ .../org/xbib/marc/dialects/mab/HBZTest.java | 15 ++++ .../org/xbib/marc/dialects/mab/MabTest.java | 15 ++++ .../xbib/marc/dialects/mab/MabXmlTest.java | 19 ++++- .../org/xbib/marc/dialects/mab/OBVSGTest.java | 15 ++++ .../mab/diskette/MabDisketteTest.java | 15 ++++ .../org/xbib/marc/dialects/pica/PicaTest.java | 15 ++++ .../xbib/marc/dialects/sisis/SisisTest.java | 15 ++++ .../marc/dialects/unimarc/UnimarcTest.java | 15 ++++ ...MarcFieldFilterByRecordIdentifierTest.java | 15 ++++ .../xbib/marc/filter/MarcFieldFilterTest.java | 15 ++++ .../io/BufferedSeparatorInputStreamTest.java | 15 ++++ .../xbib/marc/io/BytesStreamOutputTest.java | 15 ++++ .../xbib/marc/io/PatternInputStreamTest.java | 15 ++++ .../marc/io/ReplaceStringInputStreamTest.java | 15 ++++ .../java/org/xbib/marc/io/ScanBufferTest.java | 15 ++++ .../xbib/marc/io/UncompressLargeFileTest.java | 15 ++++ .../org/xbib/marc/json/JsonArrayTest.java | 15 ++++ .../org/xbib/marc/json/JsonLiteralTest.java | 15 ++++ .../org/xbib/marc/json/JsonNumberTest.java | 15 ++++ .../org/xbib/marc/json/JsonObjectTest.java | 15 ++++ .../org/xbib/marc/json/JsonReaderTest.java | 15 ++++ .../org/xbib/marc/json/JsonStringTest.java | 15 ++++ .../java/org/xbib/marc/json/JsonTest.java | 15 ++++ .../org/xbib/marc/json/JsonWriterTest.java | 15 ++++ .../xbib/marc/json/MarcJsonWriterTest.java | 16 +++- .../org/xbib/marc/json/PrettyPrintTest.java | 15 ++++ .../java/org/xbib/marc/json/TestUtil.java | 79 ------------------- .../org/xbib/marc/label/RecordLabelTest.java | 15 ++++ .../xbib/marc/tools/ExpectedSystemExit.java | 15 ++++ .../java/org/xbib/marc/tools/ToolTest.java | 15 ++++ .../transformer/MarcFieldTransformerTest.java | 15 ++++ .../MarcFieldTransformersTest.java | 15 ++++ .../transformer/MarcValueTransformerTest.java | 15 ++++ .../java/org/xbib/marc/xml/AlmaXMLTest.java | 15 ++++ .../org/xbib/marc/xml/DNBSRUMarcXMLTest.java | 15 ++++ .../xbib/marc/xml/MarcEventConsumerTest.java | 18 ++++- 116 files changed, 1655 insertions(+), 1159 deletions(-) delete mode 100644 src/test/java/org/xbib/marc/json/TestUtil.java diff --git a/src/main/java/org/xbib/marc/MarcFieldDirectory.java b/src/main/java/org/xbib/marc/MarcFieldDirectory.java index 0a1ac52..0323b33 100644 --- a/src/main/java/org/xbib/marc/MarcFieldDirectory.java +++ b/src/main/java/org/xbib/marc/MarcFieldDirectory.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; diff --git a/src/main/java/org/xbib/marc/MarcListener.java b/src/main/java/org/xbib/marc/MarcListener.java index d25e90d..8244edd 100644 --- a/src/main/java/org/xbib/marc/MarcListener.java +++ b/src/main/java/org/xbib/marc/MarcListener.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; diff --git a/src/main/java/org/xbib/marc/MarcRecordAdapter.java b/src/main/java/org/xbib/marc/MarcRecordAdapter.java index 9aa4124..7699985 100644 --- a/src/main/java/org/xbib/marc/MarcRecordAdapter.java +++ b/src/main/java/org/xbib/marc/MarcRecordAdapter.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; diff --git a/src/main/java/org/xbib/marc/MarcRecordListener.java b/src/main/java/org/xbib/marc/MarcRecordListener.java index ea17938..9e766d4 100644 --- a/src/main/java/org/xbib/marc/MarcRecordListener.java +++ b/src/main/java/org/xbib/marc/MarcRecordListener.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; diff --git a/src/main/java/org/xbib/marc/MarcWriter.java b/src/main/java/org/xbib/marc/MarcWriter.java index d6f0166..8b24f22 100644 --- a/src/main/java/org/xbib/marc/MarcWriter.java +++ b/src/main/java/org/xbib/marc/MarcWriter.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; diff --git a/src/main/java/org/xbib/marc/MarcXchangeConstants.java b/src/main/java/org/xbib/marc/MarcXchangeConstants.java index 5910606..9910a35 100644 --- a/src/main/java/org/xbib/marc/MarcXchangeConstants.java +++ b/src/main/java/org/xbib/marc/MarcXchangeConstants.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; diff --git a/src/main/java/org/xbib/marc/PermissiveMarcFieldValidator.java b/src/main/java/org/xbib/marc/PermissiveMarcFieldValidator.java index 9b66d98..585d316 100644 --- a/src/main/java/org/xbib/marc/PermissiveMarcFieldValidator.java +++ b/src/main/java/org/xbib/marc/PermissiveMarcFieldValidator.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; public class PermissiveMarcFieldValidator implements MarcFieldValidator { diff --git a/src/main/java/org/xbib/marc/dialects/aleph/AlephSequentialInputStream.java b/src/main/java/org/xbib/marc/dialects/aleph/AlephSequentialInputStream.java index 2d634f8..e3ad744 100644 --- a/src/main/java/org/xbib/marc/dialects/aleph/AlephSequentialInputStream.java +++ b/src/main/java/org/xbib/marc/dialects/aleph/AlephSequentialInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.aleph; diff --git a/src/main/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStream.java b/src/main/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStream.java index eba13ba..5d86606 100644 --- a/src/main/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStream.java +++ b/src/main/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.bibliomondo; diff --git a/src/main/java/org/xbib/marc/dialects/mab/MabSubfieldControl.java b/src/main/java/org/xbib/marc/dialects/mab/MabSubfieldControl.java index 282e5b3..edcc3e7 100644 --- a/src/main/java/org/xbib/marc/dialects/mab/MabSubfieldControl.java +++ b/src/main/java/org/xbib/marc/dialects/mab/MabSubfieldControl.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab; import java.util.Map; diff --git a/src/main/java/org/xbib/marc/dialects/mab/diskette/MabDisketteInputStream.java b/src/main/java/org/xbib/marc/dialects/mab/diskette/MabDisketteInputStream.java index 54150ed..752caa4 100644 --- a/src/main/java/org/xbib/marc/dialects/mab/diskette/MabDisketteInputStream.java +++ b/src/main/java/org/xbib/marc/dialects/mab/diskette/MabDisketteInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab.diskette; diff --git a/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLConstants.java b/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLConstants.java index 97731da..1fe6aaf 100644 --- a/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLConstants.java +++ b/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLConstants.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab.xml; diff --git a/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLContentHandler.java b/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLContentHandler.java index 8d10821..893da92 100644 --- a/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLContentHandler.java +++ b/src/main/java/org/xbib/marc/dialects/mab/xml/MabXMLContentHandler.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab.xml; diff --git a/src/main/java/org/xbib/marc/dialects/pica/PicaConstants.java b/src/main/java/org/xbib/marc/dialects/pica/PicaConstants.java index fc12700..a024152 100644 --- a/src/main/java/org/xbib/marc/dialects/pica/PicaConstants.java +++ b/src/main/java/org/xbib/marc/dialects/pica/PicaConstants.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.pica; diff --git a/src/main/java/org/xbib/marc/dialects/pica/PicaInputStream.java b/src/main/java/org/xbib/marc/dialects/pica/PicaInputStream.java index 93fcc38..ec3bf19 100644 --- a/src/main/java/org/xbib/marc/dialects/pica/PicaInputStream.java +++ b/src/main/java/org/xbib/marc/dialects/pica/PicaInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.pica; diff --git a/src/main/java/org/xbib/marc/dialects/pica/PicaPlainInputStream.java b/src/main/java/org/xbib/marc/dialects/pica/PicaPlainInputStream.java index e5f620d..dda62b1 100644 --- a/src/main/java/org/xbib/marc/dialects/pica/PicaPlainInputStream.java +++ b/src/main/java/org/xbib/marc/dialects/pica/PicaPlainInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.pica; diff --git a/src/main/java/org/xbib/marc/dialects/pica/PicaXMLContentHandler.java b/src/main/java/org/xbib/marc/dialects/pica/PicaXMLContentHandler.java index 326d91d..4fcfd0e 100644 --- a/src/main/java/org/xbib/marc/dialects/pica/PicaXMLContentHandler.java +++ b/src/main/java/org/xbib/marc/dialects/pica/PicaXMLContentHandler.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.pica; diff --git a/src/main/java/org/xbib/marc/dialects/sisis/SisisInputStream.java b/src/main/java/org/xbib/marc/dialects/sisis/SisisInputStream.java index 0ed36df..ed4752b 100644 --- a/src/main/java/org/xbib/marc/dialects/sisis/SisisInputStream.java +++ b/src/main/java/org/xbib/marc/dialects/sisis/SisisInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.sisis; diff --git a/src/main/java/org/xbib/marc/io/BaseChunkStream.java b/src/main/java/org/xbib/marc/io/BaseChunkStream.java index 59818b8..ac327d4 100644 --- a/src/main/java/org/xbib/marc/io/BaseChunkStream.java +++ b/src/main/java/org/xbib/marc/io/BaseChunkStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/BufferedSeparatorInputStream.java b/src/main/java/org/xbib/marc/io/BufferedSeparatorInputStream.java index 5a01d94..5cb9dbc 100644 --- a/src/main/java/org/xbib/marc/io/BufferedSeparatorInputStream.java +++ b/src/main/java/org/xbib/marc/io/BufferedSeparatorInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/BytesArray.java b/src/main/java/org/xbib/marc/io/BytesArray.java index d9bd512..bf8b15a 100644 --- a/src/main/java/org/xbib/marc/io/BytesArray.java +++ b/src/main/java/org/xbib/marc/io/BytesArray.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/BytesReference.java b/src/main/java/org/xbib/marc/io/BytesReference.java index a791e4f..84c4445 100644 --- a/src/main/java/org/xbib/marc/io/BytesReference.java +++ b/src/main/java/org/xbib/marc/io/BytesReference.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/BytesStreamOutput.java b/src/main/java/org/xbib/marc/io/BytesStreamOutput.java index 0a347bd..ba9f03e 100644 --- a/src/main/java/org/xbib/marc/io/BytesStreamOutput.java +++ b/src/main/java/org/xbib/marc/io/BytesStreamOutput.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/Chunk.java b/src/main/java/org/xbib/marc/io/Chunk.java index d27ea6e..5665743 100644 --- a/src/main/java/org/xbib/marc/io/Chunk.java +++ b/src/main/java/org/xbib/marc/io/Chunk.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/ChunkListener.java b/src/main/java/org/xbib/marc/io/ChunkListener.java index f8944bf..2da7079 100644 --- a/src/main/java/org/xbib/marc/io/ChunkListener.java +++ b/src/main/java/org/xbib/marc/io/ChunkListener.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/ChunkStream.java b/src/main/java/org/xbib/marc/io/ChunkStream.java index 6510ab8..a8cedf0 100644 --- a/src/main/java/org/xbib/marc/io/ChunkStream.java +++ b/src/main/java/org/xbib/marc/io/ChunkStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/DefaultChunk.java b/src/main/java/org/xbib/marc/io/DefaultChunk.java index 6f1a454..264b561 100644 --- a/src/main/java/org/xbib/marc/io/DefaultChunk.java +++ b/src/main/java/org/xbib/marc/io/DefaultChunk.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/FixedTokenReplacementInputStream.java b/src/main/java/org/xbib/marc/io/FixedTokenReplacementInputStream.java index d25fc8b..15c34d9 100644 --- a/src/main/java/org/xbib/marc/io/FixedTokenReplacementInputStream.java +++ b/src/main/java/org/xbib/marc/io/FixedTokenReplacementInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/InformationSeparator.java b/src/main/java/org/xbib/marc/io/InformationSeparator.java index b5a2a43..fbd976c 100644 --- a/src/main/java/org/xbib/marc/io/InformationSeparator.java +++ b/src/main/java/org/xbib/marc/io/InformationSeparator.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/PatternInputStream.java b/src/main/java/org/xbib/marc/io/PatternInputStream.java index 0a21c7c..465a7ae 100644 --- a/src/main/java/org/xbib/marc/io/PatternInputStream.java +++ b/src/main/java/org/xbib/marc/io/PatternInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/ReplaceStringInputStream.java b/src/main/java/org/xbib/marc/io/ReplaceStringInputStream.java index 19f164a..356679f 100644 --- a/src/main/java/org/xbib/marc/io/ReplaceStringInputStream.java +++ b/src/main/java/org/xbib/marc/io/ReplaceStringInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/ScanBuffer.java b/src/main/java/org/xbib/marc/io/ScanBuffer.java index 19b93cd..39053f8 100644 --- a/src/main/java/org/xbib/marc/io/ScanBuffer.java +++ b/src/main/java/org/xbib/marc/io/ScanBuffer.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/SeparatorInputStream.java b/src/main/java/org/xbib/marc/io/SeparatorInputStream.java index 9217f0a..db335d1 100644 --- a/src/main/java/org/xbib/marc/io/SeparatorInputStream.java +++ b/src/main/java/org/xbib/marc/io/SeparatorInputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/SeparatorOutputStream.java b/src/main/java/org/xbib/marc/io/SeparatorOutputStream.java index 5818f52..2602c1a 100644 --- a/src/main/java/org/xbib/marc/io/SeparatorOutputStream.java +++ b/src/main/java/org/xbib/marc/io/SeparatorOutputStream.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/io/StreamTokenHandler.java b/src/main/java/org/xbib/marc/io/StreamTokenHandler.java index a6d7184..b2c0861 100644 --- a/src/main/java/org/xbib/marc/io/StreamTokenHandler.java +++ b/src/main/java/org/xbib/marc/io/StreamTokenHandler.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; diff --git a/src/main/java/org/xbib/marc/json/Json.java b/src/main/java/org/xbib/marc/json/Json.java index 3058ef1..d650288 100755 --- a/src/main/java/org/xbib/marc/json/Json.java +++ b/src/main/java/org/xbib/marc/json/Json.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonArray.java b/src/main/java/org/xbib/marc/json/JsonArray.java index 4bee8b9..86ab78c 100755 --- a/src/main/java/org/xbib/marc/json/JsonArray.java +++ b/src/main/java/org/xbib/marc/json/JsonArray.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonDefaultHandler.java b/src/main/java/org/xbib/marc/json/JsonDefaultHandler.java index a9807f3..58ed90d 100644 --- a/src/main/java/org/xbib/marc/json/JsonDefaultHandler.java +++ b/src/main/java/org/xbib/marc/json/JsonDefaultHandler.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonException.java b/src/main/java/org/xbib/marc/json/JsonException.java index 041e5d1..abbe2bf 100755 --- a/src/main/java/org/xbib/marc/json/JsonException.java +++ b/src/main/java/org/xbib/marc/json/JsonException.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonHandler.java b/src/main/java/org/xbib/marc/json/JsonHandler.java index ff6a3a9..484bba5 100755 --- a/src/main/java/org/xbib/marc/json/JsonHandler.java +++ b/src/main/java/org/xbib/marc/json/JsonHandler.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonLiteral.java b/src/main/java/org/xbib/marc/json/JsonLiteral.java index 73c35fb..35fbe60 100755 --- a/src/main/java/org/xbib/marc/json/JsonLiteral.java +++ b/src/main/java/org/xbib/marc/json/JsonLiteral.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonMapper.java b/src/main/java/org/xbib/marc/json/JsonMapper.java index b9aaee4..0c3855c 100644 --- a/src/main/java/org/xbib/marc/json/JsonMapper.java +++ b/src/main/java/org/xbib/marc/json/JsonMapper.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; @@ -22,8 +21,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -/** - */ public class JsonMapper { private JsonMapper() { diff --git a/src/main/java/org/xbib/marc/json/JsonNumber.java b/src/main/java/org/xbib/marc/json/JsonNumber.java index 0a47cae..b267b47 100755 --- a/src/main/java/org/xbib/marc/json/JsonNumber.java +++ b/src/main/java/org/xbib/marc/json/JsonNumber.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonObject.java b/src/main/java/org/xbib/marc/json/JsonObject.java index 2efc7c2..8733f77 100755 --- a/src/main/java/org/xbib/marc/json/JsonObject.java +++ b/src/main/java/org/xbib/marc/json/JsonObject.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonReader.java b/src/main/java/org/xbib/marc/json/JsonReader.java index 7341ccb..5a8fe2c 100755 --- a/src/main/java/org/xbib/marc/json/JsonReader.java +++ b/src/main/java/org/xbib/marc/json/JsonReader.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonString.java b/src/main/java/org/xbib/marc/json/JsonString.java index 5ea9791..a407ce3 100755 --- a/src/main/java/org/xbib/marc/json/JsonString.java +++ b/src/main/java/org/xbib/marc/json/JsonString.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonValue.java b/src/main/java/org/xbib/marc/json/JsonValue.java index 443893d..a506745 100755 --- a/src/main/java/org/xbib/marc/json/JsonValue.java +++ b/src/main/java/org/xbib/marc/json/JsonValue.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonWriter.java b/src/main/java/org/xbib/marc/json/JsonWriter.java index a06cc5f..d50beb4 100755 --- a/src/main/java/org/xbib/marc/json/JsonWriter.java +++ b/src/main/java/org/xbib/marc/json/JsonWriter.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/JsonWriterConfig.java b/src/main/java/org/xbib/marc/json/JsonWriterConfig.java index 48fa513..342eb2b 100755 --- a/src/main/java/org/xbib/marc/json/JsonWriterConfig.java +++ b/src/main/java/org/xbib/marc/json/JsonWriterConfig.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/json/MarcJsonWriter.java b/src/main/java/org/xbib/marc/json/MarcJsonWriter.java index cf515d3..0baaaea 100644 --- a/src/main/java/org/xbib/marc/json/MarcJsonWriter.java +++ b/src/main/java/org/xbib/marc/json/MarcJsonWriter.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; diff --git a/src/main/java/org/xbib/marc/label/BibliographicLevel.java b/src/main/java/org/xbib/marc/label/BibliographicLevel.java index 0c70e10..e3bcc58 100644 --- a/src/main/java/org/xbib/marc/label/BibliographicLevel.java +++ b/src/main/java/org/xbib/marc/label/BibliographicLevel.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/DescriptiveCatalogingForm.java b/src/main/java/org/xbib/marc/label/DescriptiveCatalogingForm.java index 9320721..cfe9342 100644 --- a/src/main/java/org/xbib/marc/label/DescriptiveCatalogingForm.java +++ b/src/main/java/org/xbib/marc/label/DescriptiveCatalogingForm.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/Encoding.java b/src/main/java/org/xbib/marc/label/Encoding.java index 190893e..503e1cc 100644 --- a/src/main/java/org/xbib/marc/label/Encoding.java +++ b/src/main/java/org/xbib/marc/label/Encoding.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/EncodingLevel.java b/src/main/java/org/xbib/marc/label/EncodingLevel.java index ac4763b..88ffa95 100644 --- a/src/main/java/org/xbib/marc/label/EncodingLevel.java +++ b/src/main/java/org/xbib/marc/label/EncodingLevel.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/MultipartResourceRecordLevel.java b/src/main/java/org/xbib/marc/label/MultipartResourceRecordLevel.java index 4251be5..b7922f3 100644 --- a/src/main/java/org/xbib/marc/label/MultipartResourceRecordLevel.java +++ b/src/main/java/org/xbib/marc/label/MultipartResourceRecordLevel.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/RecordLabel.java b/src/main/java/org/xbib/marc/label/RecordLabel.java index 8d137e6..da5c854 100644 --- a/src/main/java/org/xbib/marc/label/RecordLabel.java +++ b/src/main/java/org/xbib/marc/label/RecordLabel.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/RecordLabelFixer.java b/src/main/java/org/xbib/marc/label/RecordLabelFixer.java index 31996c5..3b1105e 100644 --- a/src/main/java/org/xbib/marc/label/RecordLabelFixer.java +++ b/src/main/java/org/xbib/marc/label/RecordLabelFixer.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/RecordStatus.java b/src/main/java/org/xbib/marc/label/RecordStatus.java index 2ae4814..98930e7 100644 --- a/src/main/java/org/xbib/marc/label/RecordStatus.java +++ b/src/main/java/org/xbib/marc/label/RecordStatus.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/TypeOfControl.java b/src/main/java/org/xbib/marc/label/TypeOfControl.java index b0a88eb..332ba02 100644 --- a/src/main/java/org/xbib/marc/label/TypeOfControl.java +++ b/src/main/java/org/xbib/marc/label/TypeOfControl.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; diff --git a/src/main/java/org/xbib/marc/label/TypeOfRecord.java b/src/main/java/org/xbib/marc/label/TypeOfRecord.java index a024cbb..a3878d9 100644 --- a/src/main/java/org/xbib/marc/label/TypeOfRecord.java +++ b/src/main/java/org/xbib/marc/label/TypeOfRecord.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; @@ -129,7 +128,7 @@ import java.util.logging.Logger; * to exist as a single instance. Examples include marked or corrected galley and page proofs, * manuscript books, legal papers, and unpublished theses and dissertations. * - * http://www.ifla.org/files/assets/uca/unimarc_updates/BIBLIOGRAPHIC/u-b_reclabl_update.pdf + * IFLA UniMarc Record Label Docuemntation */ public enum TypeOfRecord { diff --git a/src/main/java/org/xbib/marc/tools/MarcTool.java b/src/main/java/org/xbib/marc/tools/MarcTool.java index dcee452..d777ce2 100644 --- a/src/main/java/org/xbib/marc/tools/MarcTool.java +++ b/src/main/java/org/xbib/marc/tools/MarcTool.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.tools; diff --git a/src/main/java/org/xbib/marc/transformer/MarcTransformer.java b/src/main/java/org/xbib/marc/transformer/MarcTransformer.java index d9835f5..2f3fd5d 100644 --- a/src/main/java/org/xbib/marc/transformer/MarcTransformer.java +++ b/src/main/java/org/xbib/marc/transformer/MarcTransformer.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer; diff --git a/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformer.java b/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformer.java index e71a877..fc8da3b 100644 --- a/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformer.java +++ b/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformer.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer.field; diff --git a/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformers.java b/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformers.java index a2d108e..f7b7599 100644 --- a/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformers.java +++ b/src/main/java/org/xbib/marc/transformer/field/MarcFieldTransformers.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer.field; diff --git a/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformer.java b/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformer.java index 0fa0e45..e4b1b45 100644 --- a/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformer.java +++ b/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformer.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer.value; diff --git a/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformers.java b/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformers.java index b710943..501ef1f 100644 --- a/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformers.java +++ b/src/main/java/org/xbib/marc/transformer/value/MarcValueTransformers.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer.value; diff --git a/src/main/java/org/xbib/marc/transformer/value/Xml10MarcValueCleaner.java b/src/main/java/org/xbib/marc/transformer/value/Xml10MarcValueCleaner.java index 00975dc..5bd1a88 100644 --- a/src/main/java/org/xbib/marc/transformer/value/Xml10MarcValueCleaner.java +++ b/src/main/java/org/xbib/marc/transformer/value/Xml10MarcValueCleaner.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer.value; diff --git a/src/main/java/org/xbib/marc/xml/IndentingXMLEventWriter.java b/src/main/java/org/xbib/marc/xml/IndentingXMLEventWriter.java index b7f9116..2e6aa7d 100644 --- a/src/main/java/org/xbib/marc/xml/IndentingXMLEventWriter.java +++ b/src/main/java/org/xbib/marc/xml/IndentingXMLEventWriter.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; @@ -34,8 +33,6 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.events.Characters; import javax.xml.stream.events.XMLEvent; -/** - */ public class IndentingXMLEventWriter implements XMLEventWriter { private static final Logger logger = Logger.getLogger(IndentingXMLEventWriter.class.getName()); diff --git a/src/main/java/org/xbib/marc/xml/InverseMarcContentHandler.java b/src/main/java/org/xbib/marc/xml/InverseMarcContentHandler.java index a054a8e..82c44e6 100644 --- a/src/main/java/org/xbib/marc/xml/InverseMarcContentHandler.java +++ b/src/main/java/org/xbib/marc/xml/InverseMarcContentHandler.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; diff --git a/src/main/java/org/xbib/marc/xml/MarcContentHandler.java b/src/main/java/org/xbib/marc/xml/MarcContentHandler.java index 413987c..a6ab810 100644 --- a/src/main/java/org/xbib/marc/xml/MarcContentHandler.java +++ b/src/main/java/org/xbib/marc/xml/MarcContentHandler.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; diff --git a/src/main/java/org/xbib/marc/xml/MarcXchangeEventConsumer.java b/src/main/java/org/xbib/marc/xml/MarcXchangeEventConsumer.java index eae7fd1..710a87a 100644 --- a/src/main/java/org/xbib/marc/xml/MarcXchangeEventConsumer.java +++ b/src/main/java/org/xbib/marc/xml/MarcXchangeEventConsumer.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; diff --git a/src/main/java/org/xbib/marc/xml/MarcXchangeWriter.java b/src/main/java/org/xbib/marc/xml/MarcXchangeWriter.java index 5f2462c..0932603 100644 --- a/src/main/java/org/xbib/marc/xml/MarcXchangeWriter.java +++ b/src/main/java/org/xbib/marc/xml/MarcXchangeWriter.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; diff --git a/src/main/java/org/xbib/marc/xml/Sax2Dom.java b/src/main/java/org/xbib/marc/xml/Sax2Dom.java index 58e2f2b..3c4b60f 100644 --- a/src/main/java/org/xbib/marc/xml/Sax2Dom.java +++ b/src/main/java/org/xbib/marc/xml/Sax2Dom.java @@ -1,18 +1,17 @@ -/* - Copyright 2016 Jörg Prante - - 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. - +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; diff --git a/src/test/java/org/xbib/marc/ConcurrencyTest.java b/src/test/java/org/xbib/marc/ConcurrencyTest.java index 07c1f59..543f89e 100644 --- a/src/test/java/org/xbib/marc/ConcurrencyTest.java +++ b/src/test/java/org/xbib/marc/ConcurrencyTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -14,8 +29,6 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; -/** - */ public class ConcurrencyTest { /** diff --git a/src/test/java/org/xbib/marc/MarcRecordTest.java b/src/test/java/org/xbib/marc/MarcRecordTest.java index 53015a8..da337eb 100644 --- a/src/test/java/org/xbib/marc/MarcRecordTest.java +++ b/src/test/java/org/xbib/marc/MarcRecordTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/MarcRoundTripTest.java b/src/test/java/org/xbib/marc/MarcRoundTripTest.java index 2528843..66cebc4 100644 --- a/src/test/java/org/xbib/marc/MarcRoundTripTest.java +++ b/src/test/java/org/xbib/marc/MarcRoundTripTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; import org.junit.jupiter.api.Test; diff --git a/src/test/java/org/xbib/marc/MarcToModsTest.java b/src/test/java/org/xbib/marc/MarcToModsTest.java index ef06d5c..c8963bb 100644 --- a/src/test/java/org/xbib/marc/MarcToModsTest.java +++ b/src/test/java/org/xbib/marc/MarcToModsTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/SWBTest.java b/src/test/java/org/xbib/marc/SWBTest.java index c275bd5..9452189 100644 --- a/src/test/java/org/xbib/marc/SWBTest.java +++ b/src/test/java/org/xbib/marc/SWBTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/dialects/aleph/AlephSequentialTest.java b/src/test/java/org/xbib/marc/dialects/aleph/AlephSequentialTest.java index b004cb2..a6978c6 100644 --- a/src/test/java/org/xbib/marc/dialects/aleph/AlephSequentialTest.java +++ b/src/test/java/org/xbib/marc/dialects/aleph/AlephSequentialTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.aleph; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStreamTest.java b/src/test/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStreamTest.java index e5e7acf..5310be2 100644 --- a/src/test/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStreamTest.java +++ b/src/test/java/org/xbib/marc/dialects/bibliomondo/BiblioMondoInputStreamTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.bibliomondo; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/xbib/marc/dialects/mab/HBZTest.java b/src/test/java/org/xbib/marc/dialects/mab/HBZTest.java index 4aec86f..39ba186 100644 --- a/src/test/java/org/xbib/marc/dialects/mab/HBZTest.java +++ b/src/test/java/org/xbib/marc/dialects/mab/HBZTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/dialects/mab/MabTest.java b/src/test/java/org/xbib/marc/dialects/mab/MabTest.java index e61b2b2..af3fd76 100644 --- a/src/test/java/org/xbib/marc/dialects/mab/MabTest.java +++ b/src/test/java/org/xbib/marc/dialects/mab/MabTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/dialects/mab/MabXmlTest.java b/src/test/java/org/xbib/marc/dialects/mab/MabXmlTest.java index e9e2271..f3647c4 100644 --- a/src/test/java/org/xbib/marc/dialects/mab/MabXmlTest.java +++ b/src/test/java/org/xbib/marc/dialects/mab/MabXmlTest.java @@ -1,6 +1,20 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab; -import static org.xbib.marc.StreamMatcher.assertStream; import org.junit.jupiter.api.Test; import org.xbib.marc.Marc; import org.xbib.marc.StreamMatcher; @@ -9,9 +23,6 @@ import org.xbib.marc.json.MarcJsonWriter; import org.xbib.marc.xml.MarcContentHandler; import org.xbib.marc.xml.MarcXchangeWriter; import org.xml.sax.InputSource; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.EnumSet; diff --git a/src/test/java/org/xbib/marc/dialects/mab/OBVSGTest.java b/src/test/java/org/xbib/marc/dialects/mab/OBVSGTest.java index 42deeac..eaf76ab 100644 --- a/src/test/java/org/xbib/marc/dialects/mab/OBVSGTest.java +++ b/src/test/java/org/xbib/marc/dialects/mab/OBVSGTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/dialects/mab/diskette/MabDisketteTest.java b/src/test/java/org/xbib/marc/dialects/mab/diskette/MabDisketteTest.java index 88b48c0..e583597 100644 --- a/src/test/java/org/xbib/marc/dialects/mab/diskette/MabDisketteTest.java +++ b/src/test/java/org/xbib/marc/dialects/mab/diskette/MabDisketteTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.mab.diskette; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/dialects/pica/PicaTest.java b/src/test/java/org/xbib/marc/dialects/pica/PicaTest.java index 485209c..c6ab5cf 100644 --- a/src/test/java/org/xbib/marc/dialects/pica/PicaTest.java +++ b/src/test/java/org/xbib/marc/dialects/pica/PicaTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.pica; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/dialects/sisis/SisisTest.java b/src/test/java/org/xbib/marc/dialects/sisis/SisisTest.java index 578487e..425aca3 100644 --- a/src/test/java/org/xbib/marc/dialects/sisis/SisisTest.java +++ b/src/test/java/org/xbib/marc/dialects/sisis/SisisTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.sisis; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java b/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java index 9138c3a..0e7a7f7 100644 --- a/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java +++ b/src/test/java/org/xbib/marc/dialects/unimarc/UnimarcTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.dialects.unimarc; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/filter/MarcFieldFilterByRecordIdentifierTest.java b/src/test/java/org/xbib/marc/filter/MarcFieldFilterByRecordIdentifierTest.java index dd24e30..6e30d59 100644 --- a/src/test/java/org/xbib/marc/filter/MarcFieldFilterByRecordIdentifierTest.java +++ b/src/test/java/org/xbib/marc/filter/MarcFieldFilterByRecordIdentifierTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.filter; import org.junit.jupiter.api.Test; diff --git a/src/test/java/org/xbib/marc/filter/MarcFieldFilterTest.java b/src/test/java/org/xbib/marc/filter/MarcFieldFilterTest.java index 82985a3..b608b46 100644 --- a/src/test/java/org/xbib/marc/filter/MarcFieldFilterTest.java +++ b/src/test/java/org/xbib/marc/filter/MarcFieldFilterTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.filter; import static org.xbib.content.json.JsonXContent.contentBuilder; diff --git a/src/test/java/org/xbib/marc/io/BufferedSeparatorInputStreamTest.java b/src/test/java/org/xbib/marc/io/BufferedSeparatorInputStreamTest.java index 5ed5e0f..59770b7 100644 --- a/src/test/java/org/xbib/marc/io/BufferedSeparatorInputStreamTest.java +++ b/src/test/java/org/xbib/marc/io/BufferedSeparatorInputStreamTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/io/BytesStreamOutputTest.java b/src/test/java/org/xbib/marc/io/BytesStreamOutputTest.java index 82b5bef..3918410 100644 --- a/src/test/java/org/xbib/marc/io/BytesStreamOutputTest.java +++ b/src/test/java/org/xbib/marc/io/BytesStreamOutputTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/src/test/java/org/xbib/marc/io/PatternInputStreamTest.java b/src/test/java/org/xbib/marc/io/PatternInputStreamTest.java index ce8a029..b8a7ada 100644 --- a/src/test/java/org/xbib/marc/io/PatternInputStreamTest.java +++ b/src/test/java/org/xbib/marc/io/PatternInputStreamTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/io/ReplaceStringInputStreamTest.java b/src/test/java/org/xbib/marc/io/ReplaceStringInputStreamTest.java index cd6e1dd..69e7044 100644 --- a/src/test/java/org/xbib/marc/io/ReplaceStringInputStreamTest.java +++ b/src/test/java/org/xbib/marc/io/ReplaceStringInputStreamTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; import static org.xbib.marc.StreamMatcher.assertStream; diff --git a/src/test/java/org/xbib/marc/io/ScanBufferTest.java b/src/test/java/org/xbib/marc/io/ScanBufferTest.java index 950bafa..f75cb7e 100644 --- a/src/test/java/org/xbib/marc/io/ScanBufferTest.java +++ b/src/test/java/org/xbib/marc/io/ScanBufferTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/io/UncompressLargeFileTest.java b/src/test/java/org/xbib/marc/io/UncompressLargeFileTest.java index 7203c0a..d1b4555 100644 --- a/src/test/java/org/xbib/marc/io/UncompressLargeFileTest.java +++ b/src/test/java/org/xbib/marc/io/UncompressLargeFileTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.io; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/xbib/marc/json/JsonArrayTest.java b/src/test/java/org/xbib/marc/json/JsonArrayTest.java index 84e02ab..1f44a17 100755 --- a/src/test/java/org/xbib/marc/json/JsonArrayTest.java +++ b/src/test/java/org/xbib/marc/json/JsonArrayTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/JsonLiteralTest.java b/src/test/java/org/xbib/marc/json/JsonLiteralTest.java index d050d00..c8d5d0b 100755 --- a/src/test/java/org/xbib/marc/json/JsonLiteralTest.java +++ b/src/test/java/org/xbib/marc/json/JsonLiteralTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/JsonNumberTest.java b/src/test/java/org/xbib/marc/json/JsonNumberTest.java index 0d84412..5962344 100755 --- a/src/test/java/org/xbib/marc/json/JsonNumberTest.java +++ b/src/test/java/org/xbib/marc/json/JsonNumberTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/JsonObjectTest.java b/src/test/java/org/xbib/marc/json/JsonObjectTest.java index 2c21256..f1afa1e 100755 --- a/src/test/java/org/xbib/marc/json/JsonObjectTest.java +++ b/src/test/java/org/xbib/marc/json/JsonObjectTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/JsonReaderTest.java b/src/test/java/org/xbib/marc/json/JsonReaderTest.java index 9c602a7..24f4293 100755 --- a/src/test/java/org/xbib/marc/json/JsonReaderTest.java +++ b/src/test/java/org/xbib/marc/json/JsonReaderTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/json/JsonStringTest.java b/src/test/java/org/xbib/marc/json/JsonStringTest.java index ae66788..4f4ec0d 100755 --- a/src/test/java/org/xbib/marc/json/JsonStringTest.java +++ b/src/test/java/org/xbib/marc/json/JsonStringTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/JsonTest.java b/src/test/java/org/xbib/marc/json/JsonTest.java index dd1af1f..ba6c0f9 100755 --- a/src/test/java/org/xbib/marc/json/JsonTest.java +++ b/src/test/java/org/xbib/marc/json/JsonTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/JsonWriterTest.java b/src/test/java/org/xbib/marc/json/JsonWriterTest.java index ff38dbd..28b5204 100755 --- a/src/test/java/org/xbib/marc/json/JsonWriterTest.java +++ b/src/test/java/org/xbib/marc/json/JsonWriterTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/MarcJsonWriterTest.java b/src/test/java/org/xbib/marc/json/MarcJsonWriterTest.java index c538764..7e75d4d 100644 --- a/src/test/java/org/xbib/marc/json/MarcJsonWriterTest.java +++ b/src/test/java/org/xbib/marc/json/MarcJsonWriterTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -6,7 +21,6 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.xbib.marc.StreamMatcher.assertStream; import java.io.OutputStream; -import java.io.Writer; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; diff --git a/src/test/java/org/xbib/marc/json/PrettyPrintTest.java b/src/test/java/org/xbib/marc/json/PrettyPrintTest.java index 41e44d4..7ad7e0c 100755 --- a/src/test/java/org/xbib/marc/json/PrettyPrintTest.java +++ b/src/test/java/org/xbib/marc/json/PrettyPrintTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.json; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/json/TestUtil.java b/src/test/java/org/xbib/marc/json/TestUtil.java deleted file mode 100644 index 5cac6b7..0000000 --- a/src/test/java/org/xbib/marc/json/TestUtil.java +++ /dev/null @@ -1,79 +0,0 @@ -package org.xbib.marc.json; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; - -public class TestUtil { - - public static T assertException(Class type, - String message, - Runnable runnable) { - return assertException(type, message, adapt(runnable)); - } - - public static T assertException(Class type, - String message, - RunnableEx runnable) { - T exception = assertException(type, runnable); - assertEquals("exception message", message, exception.getMessage()); - return exception; - } - - public static T assertException(Class type, Runnable runnable) { - return assertException(type, adapt(runnable)); - } - - public static T assertException(Class type, RunnableEx runnable) { - T exception = catchException(runnable, type); - assertNotNull(exception, "Expected exception: " + type.getName()); - return exception; - } - - @SuppressWarnings("unchecked") - private static T catchException(RunnableEx runnable, Class type) { - try { - runnable.run(); - return null; - } catch (Exception exception) { - if (type.isAssignableFrom(exception.getClass())) { - return (T) exception; - } - String message = "Unexpected exception: " + exception.getMessage(); - throw new RuntimeException(message, exception); - } - } - - @SuppressWarnings("unchecked") - public static T serializeAndDeserialize(T instance) throws Exception { - return (T) deserialize(serialize(instance)); - } - - public static byte[] serialize(Object object) throws IOException { - ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); - new ObjectOutputStream(outputStream).writeObject(object); - return outputStream.toByteArray(); - } - - public static Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException { - ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes); - return new ObjectInputStream(inputStream).readObject(); - } - - private static RunnableEx adapt(final Runnable runnable) { - return new RunnableEx() { - public void run() { - runnable.run(); - } - }; - } - - public interface RunnableEx { - void run() throws Exception; - } - -} diff --git a/src/test/java/org/xbib/marc/label/RecordLabelTest.java b/src/test/java/org/xbib/marc/label/RecordLabelTest.java index 4c9b27b..70dc2ca 100644 --- a/src/test/java/org/xbib/marc/label/RecordLabelTest.java +++ b/src/test/java/org/xbib/marc/label/RecordLabelTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.label; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/tools/ExpectedSystemExit.java b/src/test/java/org/xbib/marc/tools/ExpectedSystemExit.java index 7f409f1..387ed12 100644 --- a/src/test/java/org/xbib/marc/tools/ExpectedSystemExit.java +++ b/src/test/java/org/xbib/marc/tools/ExpectedSystemExit.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.tools; import org.junit.contrib.java.lang.system.internal.CheckExitCalled; diff --git a/src/test/java/org/xbib/marc/tools/ToolTest.java b/src/test/java/org/xbib/marc/tools/ToolTest.java index f17d897..d4db086 100644 --- a/src/test/java/org/xbib/marc/tools/ToolTest.java +++ b/src/test/java/org/xbib/marc/tools/ToolTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.tools; import org.junit.jupiter.api.Disabled; diff --git a/src/test/java/org/xbib/marc/transformer/MarcFieldTransformerTest.java b/src/test/java/org/xbib/marc/transformer/MarcFieldTransformerTest.java index b63a2d2..2680fa6 100644 --- a/src/test/java/org/xbib/marc/transformer/MarcFieldTransformerTest.java +++ b/src/test/java/org/xbib/marc/transformer/MarcFieldTransformerTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/transformer/MarcFieldTransformersTest.java b/src/test/java/org/xbib/marc/transformer/MarcFieldTransformersTest.java index 56b6523..aaec8a5 100644 --- a/src/test/java/org/xbib/marc/transformer/MarcFieldTransformersTest.java +++ b/src/test/java/org/xbib/marc/transformer/MarcFieldTransformersTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/transformer/MarcValueTransformerTest.java b/src/test/java/org/xbib/marc/transformer/MarcValueTransformerTest.java index d91b1d0..f94cf66 100644 --- a/src/test/java/org/xbib/marc/transformer/MarcValueTransformerTest.java +++ b/src/test/java/org/xbib/marc/transformer/MarcValueTransformerTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.transformer; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/src/test/java/org/xbib/marc/xml/AlmaXMLTest.java b/src/test/java/org/xbib/marc/xml/AlmaXMLTest.java index df20941..99da389 100644 --- a/src/test/java/org/xbib/marc/xml/AlmaXMLTest.java +++ b/src/test/java/org/xbib/marc/xml/AlmaXMLTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; import org.junit.jupiter.api.Test; diff --git a/src/test/java/org/xbib/marc/xml/DNBSRUMarcXMLTest.java b/src/test/java/org/xbib/marc/xml/DNBSRUMarcXMLTest.java index eb8e2c1..3369038 100644 --- a/src/test/java/org/xbib/marc/xml/DNBSRUMarcXMLTest.java +++ b/src/test/java/org/xbib/marc/xml/DNBSRUMarcXMLTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/org/xbib/marc/xml/MarcEventConsumerTest.java b/src/test/java/org/xbib/marc/xml/MarcEventConsumerTest.java index be002fa..b89a102 100644 --- a/src/test/java/org/xbib/marc/xml/MarcEventConsumerTest.java +++ b/src/test/java/org/xbib/marc/xml/MarcEventConsumerTest.java @@ -1,3 +1,18 @@ +/** + * Copyright 2016-2022 Jörg Prante + * + * 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 + * + * Apache 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.xbib.marc.xml; import static org.hamcrest.MatcherAssert.assertThat; @@ -7,10 +22,7 @@ import org.xbib.marc.Marc; import org.xmlunit.matchers.CompareMatcher; import java.io.InputStream; import java.io.StringWriter; -import java.io.Writer; import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.Paths; import javax.xml.stream.XMLInputFactory; /**