/** * Notification that the output stream has been closed. * @param fireFileChanged defines if FileEvent should be fired to notify about * change of file after close of stream */ protected void outputStreamClosed(boolean fireFileChanged) { synchronized (this) { putLastModified(null); lastModified(); } super.outputStreamClosed(fireFileChanged); }
/** fireFileChange defines if should be fired fileChanged event after close of stream*/ private static void closeOutputStream(AbstractFolder fo, OutputStream os, boolean fireFileChanged) { StreamPool foPool = find(fo); StreamPool fsPool = find(fo.getFileSystem()); Set foSet = (foPool != null) ? foPool.oStreams : null; Set fsSet = (fsPool != null) ? fsPool.oStreams : null; removeStreams(fsSet, foSet, os); removeStreamPools(fsPool, foPool, fo); fo.outputStreamClosed(fireFileChanged); }
/** * Notification that the output stream has been closed. * @param fireFileChanged defines if FileEvent should be fired to notify about * change of file after close of stream */ protected void outputStreamClosed (boolean fireFileChanged) { synchronized (this) { lastModified = null; lastModified(); } super.outputStreamClosed (fireFileChanged); }
/** * Notification that the output stream has been closed. * @param fireFileChanged defines if FileEvent should be fired to notify about * change of file after close of stream */ protected void outputStreamClosed (boolean fireFileChanged) { synchronized (this) { lastModified = null; lastModified(); } super.outputStreamClosed (fireFileChanged); }
/** fireFileChange defines if should be fired fileChanged event after close of stream*/ private static void closeOutputStream (AbstractFolder fo, OutputStream os, boolean fireFileChanged) { StreamPool foPool = find (fo); StreamPool fsPool = find (fo.getFileSystem ()); Set foSet = (foPool != null)? foPool.oStreams : null; Set fsSet = (fsPool != null)? fsPool.oStreams : null; removeStreams (fsSet, foSet, os); removeStreamPools (fsPool, foPool, fo); fo.outputStreamClosed (fireFileChanged); }
/** fireFileChange defines if should be fired fileChanged event after close of stream*/ private static void closeOutputStream (AbstractFolder fo, OutputStream os, boolean fireFileChanged) { StreamPool foPool = find (fo); StreamPool fsPool = find (fo.getFileSystem ()); Set foSet = (foPool != null)? foPool.oStreams : null; Set fsSet = (fsPool != null)? fsPool.oStreams : null; removeStreams (fsSet, foSet, os); removeStreamPools (fsPool, foPool, fo); fo.outputStreamClosed (fireFileChanged); }