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

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

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

origin: robovm/robovm

closeStartTag();
elemContext.m_startTagOpen = false;
closeCDATA();
m_cdataTagOpen = false;
startDocumentInternal();
m_needToCallStartDocument = false;
outputDocTypeDecl(n);
ElemDesc elemDesc = getElemDesc2(name);
int elemFlags = elemDesc.getFlags();
    indent();
  addAttributes(atts);            
  firePseudoAttributes();
  closeStartTag();
  elemContext.m_startTagOpen = false;
  if (!m_omitMetaTag)
      indent();
    writer.write(
      "<META http-equiv=\"Content-Type\" content=\"text/html; charset=");
    String encoding = getEncoding();
    String encode = Encodings.getMimeEncoding(encoding);
origin: robovm/robovm

/**
 * @see ExtendedContentHandler#endElement(String)
 */
public final void endElement(String elemName) throws SAXException
{
  endElement(null, null, elemName);
}
origin: robovm/robovm

    writer.write(makeHHString(ch));
    writer.write(makeHHString(high));
    writer.write('%');
    writer.write(makeHHString(low));
    writer.write(makeHHString(byte1));
    writer.write('%');
    writer.write(makeHHString(byte2));
    writer.write('%');
    writer.write(makeHHString(byte3));
    writer.write('%');
    writer.write(makeHHString(byte4));
    writer.write(makeHHString(high));
    writer.write('%');
    writer.write(makeHHString(middle));
    writer.write('%');
    writer.write(makeHHString(low));
else if (escapingNotNeeded(ch))
origin: robovm/robovm

closeStartTag();
m_elemContext.m_startTagOpen = false;
closeCDATA();
startDocumentInternal();
outputDocTypeDecl("html"); // best guess for the upcoming element
origin: robovm/robovm

flushPending(); 
  startNonEscaping();
  endNonEscaping();
      closeStartTag();
      m_elemContext.m_startTagOpen = false;
      closeCDATA();
      startDocumentInternal();
    outputDocTypeDecl("html"); // best guess for the upcoming element
  if (shouldIndent())
    indent();
    outputLineSep();
origin: robovm/robovm

  closeStartTag();
  m_elemContext.m_startTagOpen = false;
if (shouldIndent())
  indent();
writeNormalizedChars(ch, start, length, true, m_lineSepUse);
origin: robovm/robovm

if ((flags & HTML_ATTRURL) > 0)
  writeAttrURI(writer, value, m_specialEscapeURLs);
  writeAttrString(writer, value, this.getEncoding());
origin: robovm/robovm

if (nAttrs>0)
  processAttributes(m_writer, nAttrs);
  m_elemContext.m_isCdataSection = isCdataSection();
if (m_doIndent)
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

closeStartTag();
elemContext.m_startTagOpen = false;
startDocumentInternal();
m_needToCallStartDocument = false;
outputDocTypeDecl(n);
ElemDesc elemDesc = getElemDesc2(name);
int elemFlags = elemDesc.getFlags();
  closeStartTag();
  elemContext.m_startTagOpen = false;
  if (!m_omitMetaTag)
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

closeStartTag();
m_elemContext.m_startTagOpen = false;
startDocumentInternal();
outputDocTypeDecl("html"); // best guess for the upcoming element
origin: robovm/robovm

public boolean reset()
{
  boolean ret = super.reset();
  if (!ret)
    return false;
  resetToHTMLStream();
  return true;        
}

origin: robovm/robovm

/**
 * Process the attributes, which means to write out the currently
 * collected attributes to the writer. The attributes are not
 * cleared by this method
 * 
 * @param writer the writer to write processed attributes to.
 * @param nAttrs the number of attributes in m_attributes 
 * to be processed
 *
 * @throws org.xml.sax.SAXException
 */
public void processAttributes(java.io.Writer writer, int nAttrs)
  throws IOException,SAXException
{
    /* 
     * process the collected attributes
     */
    for (int i = 0; i < nAttrs; i++)
    {
      processAttribute(
        writer,
        m_attributes.getQName(i),
        m_attributes.getValue(i),
        m_elemContext.m_elementDesc);
    }
}
origin: robovm/robovm

closeCDATA();
    indent(elemContext.m_currentElemDepth - 1);
  m_inBlockElem = !isBlockElement;
  if (nAttrs > 0)
    processAttributes(m_writer, nAttrs);
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

if (   elemDesc != null
  && elemDesc.isAttrFlagSet(name, ElemDesc.ATTRURL))
  writeAttrURI(writer, value, m_specialEscapeURLs);
else
  writeAttrString(writer, value, this.getEncoding());
writer.write('"');
origin: robovm/robovm

  closeStartTag();
  m_elemContext.m_startTagOpen = false;
writeNormalizedChars(chars, start, length, false, m_lineSepUse);
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

if (nAttrs>0)
  processAttributes(m_writer, nAttrs);
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

writer.write(makeHHString(ch));
writer.write(makeHHString(high));
writer.write('%');
writer.write(makeHHString(low));
writer.write(makeHHString(byte1));
writer.write('%');
writer.write(makeHHString(byte2));
writer.write('%');
writer.write(makeHHString(byte3));
writer.write('%');
writer.write(makeHHString(byte4));
writer.write(makeHHString(high));
writer.write('%');
writer.write(makeHHString(middle));
writer.write('%');
writer.write(makeHHString(low));
origin: com.bugvm/bugvm-rt

closeStartTag();
m_elemContext.m_startTagOpen = false;
closeCDATA();
startDocumentInternal();
outputDocTypeDecl("html"); // best guess for the upcoming element
origin: robovm/robovm

if (   elemDesc != null
  && elemDesc.isAttrFlagSet(name, ElemDesc.ATTRURL))
  writeAttrURI(writer, value, m_specialEscapeURLs);
else
  writeAttrString(writer, value, this.getEncoding());
writer.write('"');
origin: MobiVM/robovm

if (nAttrs>0)
  processAttributes(m_writer, nAttrs);
  m_elemContext.m_isCdataSection = isCdataSection();
if (m_doIndent)
org.apache.xml.serializerToHTMLStream

Javadoc

This serializer takes a series of SAX or SAX-like events and writes its output to the given stream. This class is not a public API, it is public because it is used from another package.

Most used methods

  • closeStartTag
    For the enclosing elements starting tag write out out any attributes followed by ">". At this point
  • endElement
    Receive notification of the end of an element.
  • getElemDesc2
    Calls to this method could be replaced with calls to getElemDesc(name), but this one should be faste
  • makeHHString
    Make an integer into an HH hex value. Does no checking on the size of the input, since this is only
  • outputDocTypeDecl
    This method should only get called once. If a DOCTYPE declaration needs to get written out, it will
  • processAttribute
    Process an attribute.
  • processAttributes
    Process the attributes, which means to write out the currently collected attributes to the writer. T
  • resetToHTMLStream
  • startDocumentInternal
    Receive notification of the beginning of a document.
  • writeAttrString
    Writes the specified string after substituting specials, and UTF-16 surrogates for character referen
  • writeAttrURI
    Write the specified string after substituting non ASCII characters, with %HH, where HH is the hex of
  • accumDefaultEntity
  • writeAttrURI,
  • accumDefaultEntity,
  • addAttributes,
  • closeCDATA,
  • endNonEscaping,
  • escapingNotNeeded,
  • firePseudoAttributes,
  • flushPending,
  • flushWriter,
  • getDoctypePublic

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Best IntelliJ plugins
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