diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/observer/download/DownloadBuilder.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/observer/download/DownloadBuilder.java index f5c4de286..b7de80ef3 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/observer/download/DownloadBuilder.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/observer/download/DownloadBuilder.java @@ -23,14 +23,6 @@ public final class DownloadBuilder { /** * Creates an instance for build a {@link FileDownload}.
* - * - * Download download = DownloadBuilder.of(myFile) - * .withFileName("resume.txt") // optional, default is file.getName() - * .withContentType("text/plain") // optional, null will sent as octet/stream - * .downloadable() // optional, default is inline content - * .build(); - * - * * @param file The input file. * @throws NullPointerException If the {@code file} argument is {@code null} */ @@ -41,15 +33,6 @@ public static FileDownloadBuilder of(File file) { /** * Creates an instance for build a {@link InputStreamDownload}.
* - * - * Download download = DownloadBuilder.of(myInputStream) - * .withFileName("resume.txt") // optional - * .withContentType("text/plain") // optional, null will sent as octet/stream - * .downloadable() // optional, default is inline content - * .withSize(100L) // optional - * .build(); - * - * * @param input The input InputStream to process. * @throws NullPointerException If the {@code input} argument is {@code null} */ @@ -60,14 +43,6 @@ public static InputStreamDownloadBuilder of(InputStream input) { /** * Creates an instance for build a {@link ByteArrayDownload}.
* - * - * Download download = DownloadBuilder.of(myFile) - * .withFileName("resume.txt") // optional - * .withContentType("text/plain") // optional, null will sent as octet/stream - * .downloadable() // optional, default is inline content - * .build(); - * - * * @param input The input byte array. * @throws NullPointerException If the {@code input} argument is {@code null} */ @@ -78,13 +53,6 @@ public static ByteArrayDownloadBuilder of(byte[] input) { /** * Creates an instance for build a {@link ZipDownload}.
* - * - * List listOfFiles = [...]; - * Download download = DownloadBuilder.of(listOfFiles) - * .withFileName("resume.zip") - * .build(); - * - * * @param files List of input files * @throws NullPointerException If the {@code input} argument is {@code null} */