aboutsummaryrefslogtreecommitdiff
path: root/java/org/brotli/wrapper/enc/BrotliOutputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/org/brotli/wrapper/enc/BrotliOutputStream.java')
-rw-r--r--java/org/brotli/wrapper/enc/BrotliOutputStream.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/org/brotli/wrapper/enc/BrotliOutputStream.java b/java/org/brotli/wrapper/enc/BrotliOutputStream.java
index 5bd3957..09cbd5a 100644
--- a/java/org/brotli/wrapper/enc/BrotliOutputStream.java
+++ b/java/org/brotli/wrapper/enc/BrotliOutputStream.java
@@ -6,6 +6,7 @@
package org.brotli.wrapper.enc;
+import org.brotli.enc.PreparedDictionary;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.channels.Channels;
@@ -40,6 +41,10 @@ public class BrotliOutputStream extends OutputStream {
this(destination, new Encoder.Parameters());
}
+ public void attachDictionary(PreparedDictionary dictionary) throws IOException {
+ encoder.attachDictionary(dictionary);
+ }
+
@Override
public void close() throws IOException {
encoder.close();