![]() |
Java speaks Russian |
fontcharset.serif.0=koi8.converter.CharToByteKOI8_R fontcharset.sansserif.0=koi8.converter.CharToByteKOI8_R fontcharset.monospaced.0=koi8.converter.CharToByteKOI8_R fontcharset.dialog.0=koi8.converter.CharToByteKOI8_R fontcharset.dialoginput.0=sun.io.CharToByteKOI8_Rwhich tell JVM how to convert. This is supposed to be done in the package koi8. This package it not written yet: I still can't scratch time to get it done. If anyone wants to do it before me, please, drop me a line. I would like this to be implemented in the following way:
package koi8.converter; import sun.io.CharToByte8859_1; public class CharToByteKOI8_R extends sun.io.CharToByte8859_1 { public boolean canConvert(char ch) { ... } public int convert(char[] input, int inStart, int inEnd, byte[] output, int outStart, int outEnd) throws ConversionBufferFullException; { ... } public String toString() { return "KOI8_R"; } }I was not able to write this on-a-fly because I could not find how sun.io is implemented, and I was told that Sun will not release source code for this package.