org.cybergarage.util.Debug.message()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(211)

本文整理了Java中org.cybergarage.util.Debug.message()方法的一些代码示例,展示了Debug.message()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Debug.message()方法的具体详情如下:
包路径:org.cybergarage.util.Debug
类名称:Debug
方法名:message

Debug.message介绍

暂无

代码示例

代码示例来源:origin: i2p/i2p.i2p

public void print()
  {
    Debug.message(toString());
  }
}

代码示例来源:origin: i2p/i2p.i2p

public void print()
  {
    Debug.message(toString());
  }
}

代码示例来源:origin: i2p/i2p.i2p

public void print()
  {
    Debug.message(toString());
    if (hasContent() == true)
      return;
    Node rootElem = getRootNode();
    if (rootElem == null)
      return;
    Debug.message(rootElem.toString());
  }
}

代码示例来源:origin: i2p/i2p.i2p

public void print()
  {
    Debug.message(toString());
    if (hasContent() == true)
      return;
    Node rootElem = getRootNode();
    if (rootElem == null)
      return;
    Debug.message(rootElem.toString());
  }
}

代码示例来源:origin: i2p/i2p.i2p

public void run()
{
  if (isOpened() == false)
    return;
    
  Thread thisThread = Thread.currentThread();
  
  while (httpServerThread == thisThread) {
    Thread.yield();
    Socket sock;
    try {
      Debug.message("accept ...");
      sock = accept();
      if (sock != null)
        Debug.message("sock = " + sock.getRemoteSocketAddress());
    }
    catch (Exception e){
      Debug.warning(e);
      break;
    }
    HTTPServerThread httpServThread = new HTTPServerThread(this, sock);
    httpServThread.start(); 
    Debug.message("httpServThread ...");
  }
}

代码示例来源:origin: i2p/i2p.i2p

public void print()
  {
    DeviceList devList = getDeviceList();
    int devCnt = devList.size();
    Debug.message("Device Num = " + devCnt);
    for (int n=0; n<devCnt; n++) {
      Device dev = devList.getDevice(n);
      Debug.message("[" + n + "] " + dev.getFriendlyName() + ", " + dev.getLeaseTime() + ", " + dev.getElapsedTime());
    }        
  }
}

代码示例来源:origin: i2p/i2p.i2p

public void print()
{
  Debug.message("Action : " + getName());
  ArgumentList argList = getArgumentList();
  int nArgs = argList.size();
  for (int n=0; n<nArgs; n++) {
    Argument arg = argList.getArgument(n);
    String name = arg.getName();
    String value = arg.getValue();
    String dir = arg.getDirection();
    Debug.message(" [" + n + "] = " + dir + ", " + name + ", " + value);
  }
}

代码示例来源:origin: i2p/i2p.i2p

public SSDPNotifySocket(String bindAddr)
{
  String addr = SSDP.ADDRESS;
  useIPv6Address = false;
  if (HostInterface.isIPv6Address(bindAddr) == true) {
    addr = SSDP.getIPv6Address();
    useIPv6Address = true;
  }
  open(addr, SSDP.PORT, bindAddr);
  Debug.message("Opened SSDP notify socket at " + bindAddr + ':' + SSDP.PORT);
  setControlPoint(null);
}

代码示例来源:origin: i2p/i2p.i2p

public SSDPPacket receive()
{
  byte ssdvRecvBuf[] = new byte[SSDP.RECV_MESSAGE_BUFSIZE];
   SSDPPacket recvPacket = new SSDPPacket(ssdvRecvBuf, ssdvRecvBuf.length);
  recvPacket.setLocalAddress(getLocalAddress());
  try {
     ssdpUniSock.receive(recvPacket.getDatagramPacket());
    recvPacket.setTimeStamp(System.currentTimeMillis());
    Debug.message("Received SSDP unicast packet on " + getLocalAddress() + " from " + recvPacket.getRemoteAddress());
  }
  catch (Exception e) {
    //Debug.warning(e);
    return null;
  }
   return recvPacket;
}

代码示例来源:origin: i2p/i2p.i2p

public void removeExpiredDevices()
{
  DeviceList devList = getDeviceList();
  int devCnt = devList.size();
  Device dev[] = new Device[devCnt];
  for (int n=0; n<devCnt; n++)
    dev[n] = devList.getDevice(n);
  for (int n=0; n<devCnt; n++) {
    if (dev[n].isExpired() == true) {
      Debug.message("Expired device = " + dev[n].getFriendlyName());
      removeDevice(dev[n]);
    }
  }        
}

代码示例来源:origin: geniusgithub/MediaPlayer

public void print()
{
  Debug.message("title = " + getTitle());	
  Debug.message("subTitle = " + getSubTitle());	
  Debug.message("file = " + getFile());	
}

代码示例来源:origin: i2p/i2p.i2p

private void httpGetRequestRecieved(HTTPRequest httpReq) {
  String uri = httpReq.getURI();
  Debug.message("httpGetRequestRecieved = " + uri);
  if (uri == null) {
    httpReq.returnBadRequest();

代码示例来源:origin: cybergarage/cybergarage-upnp

public void print()
  {
    Debug.message(toString());
    if (hasContent() == true)
      return;
    Node rootElem = getRootNode();
    if (rootElem == null)
      return;
    Debug.message(rootElem.toString());
  }
}

代码示例来源:origin: geniusgithub/MediaPlayer

public void print()
  {
    Debug.message(toString());
    if (hasContent() == true)
      return;
    Node rootElem = getRootNode();
    if (rootElem == null)
      return;
    Debug.message(rootElem.toString());
  }
}

代码示例来源:origin: geniusgithub/MediaPlayer

public void print()
  {
    Debug.message(toString());
    if (hasContent() == true)
      return;
    Node rootElem = getRootNode();
    if (rootElem == null)
      return;
    Debug.message(rootElem.toString());
  }
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public void print()
  {
    Debug.message(toString());
    if (hasContent() == true)
      return;
    Node rootElem = getRootNode();
    if (rootElem == null)
      return;
    Debug.message(rootElem.toString());
  }
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public void httpRequestRecieved(HTTPRequest httpReq)
{
  String uri = httpReq.getURI();
  Debug.message("uri = " + uri);

  if (uri.startsWith(ContentDirectory.CONTENT_EXPORT_URI) == true) {
    getContentDirectory().contentExportRequestRecieved(httpReq);
    return;
  }
       super.httpRequestRecieved(httpReq);
}

代码示例来源:origin: geniusgithub/MediaPlayer

public void print()
  {
    DeviceList devList = getDeviceList();
    int devCnt = devList.size();
    Debug.message("Device Num = " + devCnt);
    for (int n=0; n<devCnt; n++) {
      Device dev = devList.getDevice(n);
      Debug.message("[" + n + "] " + dev.getFriendlyName() + ", " + dev.getLeaseTime() + ", " + dev.getElapsedTime());
    }        
  }
}

代码示例来源:origin: geniusgithub/MediaPlayer

public void httpRequestRecieved(HTTPRequest httpReq)
{
  String uri = httpReq.getURI();
  Debug.message("uri = " + uri);

  if (uri.startsWith(ContentDirectory.CONTENT_EXPORT_URI) == true) {
    getContentDirectory().contentExportRequestRecieved(httpReq);
    return;
  }
       super.httpRequestRecieved(httpReq);
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public void valueChanged(ListSelectionEvent e)
{
  //int selIdx = e.getLastIndex();
  int selIdx = dirPane.getList().getSelectedIndex();
  if (selIdx < 0)
    return;
  MediaServer mserver = getMediaGate().getMediaServer();
  Directory dir = mserver.getContentDirectory(selIdx);
  Debug.message("valueChanged = " + dir.getFriendlyName());
  conPane.update(dir);
}

相关文章