Skip to content

Commit b05fb5f

Browse files
author
Artem Labazin
committed
Add wrapper constructor for BytesOpenStream
1 parent 6de7a48 commit b05fb5f

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
- Add more tests.
1313
- Add `JavaDoc`.
1414

15+
## [1.17.1](https://github.com/appulse-projects/utils-java/releases/tag/1.17.1) - 2019-12-09
16+
17+
### Changed
18+
19+
- Added a new wrapper constructor for `BytesOutputStream`.
20+
1521
## [1.17.0](https://github.com/appulse-projects/utils-java/releases/tag/1.17.0) - 2019-12-09
1622

1723
### Added

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ limitations under the License.
2424

2525
<groupId>io.appulse</groupId>
2626
<artifactId>utils-java</artifactId>
27-
<version>1.17.0</version>
27+
<version>1.17.1</version>
2828
<packaging>jar</packaging>
2929

3030
<properties>
@@ -66,7 +66,7 @@ limitations under the License.
6666
<url>https://github.com/appulse-projects/utils-java</url>
6767
<connection>scm:git:https://github.com/appulse-projects/utils-java.git</connection>
6868
<developerConnection>scm:git:https://github.com/appulse-projects/utils-java.git</developerConnection>
69-
<tag>1.17.0</tag>
69+
<tag>1.17.1</tag>
7070
</scm>
7171

7272
<distributionManagement>

src/main/java/io/appulse/utils/BytesOutputStream.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ public BytesOutputStream (int size) {
6565
buffer = Bytes.resizableArray(size);
6666
}
6767

68+
/**
69+
* The constructor wraps already existent {@link Bytes}.
70+
*
71+
* @param bytes the bytes buffer to wraps.
72+
*/
73+
public BytesOutputStream (Bytes bytes) {
74+
super();
75+
buffer = bytes;
76+
}
77+
6878
@Override
6979
public synchronized void write (int value) throws IOException {
7080
buffer.write1B(value);

src/main/java/io/appulse/utils/threads/AppulseExecutors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import io.appulse.utils.threads.executor.builder.ScheduledExecutorServiceBuilder;
2929

3030
/**
31-
* The {@link ExecutorService} implementation with fancy builder.
31+
* The {@link java.util.concurrent.ExecutorService} implementation with fancy builder.
3232
*
3333
* @since 1.5.0
3434
* @author Artem Labazin

0 commit comments

Comments
 (0)