|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.util.PropertyConverter
public class PropertyConverter
Converter for properties originating from properties files. Predetermined string formats are converted into other usable types such as timestamps.
Constructor Summary | |
---|---|
PropertyConverter()
|
Method Summary | |
---|---|
static Integer |
convertMillisToSeconds(Long millis)
Quick time converter to keep our timestamps compatible with PHP's time() (seconds) |
static long |
convertStringToFutureTimeMillis(String time)
Converts a string denoting an amount of time into milliseconds and adds it to the current date. |
static int |
convertStringToMemorySizeInt(String memSize)
Converts a string denoting an amount of bytes into an integer value. |
static long |
convertStringToMemorySizeLong(String memSize)
Converts a string denoting an amount of bytes into an long value. |
static long |
convertStringToTimeMillis(String time)
Converts a string denoting an amount of time into milliseconds. |
static int |
convertStringToTimeSeconds(String time)
Converts a string denoting an amount of time into seconds. |
static Integer |
getCurrentTimeSeconds()
Quick time converter to keep our timestamps compatible with PHP's time() (seconds) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyConverter()
Method Detail |
---|
public static long convertStringToFutureTimeMillis(String time)
time
- time
public static int convertStringToTimeSeconds(String time)
time
- time
public static long convertStringToTimeMillis(String time)
time
- time
public static int convertStringToMemorySizeInt(String memSize)
memSize
- memory
public static long convertStringToMemorySizeLong(String memSize)
memSize
- memory size
public static Integer getCurrentTimeSeconds()
public static Integer convertMillisToSeconds(Long millis)
millis
- milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |