Tabnine Logo
TagAction
Code IndexAdd Tabnine to your IDE (free)

How to use
TagAction
in
de.l3s.boilerpipe.sax

Best Java code snippets using de.l3s.boilerpipe.sax.TagAction (Showing top 19 results out of 315)

origin: de.l3s.boilerpipe/boilerpipe

public boolean end(BoilerpipeHTMLContentHandler instance,
    String localName, String qName) throws SAXException {
  return t1.end(instance, localName, qName)
      | t2.end(instance, localName, qName);
}
origin: de.l3s.boilerpipe/boilerpipe

public boolean start(BoilerpipeHTMLContentHandler instance,
    String localName, String qName, Attributes atts)
    throws SAXException {
  return t1.start(instance, localName, qName, atts)
      | t2.start(instance, localName, qName, atts);
}
origin: com.syncthemall/boilerpipe

  public boolean changesTagLevel() {
    return t1.changesTagLevel() || t2.changesTagLevel();
  }
}
origin: Netbreeze-GmbH/boilerpipe

public void startElement(String uri, String localName, String qName,
    Attributes atts) throws SAXException {
  labelStacks.add(null);
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    if(ta.changesTagLevel()) {
      tagLevel++;
    }
    flush = ta.start(this, localName, qName, atts) | flush;
  } else {
    tagLevel++;
    flush = true;
  }
  lastEvent = Event.START_TAG;
  lastStartTag = localName;
}
origin: com.syncthemall/boilerpipe

public void endElement(String uri, String localName, String qName)
    throws SAXException {
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    flush = ta.end(this, localName, qName) | flush;
  } else {
    flush = true;
  }
  
  if(ta == null || ta.changesTagLevel()) {
    tagLevel--;
  }
  
  if (flush) {
    flushBlock();
  }
  lastEvent = Event.END_TAG;
  lastEndTag = localName;
  labelStacks.removeLast();
}
origin: com.syncthemall/boilerpipe

public void startElement(String uri, String localName, String qName,
    Attributes atts) throws SAXException {
  labelStacks.add(null);
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    if(ta.changesTagLevel()) {
      tagLevel++;
    }
    flush = ta.start(this, localName, qName, atts) | flush;
  } else {
    tagLevel++;
    flush = true;
  }
  lastEvent = Event.START_TAG;
  lastStartTag = localName;
}
origin: Netbreeze-GmbH/boilerpipe

public void endElement(String uri, String localName, String qName)
    throws SAXException {
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    flush = ta.end(this, localName, qName) | flush;
  } else {
    flush = true;
  }
  
  if(ta == null || ta.changesTagLevel()) {
    tagLevel--;
  }
  
  if (flush) {
    flushBlock();
  }
  lastEvent = Event.END_TAG;
  lastEndTag = localName;
  labelStacks.removeLast();
}
origin: pvdlg/boilerpipe

public void startElement(String uri, String localName, String qName,
    Attributes atts) throws SAXException {
  labelStacks.add(null);
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    if(ta.changesTagLevel()) {
      tagLevel++;
    }
    flush = ta.start(this, localName, qName, atts) | flush;
  } else {
    tagLevel++;
    flush = true;
  }
  lastEvent = Event.START_TAG;
  lastStartTag = localName;
}
origin: pvdlg/boilerpipe

public void endElement(String uri, String localName, String qName)
    throws SAXException {
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    flush = ta.end(this, localName, qName) | flush;
  } else {
    flush = true;
  }
  
  if(ta == null || ta.changesTagLevel()) {
    tagLevel--;
  }
  
  if (flush) {
    flushBlock();
  }
  lastEvent = Event.END_TAG;
  lastEndTag = localName;
  labelStacks.removeLast();
}
origin: com.syncthemall/boilerpipe

public boolean start(BoilerpipeHTMLContentHandler instance,
    String localName, String qName, Attributes atts)
    throws SAXException {
  return t1.start(instance, localName, qName, atts)
      | t2.start(instance, localName, qName, atts);
}
origin: com.syncthemall/boilerpipe

public boolean end(BoilerpipeHTMLContentHandler instance,
    String localName, String qName) throws SAXException {
  return t1.end(instance, localName, qName)
      | t2.end(instance, localName, qName);
}
origin: pvdlg/boilerpipe

  public boolean changesTagLevel() {
    return t1.changesTagLevel() || t2.changesTagLevel();
  }
}
origin: Netbreeze-GmbH/boilerpipe

public boolean start(BoilerpipeHTMLContentHandler instance,
    String localName, String qName, Attributes atts)
    throws SAXException {
  return t1.start(instance, localName, qName, atts)
      | t2.start(instance, localName, qName, atts);
}
origin: Netbreeze-GmbH/boilerpipe

public boolean end(BoilerpipeHTMLContentHandler instance,
    String localName, String qName) throws SAXException {
  return t1.end(instance, localName, qName)
      | t2.end(instance, localName, qName);
}
origin: Netbreeze-GmbH/boilerpipe

  public boolean changesTagLevel() {
    return t1.changesTagLevel() || t2.changesTagLevel();
  }
}
origin: pvdlg/boilerpipe

public boolean start(BoilerpipeHTMLContentHandler instance,
    String localName, String qName, Attributes atts)
    throws SAXException {
  return t1.start(instance, localName, qName, atts)
      | t2.start(instance, localName, qName, atts);
}
origin: pvdlg/boilerpipe

public boolean end(BoilerpipeHTMLContentHandler instance,
    String localName, String qName) throws SAXException {
  return t1.end(instance, localName, qName)
      | t2.end(instance, localName, qName);
}
origin: de.l3s.boilerpipe/boilerpipe

public void startElement(String uri, String localName, String qName,
    Attributes atts) throws SAXException {
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    flush = ta.start(this, localName, qName, atts) | flush;
  } else {
    flush = true;
  }
  lastEvent = Event.START_TAG;
  lastStartTag = localName;
}
origin: de.l3s.boilerpipe/boilerpipe

public void endElement(String uri, String localName, String qName)
    throws SAXException {
  TagAction ta = tagActions.get(localName);
  if (ta != null) {
    flush = ta.end(this, localName, qName) | flush;
  } else {
    flush = true;
  }
  lastEvent = Event.END_TAG;
  lastEndTag = localName;
}
de.l3s.boilerpipe.saxTagAction

Javadoc

Defines an action that is to be performed whenever a particular tag occurs during HTML parsing.

Most used methods

  • end
  • start
  • changesTagLevel

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Permission (java.security)
    Legacy security code; do not use.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JButton (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now