[ https://issues.apache.org/jira/browse/OPENNLP-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suneel Marthi reassigned OPENNLP-1116: -------------------------------------- Assignee: Daniel Russ > Add Concatenate Stream method for Collections of streams > -------------------------------------------------------- > > Key: OPENNLP-1116 > URL: https://issues.apache.org/jira/browse/OPENNLP-1116 > Project: OpenNLP > Issue Type: Improvement > Components: Machine Learning > Affects Versions: 1.8.1 > Reporter: Daniel Russ > Assignee: Daniel Russ > Priority: Trivial > Fix For: 1.8.2 > > > Minor change to opennlp.tools.util.ObjectStreamUtls. First change the > signature of the createObjectStream(final ObjectStream<T>... streams) to > concatenateObjectStream(final ObjectStream<T>... streams), and add a method > concatenateObjectStream(final Collection<ObjectStream<T>> streams) > The reason behind this is that I often pull data from multiple files, whereas > it is possible to create an array of ObjectStreams, it is easier to work with > Lists. Also, the name of the method is clearer. It concatenates a > list/array of ObjectStreams as opposed the the createObjectStream(final > Collection<T> collection) which makes an obectstream of items in the > collection. -- This message was sent by Atlassian JIRA (v6.4.14#64029)