org.htmlparser.Tag.breaksFlow()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.htmlparser.Tag.breaksFlow()方法的一些代码示例,展示了Tag.breaksFlow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.breaksFlow()方法的具体详情如下:
包路径:org.htmlparser.Tag
类名称:Tag
方法名:breaksFlow

Tag.breaksFlow介绍

[英]Determines if the given tag breaks the flow of text.
[中]确定给定标记是否中断文本流。

代码示例

代码示例来源:origin: com.bbossgroups.pdp/pdp-cms

/**
 * @see org.htmlparser.Tag#breaksFlow()
 */
public boolean breaksFlow() {
  return m_decorated.breaksFlow();
}

代码示例来源:origin: org.opencms/opencms-solr

/**
 * @see org.htmlparser.Tag#breaksFlow()
 */
public boolean breaksFlow() {
  return m_decorated.breaksFlow();
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * @see org.htmlparser.Tag#breaksFlow()
 */
public boolean breaksFlow() {
  return m_decorated.breaksFlow();
}

代码示例来源:origin: org.htmlparser/htmlparser

/**
 * Appends a NEWLINE to the output if the tag breaks flow, and
 * possibly sets the state of the PRE and SCRIPT flags.
 * @param tag The tag to examine.
 */
public void visitTag (Tag tag)
{
  String name;
  if (tag instanceof LinkTag)
    if (getLinks ())
    { // appends the link as text between angle brackets to the output.
      mBuffer.append ("<");
      mBuffer.append (((LinkTag)tag).getLink ());
      mBuffer.append (">");
    }
  name = tag.getTagName ();
  if (name.equalsIgnoreCase ("PRE"))
    mIsPre = true;
  else if (name.equalsIgnoreCase ("SCRIPT"))
    mIsScript = true;
  else if (name.equalsIgnoreCase ("STYLE"))
    mIsStyle = true;
  if (tag.breaksFlow ())
    carriageReturn ();
}

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

/**
 * Appends a NEWLINE to the output if the tag breaks flow, and
 * possibly sets the state of the PRE and SCRIPT flags.
 * @param tag The tag to examine.
 */
public void visitTag (Tag tag)
{
  String name;
  if (tag instanceof LinkTag)
    if (getLinks ())
    { // appends the link as text between angle brackets to the output.
      mBuffer.append ("<");
      mBuffer.append (((LinkTag)tag).getLink ());
      mBuffer.append (">");
    }
  name = tag.getTagName ();
  if (name.equalsIgnoreCase ("PRE"))
    mIsPre = true;
  else if (name.equalsIgnoreCase ("SCRIPT"))
    mIsScript = true;
  else if (name.equalsIgnoreCase ("STYLE"))
    mIsStyle = true;
  if (tag.breaksFlow ())
    carriageReturn ();
}

相关文章