public interface DataConnection
DataConnection interface provides methods for retrieving the underlying input and output streams of a
data connection opened by issuing an AT command (such as ATD).| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this data connection.
|
java.io.InputStream |
getInputStream()
Gets this data connection's input stream.
|
java.io.OutputStream |
getOutputStream()
Gets this data connection's output stream.
|
void close()
throws java.io.IOException
IOException to be thrown. Closing an already closed connection has no effect.
Closing a connection will also close the connection's InputStream and OutputStream.java.io.IOException - if an I/O error occurs.java.io.InputStream getInputStream()
throws java.io.IOException
InputStream instance is returned upon subsequent
calls. java.io.IOException - if an I/O error occurs.java.io.OutputStream getOutputStream()
throws java.io.IOException
OutputStream instance is returned upon subsequent
calls. java.io.IOException - if an I/O error occurs.Copyright (c) 2012, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.