utils
Class WagNumberFormat

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

public class WagNumberFormat
extends java.lang.Object


Constructor Summary
WagNumberFormat()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WagNumberFormat

public WagNumberFormat()
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

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