Class MsFormatter

java.lang.Object
ca.phon.formatter.MsFormatter
All Implemented Interfaces:
Formatter<Long>

@Deprecated public class MsFormatter extends Object implements Formatter<Long>
Deprecated.
Use MediaTimeFormat instead
Format time values in milliseconds into parseable strings.
  • Constructor Details

    • MsFormatter

      public MsFormatter()
      Deprecated.
  • Method Details

    • createFormatter

      public static Format createFormatter()
      Deprecated.
      Create a new formatter object.
      Returns:
      formatter
    • msToDisplayString

      public static String msToDisplayString(long ms)
      Deprecated.
      Convert a value in milliseconds into a string.
      Parameters:
      ms -
      Returns:
      ms as a readable string
    • displayStringToMs

      public static long displayStringToMs(String msText) throws ParseException
      Deprecated.
      Parse the given string into a value in milliseconds.
      Parameters:
      msText -
      Returns:
      time in milliseconds
      Throws:
      ParseException
    • format

      public String format(Long obj)
      Deprecated.
      Description copied from interface: Formatter
      Convert the given object into a formatted String.
      Specified by:
      format in interface Formatter<Long>
      Parameters:
      obj -
      Returns:
      formatted string
    • parse

      public Long parse(String text) throws ParseException
      Deprecated.
      Description copied from interface: Formatter
      Parse the given string into a new object instance
      Specified by:
      parse in interface Formatter<Long>
      Parameters:
      text -
      Returns:
      parsed object
      Throws:
      ParseException - if there was a problem parsing the given text