totalcross.io
Class CompressedByteArrayStream.DirectCharConverter

totalcross.lang.Object
  extended by totalcross.sys.CharacterConverter
      extended by totalcross.io.CompressedByteArrayStream.DirectCharConverter
Enclosing class:
CompressedByteArrayStream

public static class CompressedByteArrayStream.DirectCharConverter
extends CharacterConverter

Implements a CharacterConverter that from char[] to byte[] which just casts the char to byte; thus, ignoring any non-ASCII character.


Constructor Summary
CompressedByteArrayStream.DirectCharConverter()
           
 
Method Summary
 byte[] chars2bytes(char[] chars, int offset, int length)
          Just casts the char to byte; thus, ignoring any non-ASCII character.
 
Methods inherited from class totalcross.sys.CharacterConverter
bytes2chars
 
Methods inherited from class totalcross.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedByteArrayStream.DirectCharConverter

public CompressedByteArrayStream.DirectCharConverter()
Method Detail

chars2bytes

public byte[] chars2bytes(char[] chars,
                          int offset,
                          int length)
Just casts the char to byte; thus, ignoring any non-ASCII character.

Overrides:
chars2bytes in class CharacterConverter