example.mmademo
Class RingToneConverter

java.lang.Object
  extended by example.mmademo.RingToneConverter

public class RingToneConverter
extends java.lang.Object

Converts ring tone files to the MMAPI tone player format. Those file as can be downloaded from the Internet, e.g. http://www.surgeryofsound.co.uk/ http://www.convertyourtone.com/ http://www.filmfind.tv/ringtones/


Constructor Summary
RingToneConverter(byte[] data, java.lang.String name)
           
RingToneConverter(java.io.InputStream is, java.lang.String name)
           
RingToneConverter(java.lang.String url)
          Tries to convert the passed file.
RingToneConverter(java.lang.String url, java.lang.String name)
           
 
Method Summary
 void dumpSequence()
          Dump the sequence as hexadecimal numbers to standard out.
 java.lang.String getName()
           
 byte[] getSequence()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RingToneConverter

public RingToneConverter(java.lang.String url)
                  throws java.io.IOException,
                         java.lang.Exception
Tries to convert the passed file. The entire contents are read into memory and then different parsers are tried.

Throws:
java.io.IOException - - on read error
java.lang.Exception - - if url does not contain a valid ring tone text file

RingToneConverter

public RingToneConverter(java.lang.String url,
                         java.lang.String name)
                  throws java.io.IOException,
                         java.lang.Exception
Throws:
java.io.IOException
java.lang.Exception

RingToneConverter

public RingToneConverter(java.io.InputStream is,
                         java.lang.String name)
                  throws java.io.IOException,
                         java.lang.Exception
Throws:
java.io.IOException
java.lang.Exception

RingToneConverter

public RingToneConverter(byte[] data,
                         java.lang.String name)
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getName

public java.lang.String getName()

getSequence

public byte[] getSequence()

dumpSequence

public void dumpSequence()
Dump the sequence as hexadecimal numbers to standard out. This can be used to create .jts files from RTTTL files.