private static void closeInputStream(AbstractFolder fo, InputStream is) { StreamPool foPool = find(fo); StreamPool fsPool = find(fo.getFileSystem()); Set foSet = (foPool != null) ? foPool.iStreams : null; Set fsSet = (fsPool != null) ? fsPool.iStreams : null; removeStreams(fsSet, foSet, is); removeStreamPools(fsPool, foPool, fo); }
/** 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); }
private static void closeInputStream (AbstractFolder fo, InputStream is) { StreamPool foPool = find (fo); StreamPool fsPool = find (fo.getFileSystem ()); Set foSet = (foPool != null)? foPool.iStreams : null; Set fsSet = (fsPool != null)? fsPool.iStreams : null; removeStreams (fsSet, foSet, is); removeStreamPools (fsPool, foPool, fo); }
private static void closeInputStream (AbstractFolder fo, InputStream is) { StreamPool foPool = find (fo); StreamPool fsPool = find (fo.getFileSystem ()); Set foSet = (foPool != null)? foPool.iStreams : null; Set fsSet = (fsPool != null)? fsPool.iStreams : null; removeStreams (fsSet, foSet, is); removeStreamPools (fsPool, foPool, fo); }
/** 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); }