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 post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • 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