javauis/mmapi_qt/baseline/javasrc.emc/com/nokia/microedition/media/BufferDataSource.java
equal
deleted
inserted
replaced
20 |
20 |
21 import javax.microedition.media.Control; |
21 import javax.microedition.media.Control; |
22 import javax.microedition.media.protocol.DataSource; |
22 import javax.microedition.media.protocol.DataSource; |
23 import javax.microedition.media.protocol.SourceStream; |
23 import javax.microedition.media.protocol.SourceStream; |
24 import java.io.IOException; |
24 import java.io.IOException; |
|
25 import javax.microedition.io.Connection; |
|
26 import com.nokia.mj.impl.utils.Logger; |
25 |
27 |
26 /** |
28 /** |
27 * BufferDataSource is used to read header from DataSource's SourceStream. |
29 * BufferDataSource is used to read header from DataSource's SourceStream. |
28 * This class delegates all method calls to DataSource given in constructor |
30 * This class delegates all method calls to DataSource given in constructor |
29 * except getStream method which returns buffered SourceStream. |
31 * except getStream method which returns buffered SourceStream. |
158 public DataSource getDataSource() |
160 public DataSource getDataSource() |
159 { |
161 { |
160 return iDataSource; |
162 return iDataSource; |
161 } |
163 } |
162 |
164 |
|
165 public Connection getConnection() |
|
166 { |
|
167 Logger.LOG(Logger.EJavaMMAPI, Logger.EInfo,"BufferDataSource getConnection +"); |
|
168 return iDataSource.getConnection(); |
|
169 } |
|
170 |
163 } |
171 } |
164 // End of File |
172 // End of File |
165 |
173 |