/** * Creates a <code>ByteArrayInputStream</code> so that it uses <code>buffer</code> as its * buffer array. The buffer array is not copied. The initial value of <code>pos</code> is * <code>0</code> and the initial value of <code>count</code> is the length of * <code>buffer</code>. * * @param buffer the input buffer. */ public OptimizedByteArrayInputStream(byte buffer[]) { setBuffer(buffer); }