MCPcopy
hub / github.com/kevin-wayne/algs4 / flush

Method flush

src/main/java/edu/princeton/cs/algs4/BinaryOut.java:164–172  ·  view source on GitHub ↗

Flushes the binary output stream, padding 0s if number of bits written so far is not a multiple of 8.

()

Source from the content-addressed store, hash-verified

162 * is not a multiple of 8.
163 */
164 public void flush() {
165 clearBuffer();
166 try {
167 out.flush();
168 }
169 catch (IOException e) {
170 e.printStackTrace();
171 }
172 }
173
174 /**
175 * Flushes and closes the binary output stream.

Callers 7

mainMethod · 0.95
closeMethod · 0.95
mainMethod · 0.95
printMethod · 0.45
printfMethod · 0.45
printMethod · 0.45
printfMethod · 0.45

Calls 1

clearBufferMethod · 0.95

Tested by

no test coverage detected