Java Code Examples for com.sun.xml.internal.org.jvnet.fastinfoset.RestrictedAlphabet#NUMERIC_CHARACTERS
The following examples show how to use
com.sun.xml.internal.org.jvnet.fastinfoset.RestrictedAlphabet#NUMERIC_CHARACTERS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SAXDocumentSerializer.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }
Example 2
Source File: SAXDocumentSerializer.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }
Example 3
Source File: SAXDocumentSerializer.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }
Example 4
Source File: SAXDocumentSerializer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }
Example 5
Source File: SAXDocumentSerializer.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }
Example 6
Source File: SAXDocumentSerializer.java From hottub with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }
Example 7
Source File: SAXDocumentSerializer.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }
Example 8
Source File: SAXDocumentSerializer.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected void encodeAttributes(Attributes atts) throws IOException, FastInfosetException { boolean addToTable; boolean mustBeAddedToTable; String value; if (atts instanceof EncodingAlgorithmAttributes) { final EncodingAlgorithmAttributes eAtts = (EncodingAlgorithmAttributes)atts; Object data; String alphabet; for (int i = 0; i < eAtts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { data = eAtts.getAlgorithmData(i); // If data is null then there is no algorithm data if (data == null) { value = eAtts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); mustBeAddedToTable = eAtts.getToIndex(i); alphabet = eAtts.getAlpababet(i); if (alphabet == null) { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.DATE_TIME_CHARACTERS) { encodeDateTimeNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else if (alphabet == RestrictedAlphabet.NUMERIC_CHARACTERS) { encodeNumericNonIdentifyingStringOnFirstBit( value, addToTable, mustBeAddedToTable); } else { encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, mustBeAddedToTable); } } else { encodeNonIdentifyingStringOnFirstBit(eAtts.getAlgorithmURI(i), eAtts.getAlgorithmIndex(i), data); } } } } else { for (int i = 0; i < atts.getLength(); i++) { if (encodeAttribute(atts.getURI(i), atts.getQName(i), atts.getLocalName(i))) { value = atts.getValue(i); addToTable = isAttributeValueLengthMatchesLimit(value.length()); encodeNonIdentifyingStringOnFirstBit(value, _v.attributeValue, addToTable, false); } } } _b = EncodingConstants.TERMINATOR; _terminate = true; }