1

Is there charset which I could use to save 8bit data? I mean everything which is binary, without changing it content in string?

Andre Silva
  • 4,782
  • 9
  • 52
  • 65
oneat
  • 10,778
  • 16
  • 52
  • 70

2 Answers2

4

The package java.io defines two kinds of classes to save data:

  • XXXOutputStream, which are for saving raw 8-bytes data
  • XXXWriter, which are for saving Strings

Just use the class from XXXOutputStream family that suits your needs. You don't need a Charset for that.

Cyrille Ka
  • 15,328
  • 5
  • 38
  • 58
0

I think you are looking for the datatype byte[].

pamphlet
  • 2,054
  • 1
  • 17
  • 27