javafiledataoutputstream

Is there a way to write groups of bits less than a byte in Java


If I was to try to make a program that outputs .Flac files in Java, Flac-format, It appears that I would need to output values less than a byte. Is it even possible to output values less than a byte such as a nybble or a 5-bit number?


Solution

  • In the end I think I can do this using bit shifting and logical commands such as & and | opperators.