Package com.sun.jini.discovery
Interface EncodeIterator
public interface EncodeIterator
Iterator for performing multicast encode operations on (potentially) multiple discovery format
providers.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Returnstrueif this iterator has additional encoders, orfalseotherwise.next()Performs a single multicast encode operation using the next encoder provider of aDiscoveryinstance, returning the resulting datagram packets or throwing the resulting exception.
-
Method Details
-
next
Performs a single multicast encode operation using the next encoder provider of aDiscoveryinstance, returning the resulting datagram packets or throwing the resulting exception.- Returns:
- datagram packets resulting from an encode operation
- Throws:
IOException- if the encode operation failedUnsupportedConstraintException- if the encode operation is unable to satisfy its constraintsNoSuchElementException- if there are no more encoders for this iterator
-
hasNext
boolean hasNext()Returnstrueif this iterator has additional encoders, orfalseotherwise.- Returns:
trueif this iterator has additional encoders, orfalseotherwise
-