/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }
/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }
/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }
/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }
/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }
/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }
/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }
/** * Returns an array of <code>ManagedOutputStream</code> for a set of managed files. * When all managed output streams in the set have been closed, the storage manager * will be updated with the new content of the managed files. * Aborting any one of the streams will cause the entire content of the set to abort * and be discarded. * * @param managedFiles list of names of the managed file to write. * @return an array of managed output streams respectively of managed files. * @throws IOException if an error occurs opening the managed files. */ public ManagedOutputStream[] getOutputStreamSet(String[] managedFiles) throws IOException { int count = managedFiles.length; ManagedOutputStream[] streams = new ManagedOutputStream[count]; int idx = 0; try { for (; idx < count; idx++) { ManagedOutputStream newStream = getOutputStream(managedFiles[idx]); newStream.setStreamSet(streams); streams[idx] = newStream; } } catch (IOException e) { // cleanup for (int jdx = 0; jdx < idx; jdx++) streams[jdx].abort(); throw e; } return streams; }