javauis/mmapi_qt/baseline/javasrc.mmf/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. |
73 * @throws IOException |
75 * @throws IOException |
74 * @see DataSource |
76 * @see DataSource |
75 */ |
77 */ |
76 public void connect() throws IOException |
78 public void connect() throws IOException |
77 { |
79 { |
|
80 Logger.LOG(Logger.EJavaMMAPI, Logger.EInfo,"BufferDataSource connect +"); |
78 iDataSource.connect(); |
81 iDataSource.connect(); |
|
82 Logger.LOG(Logger.EJavaMMAPI, Logger.EInfo,"BufferDataSource connect -"); |
79 } |
83 } |
80 |
84 |
81 /** |
85 /** |
82 * from DataSource |
86 * from DataSource |
83 * Disconnect from the stream |
87 * Disconnect from the stream |
148 public Control getControl(String aControlType) |
152 public Control getControl(String aControlType) |
149 { |
153 { |
150 return iDataSource.getControl(aControlType); |
154 return iDataSource.getControl(aControlType); |
151 } |
155 } |
152 |
156 |
|
157 public Connection getConnection() |
|
158 { |
|
159 return iDataSource.getConnection(); |
|
160 } |
|
161 |
153 } |
162 } |
154 // End of File |
163 // End of File |
155 |
164 |