|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.remoting.stream.Streams
public final class Streams

Handy utility methods for stream types.
| Method Summary | ||
|---|---|---|
static
|
getCollectionObjectSink(Collection<T> target)
Get an object sink that appends to a collection. |
|
static
|
getEnumerationObjectSource(Enumeration<T> enumeration)
Get an object source that reads from an enumeration. |
|
static
|
getIteratorObjectSource(Iterator<T> iterator)
Get an object source that reads from an iterator. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> ObjectSink<T> getCollectionObjectSink(Collection<T> target)
T - the collection object typetarget - the target collection
public static <T> ObjectSource<T> getIteratorObjectSource(Iterator<T> iterator)
T - the iterator object typeiterator - the iterater to read from
public static <T> ObjectSource<T> getEnumerationObjectSource(Enumeration<T> enumeration)
T - the enumeration object typeenumeration - the enumeration to read from
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||