opennlp.tools.util
Class ObjectStreamUtils
java.lang.Object
opennlp.tools.util.ObjectStreamUtils
public class ObjectStreamUtils
- extends Object
ObjectStreamUtils
public ObjectStreamUtils()
createObjectStream
public static <T> ObjectStream<T> createObjectStream(T... array)
- Creates an
ObjectStream form an array.
- Type Parameters:
T - - Parameters:
array -
- Returns:
- the object stream over the array elements
createObjectStream
public static <T> ObjectStream<T> createObjectStream(Collection<T> collection)
- Creates an
ObjectStream form a collection.
- Type Parameters:
T - - Parameters:
collection -
- Returns:
- the object stream over the collection elements
createObjectStream
public static <T> ObjectStream<T> createObjectStream(ObjectStream<T>... streams)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.