com.fasterxml.aalto.util.XmlConsts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aalto-xml Show documentation
Show all versions of aalto-xml Show documentation
Ultra-high performance non-blocking XML processor (Stax/Stax2, SAX/SAX2)
package com.fasterxml.aalto.util;
/**
* Simple constant container interface, shared by input and output
* sides.
*
* @author Tatu Saloranta
*/
public interface XmlConsts
{
// // // Constants for XML declaration
public final static String XML_DECL_KW_ENCODING = "encoding";
public final static String XML_DECL_KW_VERSION = "version";
public final static String XML_DECL_KW_STANDALONE = "standalone";
public final static String XML_V_10_STR = "1.0";
public final static String XML_V_11_STR = "1.1";
/**
* This constants refers to cases where the version has not been
* declared explicitly; and needs to be considered to be 1.0.
*/
public final static int XML_V_UNKNOWN = 0x0000;
public final static int XML_V_10 = 0x0100;
public final static int XML_V_11 = 0x0110;
public final static String XML_SA_YES = "yes";
public final static String XML_SA_NO = "no";
/**
* This constant defines the highest Unicode character allowed
* in XML content.
*/
final static int MAX_UNICODE_CHAR = 0x10FFFF;
/*
////////////////////////////////////////////////////////////
// Char consts
////////////////////////////////////////////////////////////
*/
public final static char CHAR_NULL = (char) 0;
public final static char CHAR_SPACE = (char) 0x0020;
public final static char CHAR_CR = '\r';
public final static char CHAR_LF = '\n';
/*
////////////////////////////////////////////////////////////
// Stax defaults:
////////////////////////////////////////////////////////////
*/
public final static String STAX_DEFAULT_OUTPUT_ENCODING = "UTF-8";
public final static String STAX_DEFAULT_OUTPUT_VERSION = "1.0";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy