Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jini.discovery
Interface EncodeIterator

public interface EncodeIterator

Iterator for performing multicast encode operations on (potentially) multiple discovery format providers.

Since:
  2.0

Method Summary
`boolean` | `hasNext()` Returns `true` if this iterator has additional encoders, or `false` otherwise.
`DatagramPacket[]` | `next()` 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 Detail

### next

    public 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

    public boolean hasNext()

  Returns `true` if this iterator has additional encoders, or `false` otherwise.

  Returns:
    `true` if this iterator has additional encoders, or `false` otherwise

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved