// Path: Webkiosk/src/main/java/com/blackMonster/webkiosk/crawler/Model/CrawlerSubjectInfo.java
// public class CrawlerSubjectInfo extends SubjectAttendance {
// 
//     private String link;
// 
//     public String getLink() {
//         return link;
//     }
// 
//     public void setLink(String link) {
// 
//         if (link == null || link.equals(""))
//             link = null;
// 
//         this.link = link;
//     }
// }


import com.blackMonster.webkiosk.crawler.Model.CrawlerSubjectInfo;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import cz.msebera.android.httpclient.client.HttpClient;
package com.blackMonster.webkiosk.crawler;





/**
 * Fetches data from "My attendance".
 */
class SubjectAndStudentDetailsMain extends AbstractSubjectDetails {

    private String studentName;

    SubjectAndStudentDetailsMain(HttpClient siteConnection, String colg) throws Exception {
        super(siteConnection,colg);
    }

    @Override
    void sendGet(String url) throws Exception {
        super.sendGet(url);
        setName();

    }

    @Override
    void readRow(List<CrawlerSubjectInfo> list) throws Exception {
        String tmp;
        CrawlerSubjectInfo sub = new CrawlerSubjectInfo();

        CrawlerUtils.readSingleData(CrawlerUtils.pattern1, reader);
        tmp = CrawlerUtils.readSingleData(CrawlerUtils.pattern1, reader);
        int i = CrawlerUtils.lastDash(tmp);
        sub.setName(CrawlerUtils.titleCase((tmp.substring(0, i - 1)).trim()));

        sub.setSubCode("T" + (tmp.substring(i + 1)).trim());

        readLink_atnd(sub);

        list.add(sub);
    }

    @Override
    List<CrawlerSubjectInfo> fetchSubjectInfo() throws Exception {
        String tmp;
// Path: Webkiosk/src/main/java/com/blackMonster/webkiosk/crawler/Model/CrawlerSubjectInfo.java
// public class CrawlerSubjectInfo extends SubjectAttendance {
// 
//     private String link;
// 
//     public String getLink() {
//         return link;
//     }
// 
//     public void setLink(String link) {
// 
//         if (link == null || link.equals(""))
//             link = null;
// 
//         this.link = link;
//     }
// }


// Path: Webkiosk/src/main/java/com/blackMonster/webkiosk/crawler/SubjectAndStudentDetailsMain.java
import com.blackMonster.webkiosk.crawler.Model.CrawlerSubjectInfo;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import cz.msebera.android.httpclient.client.HttpClient;

package com.blackMonster.webkiosk.crawler;





/**
 * Fetches data from "My attendance".
 */
class SubjectAndStudentDetailsMain extends AbstractSubjectDetails {

    private String studentName;

    SubjectAndStudentDetailsMain(HttpClient siteConnection, String colg) throws Exception {
        super(siteConnection,colg);
    }

    @Override
    void sendGet(String url) throws Exception {
        super.sendGet(url);
        setName();

    }

    @Override
    void readRow(List<CrawlerSubjectInfo> list) throws Exception {
        String tmp;
        CrawlerSubjectInfo sub = new CrawlerSubjectInfo();

        CrawlerUtils.readSingleData(CrawlerUtils.pattern1, reader);
        tmp = CrawlerUtils.readSingleData(CrawlerUtils.pattern1, reader);
        int i = CrawlerUtils.lastDash(tmp);
        sub.setName(CrawlerUtils.titleCase((tmp.substring(0, i - 1)).trim()));

        sub.setSubCode("T" + (tmp.substring(i + 1)).trim());

        readLink_atnd(sub);

        list.add(sub);
    }

    @Override
    List<CrawlerSubjectInfo> fetchSubjectInfo() throws Exception {
        String tmp;
        List<CrawlerSubjectInfo> list = new ArrayList<CrawlerSubjectInfo>();