org.testcontainers.images.builder.Transferable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testcontainers Show documentation
Show all versions of testcontainers Show documentation
Isolated container management for Java code testing
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);
}