Package com.sun.jini.discovery
Interface MulticastAnnouncementDecoder
- All Superinterfaces:
DiscoveryFormatProvider
- All Known Subinterfaces:
DelayedMulticastAnnouncementDecoder
- All Known Implementing Classes:
Client
Interface implemented by classes which decode multicast announcement data according to discovery
protocol formats.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptiondecodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints) Decodes the multicast announcement data contained in the given buffer in a manner that satisfies the specified absolute constraints, returning aMulticastAnnouncementinstance that contains the decoded data.Methods inherited from interface com.sun.jini.discovery.DiscoveryFormatProvider
getFormatName
-
Method Details
-
decodeMulticastAnnouncement
MulticastAnnouncement decodeMulticastAnnouncement(ByteBuffer buf, InvocationConstraints constraints) throws IOException Decodes the multicast announcement data contained in the given buffer in a manner that satisfies the specified absolute constraints, returning aMulticastAnnouncementinstance that contains the decoded data.nullconstraints are considered equivalent to empty constraints. All the specified constraints are checked before this method returns.- Parameters:
buf- a buffer containing the packet data to decode. The multicast announcement data must begin at position zero ofbuf.constraints- the constraints to apply when decoding the data, ornull- Returns:
- the decoded multicast announcement data
- Throws:
IOException- if an error occurs in interpreting the dataUnsupportedConstraintException- if unable to satisfy the specified constraintsSecurityException- if the given constraints cannot be satisfied due to insufficient caller permissionsNullPointerException- ifbufisnull
-