congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ToTextStream
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: robovm/robovm

/**
 * From XSLTC
 */
public void characters(String characters) 
throws SAXException 
{ 
  final int length = characters.length();
  if (length > m_charsBuff.length)
  {
    m_charsBuff = new char[length*2 + 1];
  }
  characters.getChars(0, length, m_charsBuff, 0);
  characters(m_charsBuff, 0, length); 
}
origin: robovm/robovm

/**
 * Called when a Comment is to be constructed.
 * Note that Xalan will normally invoke the other version of this method.
 * %REVIEW% In fact, is this one ever needed, or was it a mistake?
 *
 * @param   data  The comment data.
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 */
public void comment(String data) throws org.xml.sax.SAXException
{
  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

flushPending();    
  if (inTemporaryOutputState()) {
    writeNormalizedChars(ch, start, length, m_lineSepUse);
origin: robovm/robovm

/**
 * From XSLTC
 */
public void startElement(
String elementNamespaceURI,
String elementLocalName,
String elementName) 
throws SAXException 
{
  if (m_needToCallStartDocument)
    startDocumentInternal();        
  // time to fire off startlement event.
  if (m_tracer != null) {
    super.fireStartElem(elementName);
    this.firePseudoAttributes();
  }
  
  return;
}
origin: robovm/robovm

/**
 * Receive notification of the end of a document.
 *
 * <p>The SAX parser will invoke this method only once, and it will
 * be the last method invoked during the parse.  The parser shall
 * not invoke this method until it has either abandoned parsing
 * (because of an unrecoverable error) or reached the end of
 * input.</p>
 *
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 *
 * @throws org.xml.sax.SAXException
 */
public void endDocument() throws org.xml.sax.SAXException
{
 flushPending();
 flushWriter();
 if (m_tracer != null)
   super.fireEndDoc();
}
origin: robovm/robovm

  throws IOException, org.xml.sax.SAXException 
final String encoding = getEncoding();
final java.io.Writer writer = m_writer;
final int end = start + length;
    final int codePoint = writeUTF16Surrogate(c, ch, i, end);
    if (codePoint != 0) {
origin: robovm/robovm

  public void flushPending() throws org.xml.sax.SAXException
  {
      if (m_needToCallStartDocument)
      {
        startDocumentInternal();
        m_needToCallStartDocument = false;
      }
  }
}
origin: robovm/robovm

/**
 * If available, when the disable-output-escaping attribute is used,
 * output raw text without escaping.
 *
 * @param ch The characters from the XML document.
 * @param start The start position in the array.
 * @param length The number of characters to read from the array.
 *
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 */
public void charactersRaw(char ch[], int start, int length)
    throws org.xml.sax.SAXException
{
 try
 {
  writeNormalizedChars(ch, start, length, m_lineSepUse);
 }
 catch(IOException ioe)
 {
  throw new SAXException(ioe);
 }
}

origin: robovm/robovm

/**
 * 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: robovm/robovm

this.firePseudoAttributes();
origin: MobiVM/robovm

/**
 * From XSLTC
 */
public void startElement(
String elementNamespaceURI,
String elementLocalName,
String elementName) 
throws SAXException 
{
  if (m_needToCallStartDocument)
    startDocumentInternal();        
  // time to fire off startlement event.
  if (m_tracer != null) {
    super.fireStartElem(elementName);
    this.firePseudoAttributes();
  }
  
  return;
}
origin: ibinti/bugvm

/**
 * Receive notification of the end of a document.
 *
 * <p>The SAX parser will invoke this method only once, and it will
 * be the last method invoked during the parse.  The parser shall
 * not invoke this method until it has either abandoned parsing
 * (because of an unrecoverable error) or reached the end of
 * input.</p>
 *
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 *
 * @throws org.xml.sax.SAXException
 */
public void endDocument() throws org.xml.sax.SAXException
{
 flushPending();
 flushWriter();
 if (m_tracer != null)
   super.fireEndDoc();
}
origin: MobiVM/robovm

  throws IOException, org.xml.sax.SAXException 
final String encoding = getEncoding();
final java.io.Writer writer = m_writer;
final int end = start + length;
    final int codePoint = writeUTF16Surrogate(c, ch, i, end);
    if (codePoint != 0) {
origin: MobiVM/robovm

  public void flushPending() throws org.xml.sax.SAXException
  {
      if (m_needToCallStartDocument)
      {
        startDocumentInternal();
        m_needToCallStartDocument = false;
      }
  }
}
origin: robovm/robovm

writeNormalizedChars(ch, start, length, m_lineSepUse);
origin: robovm/robovm

/**
 * Receive notification of a processing instruction.
 *
 * <p>The Parser will invoke this method once for each processing
 * instruction found: note that processing instructions may occur
 * before or after the main document element.</p>
 *
 * <p>A SAX parser should never report an XML declaration (XML 1.0,
 * section 2.8) or a text declaration (XML 1.0, section 4.3.1)
 * using this method.</p>
 *
 * @param target The processing instruction target.
 * @param data The processing instruction data, or null if
 *        none was supplied.
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 *
 * @throws org.xml.sax.SAXException
 */
public void processingInstruction(String target, String data)
    throws org.xml.sax.SAXException
{
 // flush anything pending first
 flushPending();  
 
 if (m_tracer != null)
   super.fireEscapingEvent(target, data);  
}
origin: MobiVM/robovm

this.firePseudoAttributes();
origin: ibinti/bugvm

flushPending();    
  if (inTemporaryOutputState()) {
    writeNormalizedChars(ch, start, length, m_lineSepUse);
origin: ibinti/bugvm

/**
 * From XSLTC
 */
public void startElement(
String elementNamespaceURI,
String elementLocalName,
String elementName) 
throws SAXException 
{
  if (m_needToCallStartDocument)
    startDocumentInternal();        
  // time to fire off startlement event.
  if (m_tracer != null) {
    super.fireStartElem(elementName);
    this.firePseudoAttributes();
  }
  
  return;
}
origin: xalan/serializer

/**
 * Receive notification of the end of a document.
 *
 * <p>The SAX parser will invoke this method only once, and it will
 * be the last method invoked during the parse.  The parser shall
 * not invoke this method until it has either abandoned parsing
 * (because of an unrecoverable error) or reached the end of
 * input.</p>
 *
 * @throws org.xml.sax.SAXException Any SAX exception, possibly
 *            wrapping another exception.
 *
 * @throws org.xml.sax.SAXException
 */
public void endDocument() throws org.xml.sax.SAXException
{
 flushPending();
 flushWriter();
 if (m_tracer != null)
   super.fireEndDoc();
}
org.apache.xml.serializerToTextStream

Javadoc

This class is not a public API. It is only public because it is used in other packages. This class converts SAX or SAX-like calls to a serialized document for xsl:output method of "text".

Most used methods

  • characters
    Receive notification of character data.The Parser will call this method to report each chunk of char
  • comment
    Report an XML comment anywhere in the document. This callback will be used for comments inside or ou
  • flushPending
  • startDocumentInternal
    Receive notification of the beginning of a document.The SAX parser will invoke this method only once
  • writeNormalizedChars
    Normalize the characters, but don't escape. Different from SerializerToXML#writeNormalizedChars beca
  • firePseudoAttributes
  • flushWriter
  • getEncoding
  • inTemporaryOutputState
  • writeUTF16Surrogate
  • <init>
    Default constructor.
  • serialize
  • <init>,
  • serialize,
  • setWriter

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Path (java.nio.file)
  • 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
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top plugins for Android Studio
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