com.github.dockerjava.core.command.LoadImageCmdImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import static com.google.common.base.Preconditions.checkNotNull;
import java.io.InputStream;
import com.github.dockerjava.api.command.LoadImageCmd;
import javax.annotation.Nonnull;
public class LoadImageCmdImpl extends AbstrDockerCmd implements LoadImageCmd {
private InputStream imageStream;
/**
* @param imageStream
* the InputStream of the tar file
*/
public LoadImageCmdImpl(LoadImageCmd.Exec exec, InputStream imageStream) {
super(exec);
withImageStream(imageStream);
}
@Override
public InputStream getImageStream() {
return imageStream;
}
/**
* @param imageStream
* the InputStream of the tar file
*/
@Override
public LoadImageCmdImpl withImageStream(@Nonnull InputStream imageStream) {
checkNotNull(imageStream, "imageStream was not specified");
this.imageStream = imageStream;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy