Package opennlp.tools.util
Class ObjectStreamUtils
java.lang.Object
opennlp.tools.util.ObjectStreamUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> ObjectStream<T>concatenateObjectStream(Collection<ObjectStream<T>> streams) Creates a single concatenatedObjectStreamfrom multiple individualstreamswith the same typeObjectStreamUtils.static <T> ObjectStream<T>concatenateObjectStream(ObjectStream<T>... streams) Creates a single concatenatedObjectStreamfrom multiple individualstreamswith the same type.static <T> ObjectStream<T>createObjectStream(Collection<T> collection) Creates anObjectStreamform aCollection<T>.static <T> ObjectStream<T>createObjectStream(T... array) Creates anObjectStreamform an array ofObjectStreamUtils.
- 
Constructor Details- 
ObjectStreamUtilspublic ObjectStreamUtils()
 
- 
- 
Method Details- 
createObjectStreamCreates anObjectStreamform an array ofObjectStreamUtils.- Type Parameters:
- T- The generic type of the elements in the- array.
- Parameters:
- array- The elements to feed into the new- ObjectStream.
- Returns:
- The ObjectStreamover the array elements.
 
- 
createObjectStreamCreates anObjectStreamform aCollection<T>.- Type Parameters:
- T- The generic type of the elements in the- collection.
- Parameters:
- collection- The elements to feed into the new- ObjectStream.
- Returns:
- The ObjectStreamover the collection elements
 
- 
concatenateObjectStreamCreates a single concatenatedObjectStreamfrom multiple individualstreamswith the same typeObjectStreamUtils.- Type Parameters:
- T- The generic type of the elements in the- collection.
- Parameters:
- streams- The collection of streams to feed into the concatenated- ObjectStream. Every element of the collection must not be- null.
- Returns:
- The concatenated ObjectStreamaggregating all elements instreams.
 
- 
concatenateObjectStreamCreates a single concatenatedObjectStreamfrom multiple individualstreamswith the same type.- Type Parameters:
- T- The generic type of the elements in the- streams.
- Parameters:
- streams- One or more stream to feed into the concatenated- ObjectStream. Every element of the collection must not be- null.
- Returns:
- The concatenated ObjectStreamaggregating all elements instreams.
 
 
-