Package tv.mycujoo.mclsplayercore.helper
Object StringUtils
-
- All Implemented Interfaces:
public class StringUtils
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final StringgetFormattedTime(Long timeMs, StringBuilder stringBuilder, Formatter timeFormatter)Returns the specified millisecond time formatted as a string. final StringgetNumberOfViewers(String count)final StringinputStreamToString(InputStream inputStream)Will read the content from a given InputStream and return it as a String. final LonggetSegmentTimeStamp(String name)Reads Segment url name and returns Long presentation of absolute time value or "-1". -
-
Method Detail
-
getFormattedTime
final String getFormattedTime(Long timeMs, StringBuilder stringBuilder, Formatter timeFormatter)
Returns the specified millisecond time formatted as a string.
- Parameters:
timeMs- The time to format as a string, in milliseconds.
-
getNumberOfViewers
final String getNumberOfViewers(String count)
-
inputStreamToString
final String inputStreamToString(InputStream inputStream)
Will read the content from a given InputStream and return it as a String.
- Parameters:
inputStream- The InputStream which should be read.
-
getSegmentTimeStamp
final Long getSegmentTimeStamp(String name)
Reads Segment url name and returns Long presentation of absolute time value or "-1".
- Parameters:
name- Segment url name String which should be read.
-
-
-
-