#ff0000 12  2007 - #000655       J2ME
#def              web   J2ME  Java Platform 6  (Sony Ericsson W550  W900 Walkman).      real-time   rtsp,     input stream.  ,      JSR-75  JSR-135. 
        InputStream     web .       InputStream    .          ,          . 
     : 
 .           . 
 .     .      ,       ,        . 
  ,      output stream. 

fConn = (FileConnection)Connector.open("file:///c:/other/mymusic.mp3");
fConn.create();
outputStream = fConn.openOutputStream();

,               . 

HttpConnection conn = (HttpConnection)Connector.open(url);
InputStream is = conn.openInputStream();

int chunkSize = 512;
byte []data = new byte[chunkSize];
int length = 0;
do{
    length = is.read(data, 0, chunkSize);
    progress += length;

    if(length != -1){
        outputStream.write(data, 0, length);
    } 

}while(length != -1);

   ,    . 
final String file = "file:///c:/other/mymusic.mp3";
player = Manager.createPlayer(file);
player.addPlayerListener(this);
player.realize();
player.setMediaTime(startTime);
             . 
startTime = player.getMediaTime();
     PlayerListener,        .      playerUpdate(). 
public void playerUpdate(javax.microedition.media.Player player, String str, Object obj) {
    if(str == PlayerListener.END_OF_MEDIA){
        playerBufferAdd();
        player.close();
    }
}

 playerUpdate  ,     ,     .   ,     ,   .         .

    rts.   Java Platform 7 (SE k610/K800)     .  K610    mp3       . 
final String file = "http://aserver//mymp3.mp3";
player = Manager.createPlayer(file);
player.start(); 

   rts 

final String file = "rtsp://streamingserver//music.3gp";
player = Manager.createPlayer(file);
player.start();

