Class Bytes


  • public class Bytes
    extends Object
    Defines useful constants and methods regarding bytes.
    • Field Detail

      • EMPTY_BYTE_ARRAY

        public static final byte[] EMPTY_BYTE_ARRAY
        Holds an empty byte array, so we do not need to create one every time.
    • Constructor Detail

      • Bytes

        public Bytes()
    • Method Detail

      • readAllBytes

        public static byte[] readAllBytes​(InputStream is)