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

com.undefinedlabs.scope.deps.okio.Source 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.IOException;

public interface Source extends Closeable {
    /**
     * Removes at least 1, and up to {@code byteCount} bytes from this and appends
     * them to {@code sink}. Returns the number of bytes read, or -1 if this
     * source is exhausted.
     */
    long read(Buffer sink, long byteCount) throws IOException;

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

    /**
     * Closes this source and releases the resources held by this source. It is an
     * error to read a closed source. It is safe to close a source more than once.
     */
    @Override void close() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy