/** * Writes this content to an OutputStream. * * @param output The target OutputStream. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final OutputStream output) throws IOException { return write(output, WRITE_BUFFER_SIZE); }
/** * Writes this content to an OutputStream. * * @param output The target OutputStream. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final OutputStream output) throws IOException { return write(output, WRITE_BUFFER_SIZE); }
/** * Writes this content to an OutputStream. * * @param output The target OutputStream. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final OutputStream output) throws IOException { return write(output, WRITE_BUFFER_SIZE); }
/** * Writes this content to an OutputStream. * * @param output * The target OutputStream. * @return the total number of bytes written * @throws IOException * if an error occurs writing the content. * @since 2.1 */ @Override public long write(final OutputStream output) throws IOException { return write(output, WRITE_BUFFER_SIZE); }
/** * Writes this content to another FileObject. * * @param file The target FileObject. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileObject file) throws IOException { return write(file.getContent()); }
/** * Writes this content to another FileObject. * * @param file The target FileObject. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileObject file) throws IOException { return write(file.getContent()); }
/** * Writes this content to another FileObject. * * @param file The target FileObject. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileObject file) throws IOException { return write(file.getContent()); }
/** * Writes this content to another FileObject. * * @param file * The target FileObject. * @return the total number of bytes written * @throws IOException * if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileObject file) throws IOException { return write(file.getContent()); }
/** * Writes this content to another FileContent. * * @param fileContent The target FileContent. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileContent fileContent) throws IOException { final OutputStream output = fileContent.getOutputStream(); try { return this.write(output); } finally { output.close(); } }
/** * Writes this content to another FileContent. * * @param fileContent The target FileContent. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileContent fileContent) throws IOException { final OutputStream output = fileContent.getOutputStream(); try { return this.write(output); } finally { output.close(); } }
/** * Writes this content to another FileContent. * * @param fileContent The target FileContent. * @return the total number of bytes written * @throws IOException if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileContent fileContent) throws IOException { final OutputStream output = fileContent.getOutputStream(); try { return this.write(output); } finally { output.close(); } }
/** * Writes this content to another FileContent. * * @param fileContent * The target FileContent. * @return the total number of bytes written * @throws IOException * if an error occurs writing the content. * @since 2.1 */ @Override public long write(final FileContent fileContent) throws IOException { final OutputStream output = fileContent.getOutputStream(); try { return this.write(output); } finally { output.close(); } }