Home | History | Annotate | Download | only in okio

Lines Matching defs:out

62   /** Returns a sink that writes to {@code out}. */
63 public static Sink sink(OutputStream out) {
64 return sink(out, new Timeout());
67 private static Sink sink(final OutputStream out, final Timeout timeout) {
68 if (out == null) throw new IllegalArgumentException("out == null");
78 out.write(head.data, head.pos, toCopy);
92 out.flush();
96 out.close();
104 return "sink(" + out + ")";
112 * write times out, the socket is asynchronously closed by a watchdog thread.
202 * read times out, the socket is asynchronously closed by a watchdog thread.
225 logger.log(Level.WARNING, "Failed to close timed out socket " + socket, e);
230 logger.log(Level.WARNING, "Failed to close timed out socket " + socket, e);