| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package org.sourceforge.xradar.results; |
| 5 | |
| 6 | import java.io.InputStream; |
| 7 | |
| 8 | /** |
| 9 | * <p>For now, this class is just a wrapper for the query (a simple String). If more |
| 10 | * data was to become necessary, it will ensure the stability of the API...</p> |
| 11 | * |
| 12 | * @author Romain PELISSE <belaran@gmail.com> |
| 13 | * |
| 14 | */ |
| 15 | public class QueryData { |
| 16 | |
| 17 | private String query; |
| 18 | private InputStream resultsData; |
| 19 | |
| 20 | public QueryData(String type,InputStream data) { |
| 21 | this.query = type; |
| 22 | this.resultsData = data; |
| 23 | } |
| 24 | |
| 25 | public InputStream getResultsData() { |
| 26 | return resultsData; |
| 27 | } |
| 28 | |
| 29 | public void setResultsData(InputStream resultsData) { |
| 30 | this.resultsData = resultsData; |
| 31 | } |
| 32 | |
| 33 | |
| 34 | |
| 35 | public String getQuery() { |
| 36 | return query; |
| 37 | } |
| 38 | |
| 39 | public void setQuery(String query) { |
| 40 | this.query = query; |
| 41 | } |
| 42 | } |