Package d3

Class D3XMLFile

java.lang.Object
d3.D3XMLFile

public class D3XMLFile extends Object
Class for unpacking XML metadata files created from Mark Johnson's D3 software
Author:
Doug Gillespie
  • Method Details

    • openXMLFile

      public static D3XMLFile openXMLFile(File file)
      Open an XML file for a corresponding wav file by changing the file end to xml and then trying to find an xml file in the same directory.
      Parameters:
      file - wav file (or valid xml file)
      Returns:
      an XML file, from which additional information can then be extracted.
    • getSensorList

      public int[] getSensorList()
    • getXMLStartTime

      public static long getXMLStartTime(File file)
      Get the start time from the XML file
      Parameters:
      file - xml file
      Returns:
      time in milliseconds or Long.MIN_VALUE if it fails.
    • getStartTime

      public long getStartTime()
      Returns:
      the startTime
    • getEndTime

      public long getEndTime()
      Returns:
      the endTime
    • getFullId

      public String getFullId()
      Returns:
      the fullId
    • getShortId

      public long getShortId()
      Returns:
      the shortId