SOMns icon indicating copy to clipboard operation
SOMns copied to clipboard

Redesign Streams and Character Encoding

Open daumayr opened this issue 7 years ago • 1 comments

Right now Stream operations are very byte oriented and only ASCII characters are supported by the character converters. Streams should be redesigned to offer operations that read/write multiple bytes at once, making implementation of character encodings other than ASCII easier. The Java implementation of strings and characters uses UTF-16 encoding, so this is going to be the encoding of the internal representation.

Goals:

  • multi-byte operations (like nextInt nextLong nextDouble etc.)
  • support reading/writing other Character Encodings
  • more strictness / better Exceptions

daumayr avatar Jan 16 '18 09:01 daumayr

First progress in that direction was made with #217.

smarr avatar Feb 14 '18 07:02 smarr