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

com.github.dockerjava.core.command.LoadImageCmdImpl Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
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