mirror of https://github.com/apache/poi.git
Small fix for bug in RecordInputStream.readAllContinuedRemainder() introduced in r707778. It seems like only BiffViewer was affected.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@708385 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58dd97257a
commit
c7bb2b5a15
|
@ -355,14 +355,14 @@ public final class RecordInputStream extends InputStream implements LittleEndian
|
||||||
//growable array of the data.
|
//growable array of the data.
|
||||||
ByteArrayOutputStream out = new ByteArrayOutputStream(2*MAX_RECORD_DATA_SIZE);
|
ByteArrayOutputStream out = new ByteArrayOutputStream(2*MAX_RECORD_DATA_SIZE);
|
||||||
|
|
||||||
while (isContinueNext()) {
|
while (true) {
|
||||||
byte[] b = readRemainder();
|
byte[] b = readRemainder();
|
||||||
out.write(b, 0, b.length);
|
out.write(b, 0, b.length);
|
||||||
|
if (!isContinueNext()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
nextRecord();
|
nextRecord();
|
||||||
}
|
}
|
||||||
byte[] b = readRemainder();
|
|
||||||
out.write(b, 0, b.length);
|
|
||||||
|
|
||||||
return out.toByteArray();
|
return out.toByteArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue