Methods Summary |
---|
protected void | checkMIDPPermission(java.lang.String host, int port)
//The actual MIDP permission check happens here
|
public java.io.DataInputStream | openDataInputStream()
return new DataInputStream(openInputStream());
|
public java.io.InputStream | openInputStream()
/*
* Open the input stream if it has not already been opened.
* @exception IOException is thrown if it has already been
* opened.
*/
if (maxIStreams == 0) {
throw new IOException("no more input streams available");
}
InputStream i = super.openInputStream();
maxIStreams--;
iStreams++;
return i;
|
public void | setSocketOption(byte option, int value)
if (option == SocketConnection.SNDBUF || option == SocketConnection.RCVBUF ) {
if (value == 0) {
value = 1;
super.setSocketOption(option, value);
}
}
super.setSocketOption(option, value);
|