public BoxFile.Info getFileInfo(String fileID, String... fields) {
        String queryString = new QueryStringBuilder().appendParam("fields", fields).toString();
        URL url = FILE_INFO_URL_TEMPLATE.buildWithQuery(this.api.getBaseURL(), queryString, fileID);
        BoxAPIRequest request = new BoxAPIRequest(this.api, url, "GET");
        BoxJSONResponse response = (BoxJSONResponse) request.send();
        JsonObject jsonObject = JsonObject.readFrom(response.getJSON());

        BoxFile file = new BoxFile(this.api, jsonObject.get("id").asString());
        return file.new Info(response.getJSON());
    }
public BoxFile . Info getFileInfo ( String fileID , String ... fields ) { String queryString = new QueryStringBuilder ( ) . appendParam ( "fields" , fields ) . toString ( ) ; URL url = FILE_INFO_URL_TEMPLATE . buildWithQuery ( this . api . getBaseURL ( ) , queryString , fileID ) ; BoxAPIRequest request = new BoxAPIRequest ( this . api , url , "GET" ) ; BoxJSONResponse response = ( BoxJSONResponse ) request . send ( ) ; JsonObject jsonObject = JsonObject . readFrom ( response . getJSON ( ) ) ; BoxFile file = new BoxFile ( this . api , jsonObject . get ( "id" ) . asString ( ) ) ; return file . new Info ( response . getJSON ( ) ) ; }
Gets information about a trashed file that's limited to a list of specified fields.
@param  fileID the ID of the trashed file.
@param  fields the fields to retrieve.
@return        info about the trashed file containing only the specified fields.