Skip to content

Commit

Permalink
fixed javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sdstoehr committed Nov 13, 2024
1 parent 2c27095 commit c0e2af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/sstoehr/harreader/HarWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public HarWriter(MapperFactory mapperFactory) {
}

/**
* Serialize HAR as a byte array. It's functionally equivalent to calling {@link #writeTo(OutputStream)} with
* Serialize HAR as a byte array. It's functionally equivalent to calling {@link #writeTo(OutputStream, Har)} with
* {@link java.io.ByteArrayOutputStream} and getting bytes, but more efficient. Encoding used will be UTF-8.
* @return Serialized HAR as a byte array
* @throws IOException if a low-level I/O problem occurs
* @throws HarWriterException if a low-level I/O problem occurs
*/
public byte[] writeAsBytes(Har har) throws HarWriterException {
return wrap(m -> m.writeValueAsBytes(har));
Expand Down

0 comments on commit c0e2af1

Please sign in to comment.