Package opennlp.tools.util
Klasse ObjectStreamUtils
java.lang.Object
opennlp.tools.util.ObjectStreamUtils
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <T> ObjectStream
<T> concatenateObjectStream
(Collection<ObjectStream<T>> streams) Creates a single concatenatedObjectStream
from multiple individualstreams
with the same typeObjectStreamUtils
.static <T> ObjectStream
<T> concatenateObjectStream
(ObjectStream<T>... streams) Creates a single concatenatedObjectStream
from multiple individualstreams
with the same type.static <T> ObjectStream
<T> createObjectStream
(Collection<T> collection) Creates anObjectStream
form aCollection<T>
.static <T> ObjectStream
<T> createObjectStream
(T... array) Creates anObjectStream
form an array ofObjectStreamUtils
.
-
Konstruktordetails
-
ObjectStreamUtils
public ObjectStreamUtils()
-
-
Methodendetails
-
createObjectStream
Creates anObjectStream
form an array ofObjectStreamUtils
.- Typparameter:
T
- The generic type of the elements in thearray
.- Parameter:
array
- The elements to feed into the newObjectStream
.- Gibt zurück:
- The
ObjectStream
over the array elements.
-
createObjectStream
Creates anObjectStream
form aCollection<T>
.- Typparameter:
T
- The generic type of the elements in thecollection
.- Parameter:
collection
- The elements to feed into the newObjectStream
.- Gibt zurück:
- The
ObjectStream
over the collection elements
-
concatenateObjectStream
Creates a single concatenatedObjectStream
from multiple individualstreams
with the same typeObjectStreamUtils
.- Typparameter:
T
- The generic type of the elements in thecollection
.- Parameter:
streams
- The collection of streams to feed into the concatenatedObjectStream
. Every element of the collection must not benull
.- Gibt zurück:
- The concatenated
ObjectStream
aggregating all elements instreams
.
-
concatenateObjectStream
Creates a single concatenatedObjectStream
from multiple individualstreams
with the same type.- Typparameter:
T
- The generic type of the elements in thestreams
.- Parameter:
streams
- One or more stream to feed into the concatenatedObjectStream
. Every element of the collection must not benull
.- Gibt zurück:
- The concatenated
ObjectStream
aggregating all elements instreams
.
-