@Override
    public final void setData(byte[] data) {
		//make the buffer size an integer number of words
		final int size = WORD_BYTES*((data.length+WORD_BYTES-1)/WORD_BYTES);
		//only reallocate if needed
		if(buffer==null||buffer.length!=size) buffer = new byte[size];
		arraycopy(data, 0, buffer, 0, data.length);
		reset();
	}
@ Override public final void setData ( byte [ ] data ) { final int size = WORD_BYTES * ( ( data . length + WORD_BYTES - 1 ) / WORD_BYTES ) ; if ( buffer == null || buffer . length != size ) buffer = new byte [ size ] ; arraycopy ( data , 0 , buffer , 0 , data . length ) ; reset ( ) ; }
/* (non-Javadoc)
@see net.sourceforge.jaad.aac.syntax.IBitStream#setData(byte[])