metafacture / metafacture-core

Core package of the Metafacture tool suite for metadata processing.
https://metafacture.org
Apache License 2.0
69 stars 34 forks source link

Call LineRecorder receiver's closeStream() (#433) #435

Closed dr0i closed 2 years ago

dr0i commented 2 years ago

Under some circumstances (e.g. if the JVM is not stopped after processing) the streams of receivers connected to LineRecorder are not closed, resulting in empty or missing output data.

By switching from "implements ObjectPipe" to "extends DefaultObjectPipe" the "DefaultSender" is used which implements the Sender interface. This ensures the proper closing of streams.

See #433.

dr0i commented 2 years ago

@blackwinter I do like this approach much more than #434. What do you think?