code: public void getBytes(byte[] val) throws IOException {
          if ((val.length != 0) && (buffer.read(val) != val.length)) {
              throw new IOException("short read of DER octet string");
          }
      }
docs: Returns the asked number of bytes from the input stream.