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 40738
Collapse All | Expand All

(-)src/org/openide/filesystems/StreamPool.java (-1 / +6 lines)
Lines 51-58 Link Here
51
     * @param fo FileObject that issues is
51
     * @param fo FileObject that issues is
52
     * @param InputStream that should be issued
52
     * @param InputStream that should be issued
53
     * @return subclassed InputStream that is registered as mentioned above */
53
     * @return subclassed InputStream that is registered as mentioned above */
54
    public static synchronized InputStream createInputStream (AbstractFolder fo, InputStream is) {
54
    public static synchronized InputStream createInputStream (AbstractFolder fo, InputStream is) throws InterruptedIOException {
55
        InputStream retVal = new NotifyInputStream (fo, is);
55
        InputStream retVal = new NotifyInputStream (fo, is);
56
        
57
        if (!get (fo).oStream ().isEmpty ()) {
58
            throw new InterruptedIOException ("Cannot read. There is an open output stream for " + fo); // NOI18N
59
        }
60
        
56
        get (fo).iStream ().add (retVal);
61
        get (fo).iStream ().add (retVal);
57
        get (fo.getFileSystem()).iStream ().add (retVal);
62
        get (fo.getFileSystem()).iStream ().add (retVal);
58
        return retVal;
63
        return retVal;

Return to bug 40738