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 Type
    Method
    Description
    boolean
    Returns true if this iterator has additional encoders, or false otherwise.
    Performs a single multicast encode operation using the next encoder provider of a Discovery instance, returning the resulting datagram packets or throwing the resulting exception.
  • Method Details

    • next

      DatagramPacket[] next() throws IOException
      Performs a single multicast encode operation using the next encoder provider of a Discovery instance, returning the resulting datagram packets or throwing the resulting exception.
      Returns:
      datagram packets resulting from an encode operation
      Throws:
      IOException - if the encode operation failed
      UnsupportedConstraintException - if the encode operation is unable to satisfy its constraints
      NoSuchElementException - if there are no more encoders for this iterator
    • hasNext

      boolean hasNext()
      Returns true if this iterator has additional encoders, or false otherwise.
      Returns:
      true if this iterator has additional encoders, or false otherwise