- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 261 for Flush (0.35 sec)
-
guava-tests/test/com/google/common/io/FlushablesTest.java
.when(mockFlushable) .flush(); } } // Flush the flushable using the Flushables, passing in the swallowException // parameter. expectThrown determines whether we expect an exception to // be thrown by Flushables.flush; private void doFlush(Flushable flushable, boolean swallowException, boolean expectThrown) throws IOException { try { Flushables.flush(flushable, swallowException);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestCharSink.java
public Writer openStream() throws IOException { // using TestByteSink's output stream to get option behavior, so flush to it on every write return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) { @Override public void write(int c) throws IOException { super.write(c); flush(); } @Override public void write(char[] cbuf, int off, int len) throws IOException {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Fri Nov 09 21:39:24 GMT 2012 - 2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/DuplexTest.kt
requestBody.flush() val responseBody = response.body.source() assertThat(responseBody.readUtf8Line()) .isEqualTo("response B") requestBody.writeUtf8("request C\n") requestBody.flush() assertThat(responseBody.readUtf8Line()) .isEqualTo("response D") requestBody.writeUtf8("request E\n") requestBody.flush()
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 23.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/OutputStreamUtil.java
throw new IORuntimeException(e); } } /** * {@link OutputStream}をflushします。 * * @param out * 出力ストリーム */ public static void flush(final OutputStream out) { if (out == null) { return; } try { out.flush(); } catch (final IOException e) { throw new IORuntimeException(e); } }
Java - Registered: Fri Apr 19 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestWriter.java
super.write(c); flush(); // flush write to TestOutputStream to get its behavior } @Override public void write(char[] cbuf, int off, int len) throws IOException { super.write(cbuf, off, len); flush(); } @Override public void write(String str, int off, int len) throws IOException { super.write(str, off, len); flush(); } public boolean closed() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FlushablesTest.java
.when(mockFlushable) .flush(); } } // Flush the flushable using the Flushables, passing in the swallowException // parameter. expectThrown determines whether we expect an exception to // be thrown by Flushables.flush; private void doFlush(Flushable flushable, boolean swallowException, boolean expectThrown) throws IOException { try { Flushables.flush(flushable, swallowException);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.3K bytes - Viewed (0) -
cmd/listen-notification-handlers.go
if err != nil { return } if len(mergeCh) == 0 { // Flush if nothing is queued w.(http.Flusher).Flush() } grid.PutByteBuffer(ev) case <-emptyEventTicker: if err := enc.Encode(struct{ Records []event.Event }{}); err != nil { return } w.(http.Flusher).Flush() case <-keepAliveTicker: if _, err := w.Write([]byte(" ")); err != nil { return }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
if (byteCount > length) writeContinuationFrames(streamId, byteCount - length) } @Synchronized @Throws(IOException::class) fun flush() { if (closed) throw IOException("closed") sink.flush() } @Synchronized @Throws(IOException::class) fun rstStream( streamId: Int, errorCode: ErrorCode, ) { if (closed) throw IOException("closed")
Plain Text - Registered: Fri Apr 19 11:42:09 GMT 2024 - Last Modified: Wed Apr 17 05:15:48 GMT 2024 - 10.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Flushables.java
* method * @throws IOException if {@code swallowIOException} is false and {@link Flushable#flush} throws * an {@code IOException}. * @see Closeables#close */ public static void flush(Flushable flushable, boolean swallowIOException) throws IOException { try { flushable.flush(); } catch (IOException e) { if (swallowIOException) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 2.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestWriter.java
super.write(c); flush(); // flush write to TestOutputStream to get its behavior } @Override public void write(char[] cbuf, int off, int len) throws IOException { super.write(cbuf, off, len); flush(); } @Override public void write(String str, int off, int len) throws IOException { super.write(str, off, len); flush(); } public boolean closed() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.7K bytes - Viewed (0)