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

How to use
getDate
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.getDate (Showing top 3 results out of 315)

origin: cybergarage/cybergarage-upnp

public long getDateTime()
{
  String dateStr = getDate();
  if (dateStr == null || dateStr.length() < 10)
    return 0;
  DateFormat df = new SimpleDateFormat(DATE_FORMAT);
  try {
    Date date = df.parse(dateStr);
    return date.getTime();
  }
  catch (Exception e) {
    return 0;
  }
}

origin: geniusgithub/MediaPlayer

public long getDateTime()
{
  String dateStr = getDate();
  if (dateStr == null || dateStr.length() < 10)
    return 0;
  DateFormat df = new SimpleDateFormat(DATE_FORMAT);
  try {
    Date date = df.parse(dateStr);
    return date.getTime();
  }
  catch (Exception e) {
    return 0;
  }
}

origin: cybergarage/cybergarage-upnp

public Object getValueAt(int row, int col)
{
  //Debug.message("getValueAt(" + row + "," + col + ") = " + tableData[row][col]);
  if (hasDirectory() == false)
    return "";
  ContentNode cnode = getDirectory().getContentNode(row);
  if ((cnode instanceof ItemNode) == false)
    return "";
  ItemNode itemNode = (ItemNode)cnode;
  switch (col) {
  case 0: return itemNode.getTitle();
  case 1: return itemNode.getCreator();
  case 2: return itemNode.getDate();
  case 3: return Long.toString(itemNode.getStorageUsed());
  }
  return "";
}
org.cybergarage.upnp.std.av.server.object.itemItemNodegetDate

Popular methods of ItemNode

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

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 17 Free Sublime Text Plugins
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