![JAR search and dependency download from the Maven repository](/logo.png)
org.openstack4j.model.common.Payload Maven / Gradle / Ivy
package org.openstack4j.model.common;
import java.io.Closeable;
import java.io.InputStream;
/**
* Payload holds a reference to a Payload Object whether it be a file, inputstream or other and provides an input stream when uploading data to OpenStack.
*
* @param the type of payload object
* @author Jeremy Unruh
*/
public interface Payload extends Closeable {
/**
* Opens and returns the input stream.
*
* @return the input stream
*/
InputStream open();
/**
* Closes the stream and releases state.
*/
void closeQuietly();
/**
* Gets the raw underlying object for the Payload.
*
* @return the raw object
*/
T getRaw();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy