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

com.box.boxjavalibv2.responseparsers.ThumbnailResponseParser Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package com.box.boxjavalibv2.responseparsers;

import java.io.InputStream;

import com.box.boxjavalibv2.dao.BoxThumbnail;
import com.box.restclientv2.exceptions.BoxRestException;
import com.box.restclientv2.responseparsers.DefaultFileResponseParser;
import com.box.restclientv2.responses.IBoxResponse;

public class ThumbnailResponseParser extends DefaultFileResponseParser {

    @Override
    public BoxThumbnail parse(IBoxResponse response) throws BoxRestException {
        BoxThumbnail obj = new BoxThumbnail();
        obj.setContent((InputStream) super.parse(response));
        obj.setContentLength(response.getContentLength());
        return obj;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy