public class DiscoveryUtil
extends Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<String,String> |
getDiscoveryDataMap(Connection connection)
Reads the discovery packet from the provided connection and returns a discovery data map
|
static java.util.Map<String,String> |
parseDiscoveryPacket(String discoveryPacketMimed)
Decodes the provided MIME encoded discovery packet and returns a discovery data map
|
public static java.util.Map<String,String> parseDiscoveryPacket(String discoveryPacketMimed) throws DiscoveryPacketDecodeException
discoveryPacketMimed
- a Base64 encoded discovery packetDiscoveryPacketDecodeException
- if provided a malformed discovery packetpublic static java.util.Map<String,String> getDiscoveryDataMap(Connection connection) throws DiscoveryPacketDecodeException, ConnectionException
connection
- A Connection
to a printerConnectionException
- if an I/O error occurs.DiscoveryPacketDecodeException
- if provided a malformed discovery packet
© 2017 ZIH Corp. All Rights Reserved.