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

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

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

origin: robovm/robovm

/**
 * @see SerializationHandler#setTransformer(Transformer)
 */
public void setTransformer(Transformer transformer) {
  super.setTransformer(transformer);
  if (m_tracer != null
   && !(m_writer instanceof SerializerTraceWriter)  )
    setWriterInternal(new SerializerTraceWriter(m_writer, m_tracer), false);        
  
  
}
/**
origin: robovm/robovm

/**
 *  Adds  the given attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name
 * @param value the value of the attribute
 */
public void addAttribute(String name, final String value)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    final String uri = getNamespaceURI(patchedName, false);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, false);
   }
}    
origin: robovm/robovm

      if (!foundURI)
        uri = "";
      addCDATAElement(uri,localName);
      buf.setLength(0);
      foundURI = false;
if (!foundURI)
  uri = "";
addCDATAElement(uri,localName);
origin: robovm/robovm

/**
 * Entity reference event.
 *
 * @param name Name of entity
 *
 * @throws org.xml.sax.SAXException
 */
public void entityReference(String name) throws org.xml.sax.SAXException
{
  flushPending();
  startEntity(name);
  endEntity(name);
  if (m_tracer != null)
    fireEntityReference(name);
}
origin: robovm/robovm

/**
 * Adds the given xsl:attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name (prefix:localName)
 * @param value the value of the attribute
 * @param uri the URI that the prefix of the name points to
 */
public void addXSLAttribute(String name, final String value, final String uri)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, true);
   }
} 
origin: robovm/robovm

/**
 * This method gets the nodes value as a String and uses that String as if
 * it were an input character notification.
 * @param node the Node to serialize
 * @throws org.xml.sax.SAXException
 */
public void characters(org.w3c.dom.Node node)
  throws org.xml.sax.SAXException
{
  flushPending();
  String data = node.getNodeValue();
  if (data != null)
  {
    final int length = data.length();
    if (length > m_charsBuff.length)
    {
      m_charsBuff = new char[length * 2 + 1];
    }
    data.getChars(0, length, m_charsBuff, 0);
    characters(m_charsBuff, 0, length);
  }
}

origin: robovm/robovm

/**
 * @see org.xml.sax.ErrorHandler#fatalError(SAXParseException)
 */
public void fatalError(SAXParseException exc) throws SAXException {
  super.fatalError(exc);
  
  m_needToCallStartDocument = false;
  
  if (m_saxHandler instanceof ErrorHandler) {
    ((ErrorHandler)m_saxHandler).fatalError(exc);            
  }
}
origin: robovm/robovm

/**
 * @see org.xml.sax.ErrorHandler#error(SAXParseException)
 */
public void error(SAXParseException exc) throws SAXException {
  super.error(exc);
  
  if (m_saxHandler instanceof ErrorHandler)
    ((ErrorHandler)m_saxHandler).error(exc);        
  
}
origin: robovm/robovm

/**
 * Receive notification of a comment.
 * 
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String data) throws SAXException
{
  m_docIsEmpty = false;
  
  final int length = data.length();
  if (length > m_charsBuff.length)
  {
    m_charsBuff = new char[length * 2 + 1];
  }
  data.getChars(0, length, m_charsBuff, 0);
  comment(m_charsBuff, 0, length);
}
origin: robovm/robovm

super.fireCDATAEvent(ch, old_start, length);
origin: robovm/robovm

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: robovm/robovm

super.addAttributes(atts);
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

   String doctypeSystem = getDoctypeSystem();
   if (doctypeSystem != null && m_lexHandler != null)
     String doctypePublic = getDoctypePublic();
     if (doctypeSystem != null)
       m_lexHandler.startDTD(
  addAttributes(atts);
m_elemContext.m_isCdataSection = isCdataSection();
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Receive notification of character data.
 *
 * @param characters The string of characters to process.
 *
 * @throws org.xml.sax.SAXException
 *
 * @see ExtendedContentHandler#characters(String)
 */
public void characters(String characters) throws SAXException
{
  final int len = characters.length();
  if (len > m_charsBuff.length)
  {
    m_charsBuff = new char[len*2 + 1];             
  }
  characters.getChars(0,len, m_charsBuff, 0);   
  characters(m_charsBuff, 0, len);
}
origin: MobiVM/robovm

/**
 * Entity reference event.
 *
 * @param name Name of entity
 *
 * @throws org.xml.sax.SAXException
 */
public void entityReference(String name) throws org.xml.sax.SAXException
{
  flushPending();
  startEntity(name);
  endEntity(name);
  if (m_tracer != null)
    fireEntityReference(name);
}
origin: xalan/serializer

/**
 * This method gets the nodes value as a String and uses that String as if
 * it were an input character notification.
 * @param node the Node to serialize
 * @throws org.xml.sax.SAXException
 */
public void characters(org.w3c.dom.Node node)
  throws org.xml.sax.SAXException
{
  flushPending();
  String data = node.getNodeValue();
  if (data != null)
  {
    final int length = data.length();
    if (length > m_charsBuff.length)
    {
      m_charsBuff = new char[length * 2 + 1];
    }
    data.getChars(0, length, m_charsBuff, 0);
    characters(m_charsBuff, 0, length);
  }
}
 
origin: MobiVM/robovm

/**
 * @see org.xml.sax.ErrorHandler#fatalError(SAXParseException)
 */
public void fatalError(SAXParseException exc) throws SAXException {
  super.fatalError(exc);
  
  m_needToCallStartDocument = false;
  
  if (m_saxHandler instanceof ErrorHandler) {
    ((ErrorHandler)m_saxHandler).fatalError(exc);            
  }
}
origin: MobiVM/robovm

/**
 * @see org.xml.sax.ErrorHandler#error(SAXParseException)
 */
public void error(SAXParseException exc) throws SAXException {
  super.error(exc);
  
  if (m_saxHandler instanceof ErrorHandler)
    ((ErrorHandler)m_saxHandler).error(exc);        
  
}
origin: MobiVM/robovm

/**
 * Receive notification of a comment.
 * 
 * @see ExtendedLexicalHandler#comment(String)
 */
public void comment(String data) throws SAXException
{
  m_docIsEmpty = false;
  
  final int length = data.length();
  if (length > m_charsBuff.length)
  {
    m_charsBuff = new char[length * 2 + 1];
  }
  data.getChars(0, length, m_charsBuff, 0);
  comment(m_charsBuff, 0, length);
}
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

super.fireCDATAEvent(ch, start, length);              
org.apache.xml.serializerSerializerBase

Javadoc

This class acts as a base class for the XML "serializers" and the stream serializers. It contains a number of common fields and methods.

Most used methods

  • 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
  • fireCommentEvent
    Report the comment trace event
  • fireCharEvent,
  • fireCommentEvent,
  • fireEndElem,
  • fireEndEntity,
  • fireEntityReference,
  • fireStartDoc,
  • fireStartElem,
  • flushMyWriter,
  • flushPending,
  • getElementURI

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • String (java.lang)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
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