How can I do something like ByteBuffer.putBoolean and ByteBuffer.getBoolean?
As with DataInputStream there is readBoolean and with DataOutputStream there is writeBoolean; I don't find the ability to write/read booleans with ByteBuffer. Is there a way to achieve the same behavior?