org.xml.sax.helpers.XMLFilterImpl.characters()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(159)

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

XMLFilterImpl.characters介绍

[英]Filter a character data event.
[中]过滤字符数据事件。

代码示例

代码示例来源:origin: igniterealtime/Openfire

lastOutputNodeType = Node.TEXT_NODE;
super.characters(ch, start, length);

代码示例来源:origin: com.sun.xml.bind/jaxb-impl

/**
 * Write character data.
 *
 * Pass the event on down the filter chain for further processing.
 *
 * @param ch The array of characters to write.
 * @param start The starting position in the array.
 * @param len The number of characters to write.
 * @exception org.xml.sax.SAXException If there is an error
 *            writing the characters, or if a handler further down
 *            the filter chain raises an exception.
 * @see org.xml.sax.ContentHandler#characters(char[], int, int)
 */
public void characters (char ch[], int start, int len)
  throws SAXException
{
  try {
    if (!startTagIsClosed) {
      write('>');
      startTagIsClosed = true;
    }
    writeEsc(ch, start, len, false);
    super.characters(ch, start, len);
  } catch( IOException e ) {
    throw new SAXException(e);
  }
}

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

/**
 * <i>[SAX ContentHandler interface support]</i> Receives
 * notification of character data.
 */
@Override
public void characters(char ch[], int start, int length)
    throws SAXException {
  this.ensureInitialization();
  super.characters(ch, start, length);
}

代码示例来源:origin: org.glassfish.jaxb/jaxb-runtime

/**
 * Write character data.
 *
 * Pass the event on down the filter chain for further processing.
 *
 * @param ch The array of characters to write.
 * @param start The starting position in the array.
 * @param len The number of characters to write.
 * @exception org.xml.sax.SAXException If there is an error
 *            writing the characters, or if a handler further down
 *            the filter chain raises an exception.
 * @see org.xml.sax.ContentHandler#characters(char[], int, int)
 */
public void characters (char ch[], int start, int len)
  throws SAXException
{
  try {
    if (!startTagIsClosed) {
      write('>');
      startTagIsClosed = true;
    }
    writeEsc(ch, start, len, false);
    super.characters(ch, start, len);
  } catch( IOException e ) {
    throw new SAXException(e);
  }
}

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

lastOutputNodeType = Node.TEXT_NODE;
  super.characters(ch, start, length);
} catch (IOException e) {
  handleException(e);

代码示例来源:origin: info.magnolia/magnolia-core

@Override
public void characters(char[] ch, int start, int length)
    throws SAXException {
  if (!skipping) {
    super.characters(ch, start, length);
  }
}

代码示例来源:origin: info.magnolia/magnolia-core

/**
 * @see org.xml.sax.helpers.XMLFilterImpl#characters(char[], int, int)
 */
@Override
public void characters(char[] ch, int start, int length) throws SAXException {
  // filter content
  if (inVersionElement == 0) {
    super.characters(ch, start, length);
  }
}

代码示例来源:origin: info.magnolia/magnolia-core

@Override
public void characters(char[] ch, int start, int length) throws SAXException {
  if (!skipProperty) {
    super.characters(ch, start, length);
  }
}

代码示例来源:origin: com.sun.xml.ws/rt

@Override
public void characters(char ch[], int start, int length) throws SAXException {
  if (!inAddress) {
    super.characters(ch, start, length);
  }
}

代码示例来源:origin: javaee/metro-jax-ws

@Override
public void characters(char ch[], int start, int length) throws SAXException {
  if (!inAddress) {
    super.characters(ch, start, length);
  }
}

代码示例来源:origin: net.sf.practicalxml/practicalxml

@Override
public void characters(char[] ch, int start, int length)
throws SAXException
{
  _filter.characters(ch, start, length);
}

代码示例来源:origin: sun-jaxb/jaxb-xjc

public void characters(char ch[], int start, int length) throws SAXException {
  if(side!=null)
    side.characters(ch, start, length);
  super.characters(ch, start, length);
}

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

public void characters(char ch[], int start, int length) throws SAXException {
  if(side!=null)
    side.characters(ch, start, length);
  super.characters(ch, start, length);
}

代码示例来源:origin: org.jasig.portal/uportal3-impl

/**
 * If in a sequence element buffer the character data.
 * 
 * @see org.xml.sax.ContentHandler#characters(char[], int, int)
 */
public void characters(char[] ch, int start, int length) throws SAXException {
  if (this.chars != null)
    this.chars.append(ch, start, length);
  else
    super.characters(ch, start, length);
}

代码示例来源:origin: org.jasig.portal/uportal3-impl

/**
 * If in a "type" element buffer the character data.
 * 
 * @see org.xml.sax.ContentHandler#characters(char[], int, int)
 */
public void characters(char[] ch, int start, int length) throws SAXException {
  if (this.typeMapping != null && this.chars != null)
    this.chars.append(ch, start, length);
  else
    super.characters(ch, start, length);
}

代码示例来源:origin: org.glassfish.metro/webservices-tools

@Override
public void characters(char ch[], int start, int length) throws SAXException {
  if(side!=null)
    side.characters(ch, start, length);
  super.characters(ch, start, length);
}

代码示例来源:origin: org.jasig.portal/uportal3-impl

/**
 * If in a sequence element buffer the character data.
 * 
 * @see org.xml.sax.ContentHandler#characters(char[], int, int)
 */
public void characters(char[] ch, int start, int length) throws SAXException {
  if (this.chars != null)
    this.chars.append(ch, start, length);
  else
    super.characters(ch, start, length);
}

代码示例来源:origin: info.magnolia/magnolia-core

@Override
public void characters(char[] ch, int start, int length) throws SAXException {
  if (inValue) {
    if (value == null) {
      value = new String(ch, start, length);
    } else {
      value += new String(ch, start, length);
    }
  } else {
    super.characters(ch, start, length);
  }
}

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

@Override
  public void endElement(String uri, String localName, String qName) throws SAXException {
    if (inAddress) {
      super.characters(newAddress.toCharArray(),0,newAddress.length());
    }
    inAddress = false;
    super.endElement(uri, localName, qName);
  }
};

代码示例来源:origin: org.jdom/jdom-legacy

/**
 * <i>[SAX ContentHandler interface support]</i> Receives
 * notification of character data.
 */
public void characters(char ch[], int start, int length)
                          throws SAXException {
 this.ensureInitialization();
 super.characters(ch, start, length);
}

相关文章

微信公众号

最新文章

更多