O
Oliver Wong
I'm going to combine some of Darryl L. Pierce's replies into this one big
message.
You are right about the MIDP having the Character class. I had
downloaded the MIDP API and looked at the "All Classes" list on the left
frame, noticed that "Character" did not appear there, and so assumed that
the Character class was not present in the library. However, if I click on
the package "java.lang", Character does show up, but not as a link (implying
that it's not documented, I guess).
I'm not sure I understand what you're said here, but my understanding is
that the OP wants the functionality of the isWhitespace() method, and the
MIDP class library doesn't provide it, so I'm saying the OP should implement
that functionality himself, e.g.:
public class MyUtilityClass {
public static boolean naiveImplementationOfIsWhitespace(char c) {
return c = ' ';
}
}
I doubt that something like the above will put the OP in any legal
trouble.
- Oliver
message.
Darryl L. Pierce said:MIDP provides *all* of the java.lang wrapper classes, including Character.
However it does *not* provide all APIs from JavaSE. The right thing would
be to check the MIDP APIs, which excludes the isWhiteSpace() method...
You are right about the MIDP having the Character class. I had
downloaded the MIDP API and looked at the "All Classes" list on the left
frame, noticed that "Character" did not appear there, and so assumed that
the Character class was not present in the library. However, if I click on
the package "java.lang", Character does show up, but not as a link (implying
that it's not documented, I guess).
Darryl L. Pierce said:Which you can't do since both licensing and implementations disallow
including java.lang.* classes in your code.
I'm not sure I understand what you're said here, but my understanding is
that the OP wants the functionality of the isWhitespace() method, and the
MIDP class library doesn't provide it, so I'm saying the OP should implement
that functionality himself, e.g.:
public class MyUtilityClass {
public static boolean naiveImplementationOfIsWhitespace(char c) {
return c = ' ';
}
}
I doubt that something like the above will put the OP in any legal
trouble.
- Oliver