From: Jamie C. <jca...@we...> - 2003-09-01 11:03:20
|
My mistake .. it seems that Java 1.1 is widely supported in most browsers, not 1.0. So if that Reader class is available in 1.1 that it is safe to use. Could you email the current patch to me at jca...@we..., and I will include it in the next webmin release? - Jamie Keisuke Mori wrote: > Jamie, > > I understand your point about compatibility, but let me make sure one > thing. > AFAIK, JDK 1.1 does support *Reader classes. Do you mean JDK 1.0? > > If so, adding the charsets decoding support to LineInputStream would be > quite a lot of work (because it is just re-implementing *Reader > classes), > so I prefer to implement as follows: > > - implement our own wrapper Reader class. > - the wrapper class tries to load and instantiate *Reader classes and > works as my > previous patch does if it's succeeded. > - if it's failed with throwing either NoClassFound or > UnsupportedEncoding exception, > the wrapper uses LineInputStream class instead. In this case, some > international > languages won't be displayed correctly and we live with this as > "spec" in JDK 1.0 browser. > > I'm going to modify the code so if it's all right. > > By the way, do you know any versions of browser that runs JDK 1.0 > applets and > can be obtained today? I tried but I couldn't find any ones around me > so... > > Thank you. |