可能是baos.reset()的问题 /** * Resets this stream to the beginning of the underlying byte array. All * subsequent writes will overwrite any bytes previously stored in this * stream. */ public synchronized void reset() { count = 0; } 这是源码解释,好像只是重置流的起始点,没有清空
/**
* Resets this stream to the beginning of the underlying byte array. All
* subsequent writes will overwrite any bytes previously stored in this
* stream.
*/
public synchronized void reset() {
count = 0;
}
这是源码解释,好像只是重置流的起始点,没有清空