View | Details | Raw Unified | Return to bug 28231
Collapse All | Expand All

(-)src/java/org/apache/poi/poifs/storage/RawDataBlock.java (-3 / +15 lines)
Lines 20-25 Link Here
20
20
21
import org.apache.poi.poifs.common.POIFSConstants;
21
import org.apache.poi.poifs.common.POIFSConstants;
22
import org.apache.poi.util.IOUtils;
22
import org.apache.poi.util.IOUtils;
23
import org.apache.poi.util.POILogger;
24
import org.apache.poi.util.POILogFactory;
23
25
24
import java.io.*;
26
import java.io.*;
25
27
Lines 32-37 Link Here
32
public class RawDataBlock
34
public class RawDataBlock
33
    implements ListManagedBlock
35
    implements ListManagedBlock
34
{
36
{
37
    private static POILogger log = POILogFactory.getLogger(RawDataBlock.class);
38
35
    private byte[]  _data;
39
    private byte[]  _data;
36
    private boolean _eof;
40
    private boolean _eof;
37
41
Lines 59-67 Link Here
59
            String type = " byte" + ((count == 1) ? ("")
63
            String type = " byte" + ((count == 1) ? ("")
60
                                                  : ("s"));
64
                                                  : ("s"));
61
65
62
            throw new IOException("Unable to read entire block; " + count
66
            log.log(POILogger.WARN, "Unable to read entire block; " + count
63
                                  + type + " read; expected "
67
                                    + type + " read; expected "
64
                                  + POIFSConstants.BIG_BLOCK_SIZE + " bytes");
68
                                    + POIFSConstants.BIG_BLOCK_SIZE + " bytes.  File may be corrupt.");
69
70
            // We are at EOF, but I think that confuses the caller.
71
//            _eof = true;
72
73
//
74
//            throw new IOException("Unable to read entire block; " + count
75
//                                  + type + " read; expected "
76
//                                  + POIFSConstants.BIG_BLOCK_SIZE + " bytes");
65
        }
77
        }
66
        else
78
        else
67
        {
79
        {

Return to bug 28231