com.sun.xml.internal.org.jvnet.fastinfoset.RestrictedAlphabet Java Examples
The following examples show how to use
com.sun.xml.internal.org.jvnet.fastinfoset.RestrictedAlphabet.
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: Encoder.java From hottub with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #2
Source File: Encoder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #3
Source File: Encoder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #4
Source File: Encoder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #5
Source File: Encoder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #6
Source File: Encoder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #7
Source File: Encoder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #8
Source File: Encoder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #9
Source File: Encoder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #10
Source File: Encoder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #11
Source File: Encoder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #12
Source File: Encoder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #13
Source File: Encoder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #14
Source File: Encoder.java From hottub with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #15
Source File: Encoder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected final void encodeDateTimeNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #16
Source File: Encoder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected final void encodeNumericNonIdentifyingStringOnFirstBit( String s, boolean addToTable, boolean mustBeAddedToTable) throws IOException, FastInfosetException { encodeNonIdentifyingStringOnFirstBit( RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, s, addToTable, mustBeAddedToTable); }
Example #17
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 #18
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 #19
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 #20
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 #21
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 #22
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 #23
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 #24
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; }
Example #25
Source File: Encoder.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Encode a chunk of Character Information Items using a date-time * alphabet that results in the encoding of a character in 4 bits * (or two characters per octet). * * @param id the restricted alphabet identifier. * @param table the table mapping characters to 4 bit values. * @param ch the array of characters. * @param offset the offset into the array of characters. * @param length the length of characters. * @param addToTable if characters should be added to table. * @throws ArrayIndexOutOfBoundsException. */ protected final void encodeDateTimeFourBitCharacters(char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException { encodeFourBitCharacters(RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, ch, offset, length, addToTable); }
Example #26
Source File: Encoder.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Encode a chunk of Character Information Items using a numeric * alphabet that results in the encoding of a character in 4 bits * (or two characters per octet). * * @param id the restricted alphabet identifier. * @param table the table mapping characters to 4 bit values. * @param ch the array of characters. * @param offset the offset into the array of characters. * @param length the length of characters. * @param addToTable if characters should be added to table. * @throws ArrayIndexOutOfBoundsException. */ protected final void encodeNumericFourBitCharacters(char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException { encodeFourBitCharacters(RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, ch, offset, length, addToTable); }
Example #27
Source File: Encoder.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Encode a chunk of Character Information Items using a numeric * alphabet that results in the encoding of a character in 4 bits * (or two characters per octet). * * @param id the restricted alphabet identifier. * @param table the table mapping characters to 4 bit values. * @param ch the array of characters. * @param offset the offset into the array of characters. * @param length the length of characters. * @param addToTable if characters should be added to table. * @throws ArrayIndexOutOfBoundsException. */ protected final void encodeNumericFourBitCharacters(char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException { encodeFourBitCharacters(RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, ch, offset, length, addToTable); }
Example #28
Source File: Encoder.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Encode a chunk of Character Information Items using a date-time * alphabet that results in the encoding of a character in 4 bits * (or two characters per octet). * * @param id the restricted alphabet identifier. * @param table the table mapping characters to 4 bit values. * @param ch the array of characters. * @param offset the offset into the array of characters. * @param length the length of characters. * @param addToTable if characters should be added to table. * @throws ArrayIndexOutOfBoundsException. */ protected final void encodeDateTimeFourBitCharacters(char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException { encodeFourBitCharacters(RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, ch, offset, length, addToTable); }
Example #29
Source File: Encoder.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Encode a chunk of Character Information Items using a numeric * alphabet that results in the encoding of a character in 4 bits * (or two characters per octet). * * @param id the restricted alphabet identifier. * @param table the table mapping characters to 4 bit values. * @param ch the array of characters. * @param offset the offset into the array of characters. * @param length the length of characters. * @param addToTable if characters should be added to table. * @throws ArrayIndexOutOfBoundsException. */ protected final void encodeNumericFourBitCharacters(char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException { encodeFourBitCharacters(RestrictedAlphabet.NUMERIC_CHARACTERS_INDEX, NUMERIC_CHARACTERS_TABLE, ch, offset, length, addToTable); }
Example #30
Source File: Encoder.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Encode a chunk of Character Information Items using a date-time * alphabet that results in the encoding of a character in 4 bits * (or two characters per octet). * * @param id the restricted alphabet identifier. * @param table the table mapping characters to 4 bit values. * @param ch the array of characters. * @param offset the offset into the array of characters. * @param length the length of characters. * @param addToTable if characters should be added to table. * @throws ArrayIndexOutOfBoundsException. */ protected final void encodeDateTimeFourBitCharacters(char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException { encodeFourBitCharacters(RestrictedAlphabet.DATE_TIME_CHARACTERS_INDEX, DATE_TIME_CHARACTERS_TABLE, ch, offset, length, addToTable); }