org.mmbase.applications.media.urlcomposers
Class RealURLComposer

java.lang.Object
  extended byorg.mmbase.applications.media.urlcomposers.URLComposer
      extended byorg.mmbase.applications.media.urlcomposers.FragmentURLComposer
          extended byorg.mmbase.applications.media.urlcomposers.RealURLComposer
Direct Known Subclasses:
RealSbURLComposer, SimpleRealURLComposer

public class RealURLComposer
extends FragmentURLComposer

A RealURLComposer is an URLComposer which can produce URL's to RM/RA streams.

Author:
Michiel Meeuwissen, Rob Vermeulen (VPRO)

Field Summary
 
Fields inherited from class org.mmbase.applications.media.urlcomposers.FragmentURLComposer
fragment
 
Fields inherited from class org.mmbase.applications.media.urlcomposers.URLComposer
info, provider, source
 
Constructor Summary
RealURLComposer()
           
 
Method Summary
static java.lang.StringBuffer appendTime(long time, java.lang.StringBuffer buf)
          Script accept times that look like dd:hh:mm:ss.th, where t is tenths of seconds.
static java.lang.StringBuffer getRMArgs(java.lang.StringBuffer args, MMObjectNode fragment, java.util.Map info)
           
protected  java.lang.StringBuffer getURLBuffer()
          Extension will normally create URL's differently.
static java.lang.String makeRealCompatible(java.lang.String s)
          Removes RealPlayer incompatible characters from the string.
 
Methods inherited from class org.mmbase.applications.media.urlcomposers.FragmentURLComposer
equals, getFragment, init, isAvailable
 
Methods inherited from class org.mmbase.applications.media.urlcomposers.URLComposer
canCompose, getDescription, getFormat, getGUIIndicator, getInfo, getProvider, getSource, getURL, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealURLComposer

public RealURLComposer()
Method Detail

getURLBuffer

protected java.lang.StringBuffer getURLBuffer()
Description copied from class: URLComposer
Extension will normally create URL's differently. They override this function.

Overrides:
getURLBuffer in class URLComposer

getRMArgs

public static java.lang.StringBuffer getRMArgs(java.lang.StringBuffer args,
                                               MMObjectNode fragment,
                                               java.util.Map info)

appendTime

public static java.lang.StringBuffer appendTime(long time,
                                                java.lang.StringBuffer buf)
Script accept times that look like dd:hh:mm:ss.th, where t is tenths of seconds.

Parameters:
time - the time in milliseconds
Returns:
the time in real format

makeRealCompatible

public static java.lang.String makeRealCompatible(java.lang.String s)
Removes RealPlayer incompatible characters from the string. '#' characters are replaced by space characters. Characters that are allowed are every letter or digit and ' ', '.', '-' and '_' chars.

Parameters:
s - the String that needs to be fixed.
Returns:
a realPlayer compatible String.


MMBase build 1.7.1.20041002