Methods Summary |
---|
public void | close()Clear the fields of the saved connection and release any
system resources. Any open input and output streams are closed
as well as the connection itself.
try {
if (m_data_output_stream != null) {
m_data_output_stream.close();
m_data_output_stream = null;
}
if (m_data_input_stream != null) {
m_data_input_stream.close();
m_data_input_stream = null;
}
if (m_stream != null) {
m_stream.close();
m_stream = null;
}
} catch (IOException ioe) {
/*
* No special processing for errors, since the
* the cached connection is no longer in use, and
* the server may already have shutdown its end
* of the connection.
*/
}
|
public javax.microedition.io.StreamConnection | getBaseConnection()Get the stream connection for this element.
return m_stream;
|
public java.io.DataInputStream | openDataInputStream()Get the current data input stream for the stream connection.
return m_data_input_stream;
|
public java.io.DataOutputStream | openDataOutputStream()Get the current data output stream for the stream connection.
return m_data_output_stream;
|
public java.io.InputStream | openInputStream()Get the current data stream for the stream connection.
return m_data_input_stream;
|
public java.io.OutputStream | openOutputStream()Get the current output stream for the stream connection.
return m_data_output_stream;
|