Example usage for org.jsoup.nodes Comment Comment

List of usage examples for org.jsoup.nodes Comment Comment

Introduction

In this page you can find the example usage for org.jsoup.nodes Comment Comment.

Prototype

public Comment(String data) 

Source Link

Document

Create a new comment node.

Usage

From source file:org.sostruct.Answer.java

void setComments(JSONArray commentArray) {
    Comment thisComment = null;//from ww  w. j a v a  2s  . co  m

    for (int i = 0; i < commentArray.length(); i++) {
        JSONObject jsonCommentObj = commentArray.getJSONObject(i);
        thisComment = new Comment(jsonCommentObj);
        comments.add(thisComment);
    }
}