/*
- * Copyright 2014-present Open Networking Foundation
+ * Copyright 2014-2022 Open Networking Foundation and others. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Exposes protected byte array length in {@link ByteArrayOutputStream}.
*/
final class BufferAwareByteArrayOutputStream extends ByteArrayOutputStream {
+ BufferAwareByteArrayOutputStream(final int size) {
+ super(size);
+ }
- BufferAwareByteArrayOutputStream(int size) {
- super(size);
- }
-
- int getBufferSize() {
- return buf.length;
- }
+ int getBufferSize() {
+ return buf.length;
+ }
}