public class DiscoveryUtil extends Object
Constructor and Description |
---|
DiscoveryUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getDiscoveryDataMap(Connection connection)
Reads the discovery packet from the provided connection and returns a discovery data map
|
static Map<String,String> |
parseDiscoveryPacket(String discoveryPacketMimed)
Decodes the provided MIME encoded discovery packet and returns a discovery data map
|
public static Map<String,String> parseDiscoveryPacket(String discoveryPacketMimed) throws DiscoveryPacketDecodeException
discoveryPacketMimed
- a Base64 encoded discovery packetDiscoveryPacketDecodeException
- if provided a malformed discovery packetpublic static 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
© 2016 ZIH Corp. All Rights Reserved.