Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
Other Resources:
Jackson Dataformat XML Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson also allows you to parse or generate XML messages with the Jackson Dataformat XML Extension.
Jackson Dataformat XML Source Code files are provided in the source packge (jackson-dataformat-xml-2.12.4-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Dataformat XML Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/dataformat/xml/XmlPrettyPrinter.java
package com.fasterxml.jackson.dataformat.xml; import java.math.BigDecimal; import java.math.BigInteger; import javax.xml.stream.XMLStreamException; import org.codehaus.stax2.XMLStreamWriter2; import com.fasterxml.jackson.core.PrettyPrinter; /** * There are some XML-specific quirks that need extra TLC when * indenting: so we will use a refinement of general purpose one. */ public interface XmlPrettyPrinter extends PrettyPrinter { /** * Method for forcibly writing a start element, without going * through Jackson generator (and thus, without updating currently * active element stack) * * @since 2.1 */ public void writeStartElement(XMLStreamWriter2 sw, String nsURI, String localName) throws XMLStreamException; /** * Method for forcibly writing an end element, without going * through Jackson generator (and thus, without updating currently * active element stack) * * @since 2.1 */ public void writeEndElement(XMLStreamWriter2 sw, int nrOfEntries) throws XMLStreamException; /** * Method for trying to write a linefeed to separate entities outside of the * root element (that is, in prolog or epilog), most often called to separate * XML declaration from the root element. * * @since 2.7 */ public void writePrologLinefeed(XMLStreamWriter2 sw) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, String text, boolean isCData) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, char[] buffer, int offset, int len, boolean isCData) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, boolean value) throws XMLStreamException; // Lots of numbers... public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, int value) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, long value) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, double value) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, float value) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, BigInteger value) throws XMLStreamException; public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, BigDecimal value) throws XMLStreamException; // binary element public void writeLeafElement(XMLStreamWriter2 sw, String nsURI, String localName, org.codehaus.stax2.typed.Base64Variant base64variant, byte[] data, int offset, int len) throws XMLStreamException; // empty element to represent null public void writeLeafNullElement(XMLStreamWriter2 sw, String nsURI, String localName) throws XMLStreamException; // TODO: demote from "DefaultXmlPrettyPrinter" in 2.13 or later: // public void writeLeafXsiNilElement(XMLStreamWriter2 sw, // String nsURI, String localName) // throws XMLStreamException; }
⏎ com/fasterxml/jackson/dataformat/xml/XmlPrettyPrinter.java
Â
⇒ Download Jackson Dataformat Binary Packages
⇠Jackson Dataformat Extensions
⇑ Downloading and Reviewing jackson-*.jar
⇑⇑ Jackson - Java JSON library
2021-10-10, 6420👍, 0💬
Popular Posts:
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
JDK 8 tools.jar is the JAR file for JDK 8 tools. It contains Java classes to support different JDK t...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...