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

com.smartling.api.files.v2.resteasy.ext.TranslatedFileMultipart Maven / Gradle / Ivy

The newest version!
package com.smartling.api.files.v2.resteasy.ext;

import lombok.Getter;
import org.apache.commons.io.IOUtils;
import org.jboss.resteasy.plugins.providers.multipart.MultipartInput;

import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import java.io.InputStream;

public class TranslatedFileMultipart
{
    @Getter
    InputStream fileBody;
    @Getter
    MultivaluedMap fileHeaders;
    @Getter
    MediaType fileMediaType;
    @Getter
    TranslatedFileMetadata translatedFileMetadata;
    MultipartInput multipartInput;

    public void close()
    {
        IOUtils.closeQuietly(fileBody);
        if (null != multipartInput)
            multipartInput.close();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy