Skip to content

Commit

Permalink
- Changed to use System.out.println() directlly.
Browse files Browse the repository at this point in the history
  • Loading branch information
cybergarage committed Nov 5, 2013
1 parent 1925f49 commit 092442f
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions samples/upnpdump/src/main/java/UpnpDump.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ public UpnpDump()
addEventListener(this);
}

////////////////////////////////////////////////
// Graphics
////////////////////////////////////////////////

public void printConsole(String msg)
{
System.out.println(msg);
}

////////////////////////////////////////////////
// Listener
////////////////////////////////////////////////
Expand All @@ -45,18 +36,18 @@ public void deviceNotifyReceived(SSDPPacket packet)

if (packet.isDiscover() == true) {
String st = packet.getST();
printConsole("ssdp:discover : ST = " + st);
System.out.println("ssdp:discover : ST = " + st);
}
else if (packet.isAlive() == true) {
String usn = packet.getUSN();
String nt = packet.getNT();
String url = packet.getLocation();
printConsole("ssdp:alive : uuid = " + usn + ", NT = " + nt + ", location = " + url);
System.out.println("ssdp:alive : uuid = " + usn + ", NT = " + nt + ", location = " + url);
}
else if (packet.isByeBye() == true) {
String usn = packet.getUSN();
String nt = packet.getNT();
printConsole("ssdp:byebye : uuid = " + usn + ", NT = " + nt);
System.out.println("ssdp:byebye : uuid = " + usn + ", NT = " + nt);
}
}

Expand All @@ -65,12 +56,12 @@ public void deviceSearchResponseReceived(SSDPPacket packet)
String uuid = packet.getUSN();
String st = packet.getST();
String url = packet.getLocation();
printConsole("device search res : uuid = " + uuid + ", ST = " + st + ", location = " + url);
System.out.println("device search res : uuid = " + uuid + ", ST = " + st + ", location = " + url);
}

public void eventNotifyReceived(String uuid, long seq, String name, String value)
{
printConsole("event notify : uuid = " + uuid + ", seq = " + seq + ", name = " + name + ", value =" + value);
System.out.println("event notify : uuid = " + uuid + ", seq = " + seq + ", name = " + name + ", value =" + value);
}

////////////////////////////////////////////////
Expand Down

0 comments on commit 092442f

Please sign in to comment.