Class SmartContentSelector

  • All Implemented Interfaces:
    Selector

    public class SmartContentSelector
    extends java.lang.Object
    implements Selector
    Borrowed from https://code.google.com/p/cx-extractor/
    Since:
    0.4.1
    Author:
    code4crafter@gmail.com
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String select​(java.lang.String html)
      Extract single result in text.
      If there are more than one result, only the first will be chosen.
      java.util.List<java.lang.String> selectList​(java.lang.String text)
      Extract all results in text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SmartContentSelector

        public SmartContentSelector()
    • Method Detail

      • select

        public java.lang.String select​(java.lang.String html)
        Description copied from interface: Selector
        Extract single result in text.
        If there are more than one result, only the first will be chosen.
        Specified by:
        select in interface Selector
        Parameters:
        html - text
        Returns:
        result
      • selectList

        public java.util.List<java.lang.String> selectList​(java.lang.String text)
        Description copied from interface: Selector
        Extract all results in text.
        Specified by:
        selectList in interface Selector
        Parameters:
        text - text
        Returns:
        results