资 源 简 介
Java内核是unicode的,就连class文件也是,但是很多媒体,包括文件/流的保存方式是使用字节流的。因此Java要对这些字节流经行转化。 char是unicode的,而byte是字节。Java中 byte/char互转的函数在sun.io的包中间有。其中ByteToCharConverter类是中调度,可以用来告诉你,你用的 convertor。其中两个-Java core is unicode, and even the class file as well, but many media, including file/stream preservation approach is to use the byte stream. Therefore Java byte to flow through the lines of these transformed. char is a unicode, while the byte is a byte. Java, byte/char Huzhuan sun.io package of functions in the middle. One ByteToCharConverter class is in the scheduling, can be used to tell you that you are using convertor. Two