From 4c7172b95442d499d061f8b5fa80b179e0240759 Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Tue, 25 Apr 2017 15:42:46 +0900 Subject: [PATCH] result set --- .../crawler/result/{ResultSet.java => OFResultSet.java} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename src/main/java/com/loafle/overflow/crawler/result/{ResultSet.java => OFResultSet.java} (75%) diff --git a/src/main/java/com/loafle/overflow/crawler/result/ResultSet.java b/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java similarity index 75% rename from src/main/java/com/loafle/overflow/crawler/result/ResultSet.java rename to src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java index ee706a2..5af5338 100644 --- a/src/main/java/com/loafle/overflow/crawler/result/ResultSet.java +++ b/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java @@ -2,17 +2,23 @@ package com.loafle.overflow.crawler.result; import com.loafle.overflow.crawler.config.Item; +import java.util.ArrayList; import java.util.List; import java.util.Map; /** * Created by root on 17. 4. 25. */ -public class ResultSet { +public class OFResultSet { Item item; List rows; + public OFResultSet(Item item) { + this.item = item; + this.rows = new ArrayList<>(); + } + public void addRow(String [] row) { rows.add(row); }