/** * Instructs this output stream to be closed and storage manager to * be updated as appropriate. If this managed output stream is part of * a set returned by {@link StorageManager#getOutputStreamSet(String[])} then * the storage manager will only be updated with the new content after all * of the managed output streams in the set are closed successfully. * @see FilterOutputStream#close() */ public void close() throws IOException { manager.closeOutputStream(this); }
/** * Add the given managed file name to the list of files managed by this manager. * * @param managedFile name of the file to manage * @throws IOException if there are any problems adding the given file name to the manager */ public void add(String managedFile) throws IOException { add(managedFile, FILETYPE_STANDARD); }
/** * Instructs this output stream to be closed and the contents discarded. * If this managed output stream is part of a set returned by * {@link StorageManager#getOutputStreamSet(String[])} then the new * content of all managed output streams in the set will be discarded. */ public void abort() { manager.abortOutputStream(this); }
/** * Returns a managed <code>InputStream</code> for a managed file. * <code>null</code> can be returned if the given name is not managed. * * @param managedFile the name of the managed file to open. * @return an input stream to the managed file or * <code>null</code> if the given name is not managed. * @throws IOException if the content is missing, corrupt or an error occurs. */ public InputStream getInputStream(String managedFile) throws IOException { return getInputStream(managedFile, ReliableFile.OPEN_BEST_AVAILABLE); }
/** * Instructs this output stream to be closed and storage manager to * be updated as appropriate. If this managed output stream is part of * a set returned by {@link StorageManager#getOutputStreamSet(String[])} then * the storage manager will only be updated with the new content after all * of the managed output streams in the set are closed successfully. * @see FilterOutputStream#close() */ public void close() throws IOException { manager.closeOutputStream(this); }
/** * Add the given managed file name to the list of files managed by this manager. * * @param managedFile name of the file to manage * @throws IOException if there are any problems adding the given file name to the manager */ public void add(String managedFile) throws IOException { add(managedFile, FILETYPE_STANDARD); }
/** * Instructs this output stream to be closed and the contents discarded. * If this managed output stream is part of a set returned by * {@link StorageManager#getOutputStreamSet(String[])} then the new * content of all managed output streams in the set will be discarded. */ public void abort() { manager.abortOutputStream(this); }
/** * Returns a managed <code>InputStream</code> for a managed file. * <code>null</code> can be returned if the given name is not managed. * * @param managedFile the name of the managed file to open. * @return an input stream to the managed file or * <code>null</code> if the given name is not managed. * @throws IOException if the content is missing, corrupt or an error occurs. */ public InputStream getInputStream(String managedFile) throws IOException { return getInputStream(managedFile, ReliableFile.OPEN_BEST_AVAILABLE); }
/** * Instructs this output stream to be closed and storage manager to * be updated as appropriate. If this managed output stream is part of * a set returned by {@link StorageManager#getOutputStreamSet(String[])} then * the storage manager will only be updated with the new content after all * of the managed output streams in the set are closed successfully. * @see FilterOutputStream#close() */ public void close() throws IOException { manager.closeOutputStream(this); }
/** * Add the given managed file name to the list of files managed by this manager. * * @param managedFile name of the file to manage * @throws IOException if there are any problems adding the given file name to the manager */ public void add(String managedFile) throws IOException { add(managedFile, FILETYPE_STANDARD); }
/** * Instructs this output stream to be closed and the contents discarded. * If this managed output stream is part of a set returned by * {@link StorageManager#getOutputStreamSet(String[])} then the new * content of all managed output streams in the set will be discarded. */ public void abort() { manager.abortOutputStream(this); }
/** * Returns a managed <code>InputStream</code> for a managed file. * <code>null</code> can be returned if the given name is not managed. * * @param managedFile the name of the managed file to open. * @return an input stream to the managed file or * <code>null</code> if the given name is not managed. * @throws IOException if the content is missing, corrupt or an error occurs. */ public InputStream getInputStream(String managedFile) throws IOException { return getInputStream(managedFile, ReliableFile.OPEN_BEST_AVAILABLE); }
/** * Instructs this output stream to be closed and storage manager to * be updated as appropriate. If this managed output stream is part of * a set returned by {@link StorageManager#getOutputStreamSet(String[])} then * the storage manager will only be updated with the new content after all * of the managed output streams in the set are closed successfully. * @see FilterOutputStream#close() */ public void close() throws IOException { manager.closeOutputStream(this); }
/** * Add the given managed file name to the list of files managed by this manager. * * @param managedFile name of the file to manage * @throws IOException if there are any problems adding the given file name to the manager */ public void add(String managedFile) throws IOException { add(managedFile, FILETYPE_STANDARD); }
/** * Instructs this output stream to be closed and the contents discarded. * If this managed output stream is part of a set returned by * {@link StorageManager#getOutputStreamSet(String[])} then the new * content of all managed output streams in the set will be discarded. */ public void abort() { manager.abortOutputStream(this); }
/** * Returns a managed <code>InputStream</code> for a managed file. * <code>null</code> can be returned if the given name is not managed. * * @param managedFile the name of the managed file to open. * @return an input stream to the managed file or * <code>null</code> if the given name is not managed. * @throws IOException if the content is missing, corrupt or an error occurs. */ public InputStream getInputStream(String managedFile) throws IOException { return getInputStream(managedFile, ReliableFile.OPEN_BEST_AVAILABLE); }
/** * Instructs this output stream to be closed and storage manager to * be updated as appropriate. If this managed output stream is part of * a set returned by {@link StorageManager#getOutputStreamSet(String[])} then * the storage manager will only be updated with the new content after all * of the managed output streams in the set are closed successfully. * @see FilterOutputStream#close() */ public void close() throws IOException { manager.closeOutputStream(this); }
/** * Add the given managed file name to the list of files managed by this manager. * * @param managedFile name of the file to manage * @throws IOException if there are any problems adding the given file name to the manager */ public void add(String managedFile) throws IOException { add(managedFile, FILETYPE_STANDARD); }
/** * Instructs this output stream to be closed and storage manager to * be updated as appropriate. If this managed output stream is part of * a set returned by {@link StorageManager#getOutputStreamSet(String[])} then * the storage manager will only be updated with the new content after all * of the managed output streams in the set are closed successfully. * @see FilterOutputStream#close() */ public void close() throws IOException { manager.closeOutputStream(this); }
/** * Instructs this output stream to be closed and storage manager to * be updated as appropriate. If this managed output stream is part of * a set returned by {@link StorageManager#getOutputStreamSet(String[])} then * the storage manager will only be updated with the new content after all * of the managed output streams in the set are closed successfully. * @see FilterOutputStream#close() */ public void close() throws IOException { manager.closeOutputStream(this); }