All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.undefinedlabs.scope.deps.okio.Sink Maven / Gradle / Ivy

Go to download

Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly identify, troubleshoot and fix failed builds. This artifact contains dependencies for Scope.

There is a newer version: 0.14.0-beta.2
Show newest version
package com.undefinedlabs.scope.deps.okio;

import java.io.Closeable;
import java.io.Flushable;
import java.io.IOException;

public interface Sink extends Closeable, Flushable {
    /** Removes {@code byteCount} bytes from {@code source} and appends them to this. */
    void write(Buffer source, long byteCount) throws IOException;

    /** Pushes all buffered bytes to their final destination. */
    @Override void flush() throws IOException;

    /** Returns the timeout for this sink. */
    Timeout timeout();

    /**
     * Pushes all buffered bytes to their final destination and releases the
     * resources held by this sink. It is an error to write a closed sink. It is
     * safe to close a sink more than once.
     */
    @Override void close() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy