MCPcopy
hub / github.com/google/brotli / close

Method close

java/org/brotli/wrapper/enc/Encoder.java:196–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 @Override
197 public void close() throws IOException {
198 if (closed) {
199 return;
200 }
201 closed = true;
202 try {
203 encode(EncoderJNI.Operation.FINISH);
204 } finally {
205 encoder.destroy();
206 destination.close();
207 }
208 }
209
210 /** Encodes the given data buffer. */
211 public static byte[] compress(byte[] data, int offset, int length, Parameters params)

Callers 9

failMethod · 0.95
suiteMethod · 0.45
runMethod · 0.45
suiteMethod · 0.45
runMethod · 0.45
suiteMethod · 0.45
runMethod · 0.45
suiteMethod · 0.45
runMethod · 0.45

Calls 2

encodeMethod · 0.95
destroyMethod · 0.45

Tested by 8

suiteMethod · 0.36
runMethod · 0.36
suiteMethod · 0.36
runMethod · 0.36
suiteMethod · 0.36
runMethod · 0.36
suiteMethod · 0.36
runMethod · 0.36