Tabnine Logo
SerializerBase.fireCommentEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
fireCommentEvent
method
in
org.apache.xml.serializer.SerializerBase

Best Java code snippets using org.apache.xml.serializer.SerializerBase.fireCommentEvent (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: robovm/robovm

super.fireCommentEvent(ch, start_old,length);
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

public void comment(char ch[], int start, int length)
  throws org.xml.sax.SAXException
{
  if (m_tracer != null)
    super.fireCommentEvent(ch, start, length);
}
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

public void comment(char ch[], int start, int length)
  throws org.xml.sax.SAXException
{
  if (m_tracer != null)
    super.fireCommentEvent(ch, start, length);
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Report an XML comment anywhere in the document.
 *
 * This callback will be used for comments inside or outside the
 * document element, including comments in the external DTD
 * subset (if read).
 *
 * @param ch An array holding the characters in the comment.
 * @param start The starting position in the array.
 * @param length The number of characters to use from the array.
 * @throws org.xml.sax.SAXException The application may raise an exception.
 */
public void comment(char ch[], int start, int length)
    throws org.xml.sax.SAXException
{
 flushPending();
 if (m_tracer != null)
   super.fireCommentEvent(ch, start, length);
}
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * Report an XML comment anywhere in the document.
 *
 * This callback will be used for comments inside or outside the
 * document element, including comments in the external DTD
 * subset (if read).
 *
 * @param ch An array holding the characters in the comment.
 * @param start The starting position in the array.
 * @param length The number of characters to use from the array.
 * @throws org.xml.sax.SAXException The application may raise an exception.
 */
public void comment(char ch[], int start, int length)
    throws org.xml.sax.SAXException
{
 flushPending();
 if (m_tracer != null)
   super.fireCommentEvent(ch, start, length);
}
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
 */
public void comment(char[] arg0, int arg1, int arg2) throws SAXException
{
  flushPending();
  if (m_lexHandler != null)
    m_lexHandler.comment(arg0, arg1, arg2);
    
  if (m_tracer != null)            
    super.fireCommentEvent(arg0, arg1, arg2);
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
 */
public void comment(char[] arg0, int arg1, int arg2) throws SAXException
{
  flushPending();
  if (m_lexHandler != null)
    m_lexHandler.comment(arg0, arg1, arg2);
    
  if (m_tracer != null)            
    super.fireCommentEvent(arg0, arg1, arg2);
}
origin: xalan/serializer

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: MobiVM/robovm

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: FlexoVM/flexovm

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: ibinti/bugvm

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: org.apache.xalan/serializer

/**
 * Receive notification of a comment.
 *
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String comment) throws SAXException
{
  flushPending();
  // Ignore if a lexical handler has not been set
  if (m_lexHandler != null)
  {
    final int len = comment.length();
    if (len > m_charsBuff.length)
    {
      m_charsBuff = new char[len*2 + 1];              
    }
    comment.getChars(0,len, m_charsBuff, 0);            
    m_lexHandler.comment(m_charsBuff, 0, len);
    // time to fire off comment event
    if (m_tracer != null)
      super.fireCommentEvent(m_charsBuff, 0, len);
  }
}
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * Receive notification of a comment anywhere in the document. This callback
 * will be used for comments inside or outside the document element.
 * @param ch An array holding the characters in the comment.
 * @param start The starting position in the array.
 * @param length The number of characters to use from the array.
 * @throws org.xml.sax.SAXException The application may raise an exception.
 *
 * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
 */
public void comment(char[] ch, int start, int length) throws SAXException
{
  flushPending();
  if (m_lexHandler != null)
    m_lexHandler.comment(ch, start, length);
  // time to fire off comment event
  if (m_tracer != null)
    super.fireCommentEvent(ch, start, length);
  return;
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Receive notification of a comment anywhere in the document. This callback
 * will be used for comments inside or outside the document element.
 * @param ch An array holding the characters in the comment.
 * @param start The starting position in the array.
 * @param length The number of characters to use from the array.
 * @throws org.xml.sax.SAXException The application may raise an exception.
 *
 * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
 */
public void comment(char[] ch, int start, int length) throws SAXException
{
  flushPending();
  if (m_lexHandler != null)
    m_lexHandler.comment(ch, start, length);
  // time to fire off comment event
  if (m_tracer != null)
    super.fireCommentEvent(ch, start, length);
  return;
}
org.apache.xml.serializerSerializerBasefireCommentEvent

Javadoc

Report the comment trace event

Popular methods of SerializerBase

  • setTransformer
    Sets the transformer associated with this serializer
  • addAttributeAlways
    Adds the given attribute to the set of attributes, even if there is no currently open element. This
  • addAttributes
    Add the given attributes to the currently collected ones. These attributes are always added, regardl
  • addCDATAElement
  • characters
  • comment
  • endEntity
    Report the end of an entity.
  • error
  • fatalError
  • fireCDATAEvent
    Report the CDATA trace event
  • fireCharEvent
    Report the characters trace event
  • fireEndElem
    To fire off the end element trace event
  • fireCharEvent,
  • fireEndElem,
  • fireEndEntity,
  • fireEntityReference,
  • fireStartDoc,
  • fireStartElem,
  • flushMyWriter,
  • flushPending,
  • getElementURI

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Reference (javax.naming)
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 12 Jupyter Notebook extensions
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