congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ItemNode.getResource
Code IndexAdd Tabnine to your IDE (free)

How to use
getResource
method
in
org.cybergarage.upnp.std.av.server.object.item.ItemNode

Best Java code snippets using org.cybergarage.upnp.std.av.server.object.item.ItemNode.getResource (Showing top 2 results out of 315)

origin: cybergarage/cybergarage-upnp

public void printContentNode(ContentNode node, int indentLevel)
{
    int n;
    
    for (n=0; n<indentLevel; n++)
      System.out.print("  ");
    System.out.print(node.getTitle());
    if (node.isItemNode() == true) {
      ItemNode itemNode = (ItemNode)node;
      String res = itemNode.getResource();
      String protocolInfo = itemNode.getProtocolInfo();
      System.out.print(" (" + res + ")");
    }
    System.out.println("");
    
    if (node.isContainerNode()) {
      ContainerNode containerNode = (ContainerNode)node;
      int nContentNodes = containerNode.getNContentNodes();
      for (n=0; n<nContentNodes; n++) {
        ContentNode cnode = containerNode.getContentNode(n);
        printContentNode(cnode, indentLevel+1);
      }
    }
}
origin: geniusgithub/MediaPlayer

public void printContentNode(ContentNode node, int indentLevel)
{
    int n;
    
    for (n=0; n<indentLevel; n++)
      System.out.print("  ");
    System.out.print(node.getTitle());
    if (node.isItemNode() == true) {
      ItemNode itemNode = (ItemNode)node;
      String res = itemNode.getResource();
      String protocolInfo = itemNode.getProtocolInfo();
      System.out.print(" (" + res + ")");
    }
    System.out.println("");
    
    if (node.isContainerNode()) {
      ContainerNode containerNode = (ContainerNode)node;
      int nContentNodes = containerNode.getNContentNodes();
      for (n=0; n<nContentNodes; n++) {
        ContentNode cnode = containerNode.getContentNode(n);
        printContentNode(cnode, indentLevel+1);
      }
    }
}
org.cybergarage.upnp.std.av.server.object.itemItemNodegetResource

Popular methods of ItemNode

  • getID
  • <init>
  • getDateTime
  • getFirstResource
  • isItemNode
  • addNode
  • addResourceNode
  • getContentDirectory
  • getContentInputStream
  • getContentLength
  • getDate
  • getMimeType
  • getDate,
  • getMimeType,
  • getNResourceNodeLists,
  • getPropertyAttribureValue,
  • getPropertyLongValue,
  • getPropertyValue,
  • getProtocolInfo,
  • getResourceNode,
  • getTitle

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now