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

How to use
closeStartTagIfOpen
method
in
org.apache.jackrabbit.commons.xml.ToXmlContentHandler

Best Java code snippets using org.apache.jackrabbit.commons.xml.ToXmlContentHandler.closeStartTagIfOpen (Showing top 9 results out of 315)

origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Escapes and outputs the given characters.
 */
public void characters(char[] ch, int start, int length)
    throws SAXException {
  closeStartTagIfOpen();
  write(ch, start, length, false);
}
origin: apache/jackrabbit

/**
 * Escapes and outputs the given characters.
 */
public void characters(char[] ch, int start, int length)
    throws SAXException {
  closeStartTagIfOpen();
  write(ch, start, length, false);
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Escapes and outputs the given characters.
 */
public void characters(char[] ch, int start, int length)
    throws SAXException {
  closeStartTagIfOpen();
  write(ch, start, length, false);
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Serializes a processing instruction.
 */
public void processingInstruction(String target, String data)
    throws SAXException {
  closeStartTagIfOpen();
  try {
    writer.write("<?");
    writer.write(target);
    if (data != null) {
      writer.write(" ");
      writer.write(data);
    }
    writer.write("?>");
  } catch (IOException e) {
    throw new SAXException(
        "Failed to output XML processing instruction: " + target, e);
  }
}
origin: apache/jackrabbit

/**
 * Serializes a processing instruction.
 */
public void processingInstruction(String target, String data)
    throws SAXException {
  closeStartTagIfOpen();
  try {
    writer.write("<?");
    writer.write(target);
    if (data != null) {
      writer.write(" ");
      writer.write(data);
    }
    writer.write("?>");
  } catch (IOException e) {
    throw new SAXException(
        "Failed to output XML processing instruction: " + target, e);
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Serializes a processing instruction.
 */
public void processingInstruction(String target, String data)
    throws SAXException {
  closeStartTagIfOpen();
  try {
    writer.write("<?");
    writer.write(target);
    if (data != null) {
      writer.write(" ");
      writer.write(data);
    }
    writer.write("?>");
  } catch (IOException e) {
    throw new SAXException(
        "Failed to output XML processing instruction: " + target, e);
  }
}
origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Outputs the specified start tag with the given attributes.
 */
public void startElement(
    String namespaceURI, String localName, String qName,
    Attributes atts) throws SAXException {
  closeStartTagIfOpen();
  try {
    writer.write("<");
    writer.write(qName);
    for (int i = 0; i < atts.getLength(); i++) {
      writer.write(" ");
      writer.write(atts.getQName(i));
      writer.write("=\"");
      char[] ch = atts.getValue(i).toCharArray();
      write(ch, 0, ch.length, true);
      writer.write("\"");
    }
    startTagIsOpen = true;
  } catch (IOException e) {
    throw new SAXException(
        "Failed to output XML end tag: " + qName, e);
  }
}
origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Outputs the specified start tag with the given attributes.
 */
public void startElement(
    String namespaceURI, String localName, String qName,
    Attributes atts) throws SAXException {
  closeStartTagIfOpen();
  try {
    writer.write("<");
    writer.write(qName);
    for (int i = 0; i < atts.getLength(); i++) {
      writer.write(" ");
      writer.write(atts.getQName(i));
      writer.write("=\"");
      char[] ch = atts.getValue(i).toCharArray();
      write(ch, 0, ch.length, true);
      writer.write("\"");
    }
    startTagIsOpen = true;
  } catch (IOException e) {
    throw new SAXException(
        "Failed to output XML end tag: " + qName, e);
  }
}
origin: apache/jackrabbit

/**
 * Outputs the specified start tag with the given attributes.
 */
public void startElement(
    String namespaceURI, String localName, String qName,
    Attributes atts) throws SAXException {
  closeStartTagIfOpen();
  try {
    writer.write("<");
    writer.write(qName);
    for (int i = 0; i < atts.getLength(); i++) {
      writer.write(" ");
      writer.write(atts.getQName(i));
      writer.write("=\"");
      char[] ch = atts.getValue(i).toCharArray();
      write(ch, 0, ch.length, true);
      writer.write("\"");
    }
    startTagIsOpen = true;
  } catch (IOException e) {
    throw new SAXException(
        "Failed to output XML end tag: " + qName, e);
  }
}
org.apache.jackrabbit.commons.xmlToXmlContentHandlercloseStartTagIfOpen

Popular methods of ToXmlContentHandler

  • <init>
    Creates an XML serializer that writes the serialized XML stream to the given writer.
  • characters
    Escapes and outputs the given characters.
  • processingInstruction
    Serializes a processing instruction.
  • write
  • startElement
    Outputs the specified start tag with the given attributes.

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JTable (javax.swing)
  • Github Copilot alternatives
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