This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

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

(-)src/org/netbeans/modules/xml/schema/cookies/ShareableInputSource.java (-1 / +2 lines)
Lines 29-34 Link Here
29
29
30
    private final InputSource peer;
30
    private final InputSource peer;
31
    private final int bufferSize;
31
    private final int bufferSize;
32
    private final static int BUFFER_SIZE = 256 * 1024 + 7;  // #32939 keep big enough to avoid mark invalidation by wrapping BuffererReader
32
    private IOException resetException;
33
    private IOException resetException;
33
34
34
    public static ShareableInputSource create(InputSource peer) {
35
    public static ShareableInputSource create(InputSource peer) {
Lines 36-42 Link Here
36
        if (peer instanceof ShareableInputSource) {
37
        if (peer instanceof ShareableInputSource) {
37
            return (ShareableInputSource) peer;
38
            return (ShareableInputSource) peer;
38
        } else {
39
        } else {
39
            return new ShareableInputSource(peer, 10000);
40
            return new ShareableInputSource(peer, BUFFER_SIZE);
40
        }
41
        }
41
    }
42
    }
42
43

Return to bug 32939