opennlp.tools.util
Class ObjectStreamUtils

java.lang.Object
  extended by opennlp.tools.util.ObjectStreamUtils

public class ObjectStreamUtils
extends java.lang.Object


Constructor Summary
ObjectStreamUtils()
           
 
Method Summary
static
<T> ObjectStream<T>
createObjectStream(java.util.Collection<T> collection)
          Creates an ObjectStream form a collection.
static
<T> ObjectStream<T>
createObjectStream(ObjectStream<T>... streams)
           
static
<T> ObjectStream<T>
createObjectStream(T... array)
          Creates an ObjectStream form an array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStreamUtils

public ObjectStreamUtils()
Method Detail

createObjectStream

public static <T> ObjectStream<T> createObjectStream(T... array)
Creates an ObjectStream form an array.

Type Parameters:
T -
Parameters:
array -
Returns:

createObjectStream

public static <T> ObjectStream<T> createObjectStream(java.util.Collection<T> collection)
Creates an ObjectStream form a collection.

Type Parameters:
T -
Parameters:
collection -
Returns:

createObjectStream

public static <T> ObjectStream<T> createObjectStream(ObjectStream<T>... streams)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.