Package org.apache.abdera.util

Examples of org.apache.abdera.util.WhiteListParseFilter


   
  }

  public void testWhiteListParseFilter() throws Exception {
   
    ParseFilter filter = new WhiteListParseFilter();
    filter.add(Constants.FEED);
    filter.add(Constants.ENTRY);
    filter.add(Constants.TITLE);
    filter.add(Constants.ID);
    ParserOptions options = Parser.INSTANCE.getDefaultParserOptions();
    options.setParseFilter(filter);
   
    URL url = FOMTest.class.getResource("/simple.xml");
    InputStream in = url.openStream();
View Full Code Here


      return;
    }

    ParserOptions opts = Parser.INSTANCE.getDefaultParserOptions();

    ParseFilter filter = new WhiteListParseFilter();
    filter.add(Constants.FEED);
    filter.add(Constants.ENTRY);
    filter.add(Constants.TITLE);
    opts.setParseFilter(filter);

    Document<Feed> doc;

    try {
View Full Code Here

TOP

Related Classes of org.apache.abdera.util.WhiteListParseFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.