Code example for ByteArrayOutputStream

Methods: size

0
        return "NULL"; 
    } 
 
    public int getDigestSize() 
    { 
        return bOut.size();
    } 
 
    public void update(byte in)
    { 
        bOut.write(in);
    } 
 
    public void update(byte[] in, int inOff, int len)
    { 
        bOut.write(in, inOff, len);
    } 
 
    public int doFinal(byte[] out, int outOff)
    { 
        byte[] res = bOut.toByteArray();