This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 8828e667 Javadoc 8828e667 is described below commit 8828e667df823e2bf04e5035b414bc2f4b162a31 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu May 18 17:33:29 2023 -0400 Javadoc --- .../org/apache/commons/io/input/BOMInputStream.java | 14 ++++++-------- .../io/input/BufferedFileChannelInputStream.java | 4 ++-- .../commons/io/input/CharSequenceInputStream.java | 3 ++- .../commons/io/input/MemoryMappedFileInputStream.java | 17 +++++++++++++---- .../io/input/MessageDigestCalculatingInputStream.java | 4 ++-- .../org/apache/commons/io/input/QueueInputStream.java | 3 +-- .../commons/io/input/RandomAccessFileInputStream.java | 4 ++-- .../apache/commons/io/input/ReadAheadInputStream.java | 4 ++-- .../org/apache/commons/io/input/ReaderInputStream.java | 4 ++-- .../commons/io/input/ReversedLinesFileReader.java | 4 ++-- src/main/java/org/apache/commons/io/input/Tailer.java | 4 ++-- .../commons/io/input/UncheckedBufferedReader.java | 4 ++-- .../commons/io/input/UncheckedFilterInputStream.java | 4 ++-- .../apache/commons/io/input/UncheckedFilterReader.java | 4 ++-- .../io/input/UnsynchronizedBufferedInputStream.java | 4 ++-- .../io/input/UnsynchronizedByteArrayInputStream.java | 6 +++--- .../io/input/UnsynchronizedFilterInputStream.java | 4 ++-- .../org/apache/commons/io/input/XmlStreamReader.java | 3 +-- .../commons/io/output/DeferredFileOutputStream.java | 2 +- .../commons/io/output/FileWriterWithEncoding.java | 5 +++-- .../apache/commons/io/output/LockableFileWriter.java | 4 ++-- .../commons/io/output/UncheckedFilterOutputStream.java | 4 ++-- .../apache/commons/io/output/UncheckedFilterWriter.java | 4 ++-- .../io/output/UnsynchronizedByteArrayOutputStream.java | 4 ++-- .../apache/commons/io/output/WriterOutputStream.java | 4 ++-- .../org/apache/commons/io/output/XmlStreamWriter.java | 4 ++-- 26 files changed, 66 insertions(+), 59 deletions(-) diff --git a/src/main/java/org/apache/commons/io/input/BOMInputStream.java b/src/main/java/org/apache/commons/io/input/BOMInputStream.java index 7e45fe31..7aa33691 100644 --- a/src/main/java/org/apache/commons/io/input/BOMInputStream.java +++ b/src/main/java/org/apache/commons/io/input/BOMInputStream.java @@ -98,26 +98,24 @@ public class BOMInputStream extends ProxyInputStream { /** * Builds a new {@link BOMInputStream} instance. - * <h2> - * Using NIO - * </2> + * + * <h2>Using NIO</h2> * <pre>{@code * BOMInputStream s = BOMInputStream.builder() * .setPath(Paths.get("MyFile.xml")) * .setByteOrderMarks(ByteOrderMark.UTF_8) * .setInclude(false) - * .get()} + * .get();} * </pre> - * <h2> - * Using IO - * </2> + * <h2>Using IO</h2> * <pre>{@code * BOMInputStream s = BOMInputStream.builder() * .setFile(new File("MyFile.xml")) * .setByteOrderMarks(ByteOrderMark.UTF_8) * .setInclude(false) - * .get()} + * .get();} * </pre> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<BOMInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java b/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java index 2314ab40..a29e488d 100644 --- a/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java +++ b/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java @@ -52,7 +52,7 @@ public final class BufferedFileChannelInputStream extends InputStream { * BufferedFileChannelInputStream s = BufferedFileChannelInputStream.builder() * .setFile(file) * .setBufferSize(4096) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -62,7 +62,7 @@ public final class BufferedFileChannelInputStream extends InputStream { * BufferedFileChannelInputStream s = BufferedFileChannelInputStream.builder() * .setPath(path) * .setBufferSize(4096) - * .get()} + * .get();} * </pre> * * @since 2.12.0 diff --git a/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java b/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java index 1e503b31..b70d3cd9 100644 --- a/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java +++ b/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java @@ -55,8 +55,9 @@ public class CharSequenceInputStream extends InputStream { * .setBufferSize(8192) * .setCharSequence("String") * .setCharsetEncoder(Charset.defaultCharset()) - * .get()} + * .get();} * </pre> + * * @since 2.13.0 */ public static class Builder extends AbstractStreamBuilder<CharSequenceInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/MemoryMappedFileInputStream.java b/src/main/java/org/apache/commons/io/input/MemoryMappedFileInputStream.java index 4a6daf50..3622a501 100644 --- a/src/main/java/org/apache/commons/io/input/MemoryMappedFileInputStream.java +++ b/src/main/java/org/apache/commons/io/input/MemoryMappedFileInputStream.java @@ -45,8 +45,11 @@ import org.apache.commons.io.build.AbstractStreamBuilder; * <p> * To build an instance, see {@link Builder}. * </p> - * <pre> - * new BufferedInputStream(new GzipInputStream(new MemoryMappedFileInputStream(path)))) + * <pre>{@code + * BufferedInputStream s = new BufferedInputStream(new GzipInputStream(MemoryMappedFileInputStream.builder() + * .setPath(path) + * .setBufferSize(256 * 1024) + * .get()));} * </pre> * <p> * should outperform: @@ -54,6 +57,12 @@ import org.apache.commons.io.build.AbstractStreamBuilder; * <pre> * new GzipInputStream(new MemoryMappedFileInputStream(path)) * </pre> + * <pre>{@code + * GzipInputStream s = new GzipInputStream(MemoryMappedFileInputStream.builder() + * .setPath(path) + * .setBufferSize(256 * 1024) + * .get());} + * </pre> * * @since 2.12.0 */ @@ -68,9 +77,9 @@ public final class MemoryMappedFileInputStream extends InputStream { * MemoryMappedFileInputStream s = MemoryMappedFileInputStream.builder() * .setPath(path) * .setBufferSize(256 * 1024) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<MemoryMappedFileInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java b/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java index c68b7d48..eea5e941 100644 --- a/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java +++ b/src/main/java/org/apache/commons/io/input/MessageDigestCalculatingInputStream.java @@ -52,9 +52,9 @@ public class MessageDigestCalculatingInputStream extends ObservableInputStream { * MessageDigestCalculatingInputStream s = MessageDigestCalculatingInputStream.builder() * .setPath(path) * .setMessageDigest("SHA-512") - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<MessageDigestCalculatingInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/QueueInputStream.java b/src/main/java/org/apache/commons/io/input/QueueInputStream.java index 9f3cb056..a0d1f4da 100644 --- a/src/main/java/org/apache/commons/io/input/QueueInputStream.java +++ b/src/main/java/org/apache/commons/io/input/QueueInputStream.java @@ -71,9 +71,8 @@ public class QueueInputStream extends InputStream { * QueueInputStream s = QueueInputStream.builder() * .setBlockingQueue(new LinkedBlockingQueue<>()) * .setTimeout(Duration.ZERO) - * .get()} + * .get();} * </pre> - * <p> * * @since 2.12.0 */ diff --git a/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java b/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java index 88c4ef9d..0fb7849c 100644 --- a/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java +++ b/src/main/java/org/apache/commons/io/input/RandomAccessFileInputStream.java @@ -43,9 +43,9 @@ public class RandomAccessFileInputStream extends InputStream { * RandomAccessFileInputStream s = RandomAccessFileInputStream.builder() * .setPath(path) * .setCloseOnClose(true) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<RandomAccessFileInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java b/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java index 7966a1a1..f866312a 100644 --- a/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java +++ b/src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java @@ -57,9 +57,9 @@ public class ReadAheadInputStream extends FilterInputStream { * ReadAheadInputStream s = ReadAheadInputStream.builder() * .setPath(path) * .setExecutorService(Executors.newSingleThreadExecutor(ReadAheadInputStream::newThread)) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<ReadAheadInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/ReaderInputStream.java b/src/main/java/org/apache/commons/io/input/ReaderInputStream.java index 1be3fe15..63b7cf37 100644 --- a/src/main/java/org/apache/commons/io/input/ReaderInputStream.java +++ b/src/main/java/org/apache/commons/io/input/ReaderInputStream.java @@ -89,9 +89,9 @@ public class ReaderInputStream extends InputStream { * ReaderInputStream s = ReaderInputStream.builder() * .setPath(path) * .setCharsetEncoder(Charset.defaultCharset().newEncoder()) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<ReaderInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java b/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java index 5e646e77..52576f58 100644 --- a/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java +++ b/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java @@ -58,9 +58,9 @@ public class ReversedLinesFileReader implements Closeable { * .setPath(path) * .setBufferSize(4096) * .setCharset(StandardCharsets.UTF_8) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<ReversedLinesFileReader, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/Tailer.java b/src/main/java/org/apache/commons/io/input/Tailer.java index 5a251465..61331e3f 100644 --- a/src/main/java/org/apache/commons/io/input/Tailer.java +++ b/src/main/java/org/apache/commons/io/input/Tailer.java @@ -170,9 +170,9 @@ public class Tailer implements Runnable, AutoCloseable { * .setTailable(tailable) * .setTailerListener(tailerListener) * .setTailFromEnd(false) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<Tailer, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/UncheckedBufferedReader.java b/src/main/java/org/apache/commons/io/input/UncheckedBufferedReader.java index 4b765bb9..e7273c0b 100644 --- a/src/main/java/org/apache/commons/io/input/UncheckedBufferedReader.java +++ b/src/main/java/org/apache/commons/io/input/UncheckedBufferedReader.java @@ -49,7 +49,7 @@ public final class UncheckedBufferedReader extends BufferedReader { * .setFile(file) * .setBufferSize(8192) * .setCharset(Charset.defaultCharset()) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -59,7 +59,7 @@ public final class UncheckedBufferedReader extends BufferedReader { * .setPath(path) * .setBufferSize(8192) * .setCharset(Charset.defaultCharset()) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UncheckedBufferedReader, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/UncheckedFilterInputStream.java b/src/main/java/org/apache/commons/io/input/UncheckedFilterInputStream.java index 1aafc042..cd0e40f7 100644 --- a/src/main/java/org/apache/commons/io/input/UncheckedFilterInputStream.java +++ b/src/main/java/org/apache/commons/io/input/UncheckedFilterInputStream.java @@ -47,7 +47,7 @@ public final class UncheckedFilterInputStream extends FilterInputStream { * <pre>{@code * UncheckedFilterInputStream s = UncheckedFilterInputStream.builder() * .setFile(file) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -55,7 +55,7 @@ public final class UncheckedFilterInputStream extends FilterInputStream { * <pre>{@code * UncheckedFilterInputStream s = UncheckedFilterInputStream.builder() * .setPath(path) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UncheckedFilterInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java b/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java index 9d3e86f8..c252dde6 100644 --- a/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java +++ b/src/main/java/org/apache/commons/io/input/UncheckedFilterReader.java @@ -47,7 +47,7 @@ public final class UncheckedFilterReader extends FilterReader { * <pre>{@code * UncheckedFilterReader s = UncheckedFilterReader.builder() * .setFile(file) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -55,7 +55,7 @@ public final class UncheckedFilterReader extends FilterReader { * <pre>{@code * UncheckedFilterReader s = UncheckedFilterReader.builder() * .setPath(path) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UncheckedFilterReader, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java b/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java index fde86422..e6f3d525 100644 --- a/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java +++ b/src/main/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStream.java @@ -60,7 +60,7 @@ public final class UnsynchronizedBufferedInputStream extends UnsynchronizedFilte * UnsynchronizedBufferedInputStream s = UnsynchronizedBufferedInputStream.builder() * .setFile(file) * .setBufferSize(8192) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -69,7 +69,7 @@ public final class UnsynchronizedBufferedInputStream extends UnsynchronizedFilte * UnsynchronizedBufferedInputStream s = UnsynchronizedBufferedInputStream.builder() * .setPath(path) * .setBufferSize(8192) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UnsynchronizedBufferedInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java b/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java index 1fd3d81a..d3290468 100644 --- a/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java +++ b/src/main/java/org/apache/commons/io/input/UnsynchronizedByteArrayInputStream.java @@ -49,7 +49,7 @@ public class UnsynchronizedByteArrayInputStream extends InputStream { * .setByteArray(byteArray) * .setOffset(0) * .setLength(byteArray.length) - * .get()} + * .get();} * </pre> * <p> * Using File IO: @@ -60,7 +60,7 @@ public class UnsynchronizedByteArrayInputStream extends InputStream { * .setFile(file) * .setOffset(0) * .setLength(byteArray.length) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -71,7 +71,7 @@ public class UnsynchronizedByteArrayInputStream extends InputStream { * .setPath(path) * .setOffset(0) * .setLength(byteArray.length) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UnsynchronizedByteArrayInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/UnsynchronizedFilterInputStream.java b/src/main/java/org/apache/commons/io/input/UnsynchronizedFilterInputStream.java index e4530032..1f43ad18 100644 --- a/src/main/java/org/apache/commons/io/input/UnsynchronizedFilterInputStream.java +++ b/src/main/java/org/apache/commons/io/input/UnsynchronizedFilterInputStream.java @@ -51,7 +51,7 @@ public class UnsynchronizedFilterInputStream extends InputStream { * <pre>{@code * UnsynchronizedFilterInputStream s = UnsynchronizedFilterInputStream.builder() * .setFile(file) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -59,7 +59,7 @@ public class UnsynchronizedFilterInputStream extends InputStream { * <pre>{@code * UnsynchronizedFilterInputStream s = UnsynchronizedFilterInputStream.builder() * .setPath(path) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UnsynchronizedFilterInputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/input/XmlStreamReader.java b/src/main/java/org/apache/commons/io/input/XmlStreamReader.java index 74902e3d..1bf63dc2 100644 --- a/src/main/java/org/apache/commons/io/input/XmlStreamReader.java +++ b/src/main/java/org/apache/commons/io/input/XmlStreamReader.java @@ -107,9 +107,8 @@ public class XmlStreamReader extends Reader { * XmlStreamReader r = XmlStreamReader.builder() * .setPath(path) * .setCharset(StandardCharsets.UTF_8) - * .get()} + * .get();} * </pre> - * <p> * * @since 2.12.0 */ diff --git a/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java b/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java index 51406373..0be9b603 100644 --- a/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java +++ b/src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java @@ -55,7 +55,7 @@ public class DeferredFileOutputStream extends ThresholdingOutputStream { * .setPrefix(prefix) * .setSuffix(suffix) * .setThreshold(threshold) - * .get()} + * .get();} * </pre> * @since 2.12.0 */ diff --git a/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java b/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java index 73b0d747..7fffeb21 100644 --- a/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java +++ b/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java @@ -60,7 +60,7 @@ public class FileWriterWithEncoding extends ProxyWriter { * .setPath(path) * .setAppend(false) * .setCharsetEncoder(StandardCharsets.UTF_8.newEncoder()) - * .get()} + * .get();} * </pre> * <p> * Using a Charset: @@ -70,8 +70,9 @@ public class FileWriterWithEncoding extends ProxyWriter { * .setPath(path) * .setAppend(false) * .setCharsetEncoder(StandardCharsets.UTF_8) - * .get()} + * .get();} * </pre> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<FileWriterWithEncoding, Builder> { diff --git a/src/main/java/org/apache/commons/io/output/LockableFileWriter.java b/src/main/java/org/apache/commons/io/output/LockableFileWriter.java index 3ab9e0c8..5cbb70ee 100644 --- a/src/main/java/org/apache/commons/io/output/LockableFileWriter.java +++ b/src/main/java/org/apache/commons/io/output/LockableFileWriter.java @@ -60,9 +60,9 @@ public class LockableFileWriter extends Writer { * .setPath(path) * .setAppend(false) * .setLockDirectory("Some/Directory") - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<LockableFileWriter, Builder> { diff --git a/src/main/java/org/apache/commons/io/output/UncheckedFilterOutputStream.java b/src/main/java/org/apache/commons/io/output/UncheckedFilterOutputStream.java index 8ffa2b3b..02028d9a 100644 --- a/src/main/java/org/apache/commons/io/output/UncheckedFilterOutputStream.java +++ b/src/main/java/org/apache/commons/io/output/UncheckedFilterOutputStream.java @@ -46,7 +46,7 @@ public final class UncheckedFilterOutputStream extends FilterOutputStream { * <pre>{@code * UncheckedFilterOutputStream s = UncheckedFilterOutputStream.builder() * .setFile(file) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -54,7 +54,7 @@ public final class UncheckedFilterOutputStream extends FilterOutputStream { * <pre>{@code * UncheckedFilterOutputStream s = UncheckedFilterOutputStream.builder() * .setPath(path) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UncheckedFilterOutputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/output/UncheckedFilterWriter.java b/src/main/java/org/apache/commons/io/output/UncheckedFilterWriter.java index d05053b9..f4ad0d59 100644 --- a/src/main/java/org/apache/commons/io/output/UncheckedFilterWriter.java +++ b/src/main/java/org/apache/commons/io/output/UncheckedFilterWriter.java @@ -46,7 +46,7 @@ public final class UncheckedFilterWriter extends FilterWriter { * <pre>{@code * UncheckedFilterWriter s = UncheckedFilterWriter.builder() * .setFile(file) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -54,7 +54,7 @@ public final class UncheckedFilterWriter extends FilterWriter { * <pre>{@code * UncheckedFilterWriter s = UncheckedFilterWriter.builder() * .setPath(path) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UncheckedFilterWriter, Builder> { diff --git a/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java b/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java index a3aaad54..19bc3eef 100644 --- a/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java +++ b/src/main/java/org/apache/commons/io/output/UnsynchronizedByteArrayOutputStream.java @@ -44,7 +44,7 @@ public final class UnsynchronizedByteArrayOutputStream extends AbstractByteArray * <pre>{@code * UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder() * .setBufferSize(8192) - * .get()} + * .get();} * </pre> * <p> * Using NIO Path: @@ -52,7 +52,7 @@ public final class UnsynchronizedByteArrayOutputStream extends AbstractByteArray * <pre>{@code * UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder() * .setBufferSize(8192) - * .get()} + * .get();} * </pre> */ public static class Builder extends AbstractStreamBuilder<UnsynchronizedByteArrayOutputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/output/WriterOutputStream.java b/src/main/java/org/apache/commons/io/output/WriterOutputStream.java index 1a380ed8..ae38a278 100644 --- a/src/main/java/org/apache/commons/io/output/WriterOutputStream.java +++ b/src/main/java/org/apache/commons/io/output/WriterOutputStream.java @@ -86,9 +86,9 @@ public class WriterOutputStream extends OutputStream { * .setBufferSize(8192) * .setCharset(StandardCharsets.UTF_8) * .setWriteImmediately(false) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<WriterOutputStream, Builder> { diff --git a/src/main/java/org/apache/commons/io/output/XmlStreamWriter.java b/src/main/java/org/apache/commons/io/output/XmlStreamWriter.java index df5be5c9..4468bf47 100644 --- a/src/main/java/org/apache/commons/io/output/XmlStreamWriter.java +++ b/src/main/java/org/apache/commons/io/output/XmlStreamWriter.java @@ -55,9 +55,9 @@ public class XmlStreamWriter extends Writer { * WriterOutputStream w = WriterOutputStream.builder() * .setPath(path) * .setCharset(StandardCharsets.UTF_8) - * .get()} + * .get();} * </pre> - * <p> + * * @since 2.12.0 */ public static class Builder extends AbstractStreamBuilder<XmlStreamWriter, Builder> {