/** fireFileChange defines if should be fired fileChanged event after close of stream*/ synchronized OutputStream getOutputStream(FileLock lock, boolean fireFileChanged) throws IOException { FileSystem fs = getAbstractFileSystem(); if (fs.isReadOnly()) { throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FSisRO", fs.getDisplayName())); } if (isReadOnly()) { throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FisRO", name, fs.getDisplayName())); } testLock(lock); return StreamPool.createOutputStream(this, fireFileChanged); }
/** fireFileChange defines if should be fired fileChanged event after close of stream*/ synchronized OutputStream getOutputStream (FileLock lock, boolean fireFileChanged) throws java.io.IOException { FileSystem fs = getAbstractFileSystem (); if (fs.isReadOnly()) FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N if (isReadOnly()) FSException.io("EXC_FisRO", name, fs.getDisplayName ()); // NOI18N testLock (lock); return StreamPool.createOutputStream(this, fireFileChanged); }
/** fireFileChange defines if should be fired fileChanged event after close of stream*/ synchronized OutputStream getOutputStream (FileLock lock, boolean fireFileChanged) throws java.io.IOException { FileSystem fs = getAbstractFileSystem (); if (fs.isReadOnly()) FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N if (isReadOnly()) FSException.io("EXC_FisRO", name, fs.getDisplayName ()); // NOI18N testLock (lock); return StreamPool.createOutputStream(this, fireFileChanged); }
synchronized (parent) { testLock (lock);
synchronized (parent) { testLock (lock);
getFileSystem ().beginAtomicAction (); synchronized (parent) { testLock (lock);
getFileSystem ().beginAtomicAction (); synchronized (parent) { testLock (lock);
getFileSystem ().beginAtomicAction (); synchronized (parent) { testLock (lock);
getFileSystem ().beginAtomicAction (); synchronized (parent) { testLock (lock);