utils
Class MyNumberFormat

java.lang.Object
  |
  +--utils.MyNumberFormat

public class MyNumberFormat
extends java.lang.Object


Field Summary
static java.text.DecimalFormat myDebitFormatter
           
static java.text.DecimalFormat myIAFormatter
           
static java.text.DecimalFormat myPercentFormatter
           
static java.text.DecimalFormat mySizeFormatter
           
static java.text.DecimalFormat myTimeFormatter
           
 
Constructor Summary
MyNumberFormat()
           
 
Method Summary
static java.lang.String configurationFileToString(java.io.File f)
          Method configurationFileToString.
static java.lang.String customDateFormat()
           
static java.lang.String customNumberFormat(java.lang.String pattern, double value)
           
static java.lang.String doubleFormat(double value)
           
static short getPacketNumberHeaderSize(int lineNumber)
          Method getPacketNumberHeaderSize.
static java.lang.String intFormat(int value)
           
static void main(java.lang.String[] args)
          Methode: Main pour tester la classe
static java.lang.String scenarioTextFormat(double value)
           
static void timeFormatage(java.lang.String fileName, java.lang.String resultName)
          Method timeFormatage.
static void timeSizeFormatage(java.lang.String frName, java.lang.String fwName)
          timeSizeFormatage for video scenario file return a file formated as follow:
IPTime (millisecond part) \t IPTime (nanosecond part) \tsize in Bytes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myTimeFormatter

public static java.text.DecimalFormat myTimeFormatter

myIAFormatter

public static java.text.DecimalFormat myIAFormatter

myDebitFormatter

public static java.text.DecimalFormat myDebitFormatter

mySizeFormatter

public static java.text.DecimalFormat mySizeFormatter

myPercentFormatter

public static java.text.DecimalFormat myPercentFormatter
Constructor Detail

MyNumberFormat

public MyNumberFormat()
Method Detail

customDateFormat

public static java.lang.String customDateFormat()

customNumberFormat

public static java.lang.String customNumberFormat(java.lang.String pattern,
                                                  double value)

doubleFormat

public static java.lang.String doubleFormat(double value)
                                     throws java.lang.NullPointerException,
                                            java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.IllegalArgumentException

intFormat

public static java.lang.String intFormat(int value)
                                  throws java.lang.NullPointerException,
                                         java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.IllegalArgumentException

scenarioTextFormat

public static java.lang.String scenarioTextFormat(double value)

configurationFileToString

public static java.lang.String configurationFileToString(java.io.File f)
                                                  throws java.io.IOException
Method configurationFileToString. This permit to transform a file content into a String. Used to display configuration file content

Parameters:
f -
Returns:
String
Throws:
java.io.IOException

timeFormatage

public static void timeFormatage(java.lang.String fileName,
                                 java.lang.String resultName)
                          throws java.io.IOException,
                                 java.lang.IllegalArgumentException
Method timeFormatage. for audio scenario file

Parameters:
fileName - scenario file name (without the extension) which will be formated
resultName - formated file name
Throws:
java.io.IOException
java.lang.IllegalArgumentException

timeSizeFormatage

public static void timeSizeFormatage(java.lang.String frName,
                                     java.lang.String fwName)
                              throws java.io.IOException
timeSizeFormatage for video scenario file return a file formated as follow:
IPTime (millisecond part) \t IPTime (nanosecond part) \tsize in Bytes

Parameters:
frName - file name which has to be formated
fwName - formated file name
Throws:
java.io.IOException

getPacketNumberHeaderSize

public static short getPacketNumberHeaderSize(int lineNumber)
Method getPacketNumberHeaderSize.

Parameters:
lineNumber -
Returns:
short

main

public static void main(java.lang.String[] args)
Methode: Main pour tester la classe