Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main;
- import java.util.ArrayList;
- import org.xml.sax.helpers.DefaultHandler;
- public class ParsedDataSet extends DefaultHandler {
- private static String contentOpfUrl = null;
- private static String tocURL = null;
- private static ArrayList<Content> toc = new ArrayList<Content>();
- public static String getContentOpfUrl() {
- return contentOpfUrl;
- }
- public static String getTocUrl() {
- return tocURL;
- }
- public static ArrayList<Content> getToc() {
- return toc;
- }
- public static void setContentOpfUrl(String rContentOpfUrl) {
- contentOpfUrl = rContentOpfUrl;
- }
- public static void setTocUrl(String rTocUrl) {
- tocURL = rTocUrl;
- }
- public static void setToc(ArrayList<Content> rToc) {
- toc = rToc;
- }
- public static int getTocSize() {
- return toc.size();
- }
- public static Content getLastContent() {
- return toc.get(toc.size() - 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement