Class StreamUtil

java.lang.Object
com.symphony.bdk.core.service.stream.util.StreamUtil

@Deprecated @API(status=EXPERIMENTAL) public final class StreamUtil extends Object
Deprecated.
Use IdUtil instead.
Helper class providing Base64 id conversion. Preserved to avoid breaking changes for external users of this class.
  • Constructor Details

    • StreamUtil

      public StreamUtil()
      Deprecated.
  • Method Details

    • toUrlSafeStreamId

      @Deprecated public static String toUrlSafeStreamId(String streamId)
      Deprecated.
      Convert the stream id to the corresponding URL-safe encoded stream id.

      Example of usage:

      
         String urlSafeStreamId = StreamUtil.toUrlSafeStreamId("XlU3OH9eVMzq+yss7M/xyn///oxwgbtGbQ==");
       

      Parameters:
      streamId - of the stream to be parsed
      Returns:
      stream id after conversion
    • fromUrlSafeStreamId

      @Deprecated public static String fromUrlSafeStreamId(String streamId)
      Deprecated.
      Convert the URL-safe encoded stream id to the corresponding original stream id.

      Example of usage:

      
         String streamId = StreamUtil.fromUrlSafeStreamId("XlU3OH9eVMzq-yss7M_xyn___oxwgbtGbQ");
       

      Parameters:
      streamId - of the stream to be parsed
      Returns:
      stream id after conversion