com.wowza.util
Class SystemUtils

Object
  extended by com.wowza.util.SystemUtils

public class SystemUtils
extends Object


Nested Class Summary
static class SystemUtils.ReplaceItem
           
 
Field Summary
static java.util.Locale defaultLocale
           
static java.util.TimeZone defaultTimeZone
           
protected static long msb0baseTime
           
protected static long msb1baseTime
           
 
Constructor Summary
SystemUtils()
           
 
Method Summary
static void addBouncyCastleSecurityProvider()
          Load bouncy castle providers, Internal use.
static String expandEnvironmentVariables(String inValue)
          Expand system level Java properties in a String in the form ${property-name}
static String expandEnvironmentVariables(String inValue, java.util.Map valueMap)
          Expand system level Java properties in a String in the form ${property-name}.
static byte[] getMACAddress()
          Get MAC address of localhost interface (only works on Java 6 or greater)
static long toNTPTime(long t)
          Convert a timecode value in milliseconds to NTP time
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultLocale

public static final java.util.Locale defaultLocale

defaultTimeZone

public static final java.util.TimeZone defaultTimeZone

msb0baseTime

protected static final long msb0baseTime
See Also:
Constant Field Values

msb1baseTime

protected static final long msb1baseTime
See Also:
Constant Field Values
Constructor Detail

SystemUtils

public SystemUtils()
Method Detail

addBouncyCastleSecurityProvider

public static void addBouncyCastleSecurityProvider()
Load bouncy castle providers, Internal use.


expandEnvironmentVariables

public static String expandEnvironmentVariables(String inValue)
Expand system level Java properties in a String in the form ${property-name}

Parameters:
inValue - string with properties
Returns:
expanded string

expandEnvironmentVariables

public static String expandEnvironmentVariables(String inValue,
                                                java.util.Map valueMap)
Expand system level Java properties in a String in the form ${property-name}. You can also pass in a map of name/value pairs that will expand the list of available properties

Parameters:
inValue - string with properties
valueMap - name/value pair map
Returns:
expanded string

getMACAddress

public static byte[] getMACAddress()
Get MAC address of localhost interface (only works on Java 6 or greater)

Returns:
MAC address of localhost interface

toNTPTime

public static long toNTPTime(long t)
Convert a timecode value in milliseconds to NTP time

Parameters:
t - timecode value in milliseconds
Returns:
NTP time