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

eu.xenit.apix.data.ContentInputStream Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package eu.xenit.apix.data;

import java.io.InputStream;
import java.util.Locale;

/**
 * Created by Giovanni on 06/09/16.
 */
public class ContentInputStream {

    private InputStream inputStream;
    private String mimetype;
    private long size;
    private String encoding;
    private Locale locale;


    public ContentInputStream(InputStream inputStream, String mimetype, long size, String encoding, Locale locale) {
        this.inputStream = inputStream;
        this.mimetype = mimetype;
        this.size = size;
        this.encoding = encoding;
        this.locale = locale;
    }

    /**
     * @return The Java.io InputStream.
     */
    public InputStream getInputStream() {
        return inputStream;
    }

    /**
     * @return The mimetype of the content.
     */
    public String getMimetype() {
        return mimetype;
    }

    /**
     * @return The size of the content.
     */
    public long getSize() {
        return size;
    }

    /**
     * @return The encoding of the content.
     */
    public String getEncoding() {
        return encoding;
    }

    /**
     * @return The locale of the content.
     */
    public Locale getLocale() {
        return locale;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy