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

org.testcontainers.images.builder.Transferable Maven / Gradle / Ivy

There is a newer version: 1.20.1
Show newest version
package org.testcontainers.images.builder;

import java.io.OutputStream;

public interface Transferable {

    int DEFAULT_FILE_MODE = 0100644;

    /**
     * Get file mode. Default is 0100644.
     * @see Transferable#DEFAULT_FILE_MODE
     *
     * @return file mode
     */
    default int getFileMode() {
        return DEFAULT_FILE_MODE;
    }

    /**
     * Size of an object.
     *
     * @return size in bytes
     */
    long getSize();

    /**
     * transfer content of this Transferable to the output stream. Must not close the stream.
     *
     * @param outputStream stream to output
     */
    void transferTo(OutputStream outputStream);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy