Class StreamIDHelp

  • All Implemented Interfaces:
    ApiWrapper

    public class StreamIDHelp
    extends Object
    implements ApiWrapper
    Converts non-safe stream IDs into URL-safe ones for transmitting on URLs.
    Author:
    Rob Moffat
    • Constructor Detail

      • StreamIDHelp

        public StreamIDHelp()
    • Method Detail

      • safeStreamId

        public static String safeStreamId​(String in)
      • wrap

        public <X> X wrap​(Class<X> c,
                          X api)
        Description copied from interface: ApiWrapper
        Returns a wrapped implementation of the interface.
        Specified by:
        wrap in interface ApiWrapper
        Parameters:
        c - interface class.
        api - instance of the interface
        Returns:
        wrapped instance.