|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStreamConnection
This interface maps specific connections (like StreamConnection,
DatagramConnection etc...) to a generic IStreamConnection. It also allows
only one InputStream / OutputStream per connection.
IStreamConnections can be obtained by using
IResourceHandle.openStreamConnection(String).
| Method Summary | |
|---|---|
void |
close()
Closes the complete connection and both streams if acquired! |
InputStream |
getInputStream()
Method to obtain the InputStream for this connection. |
OutputStream |
getOutputStream()
Method to obtain the OutputStream for this connection. |
boolean |
isOpen()
Checks whether the underlying connection is still open. |
| Method Detail |
|---|
InputStream getInputStream()
throws IOException
IOException - if no InputStream is available or the connection is closed
OutputStream getOutputStream()
throws IOException
IOException - if no OutputStream is available or the connection is closedvoid close()
close in interface javax.microedition.io.Connectionboolean isOpen()
true if this connection is still open and
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||