com.sun.xml.internal.fastinfoset.util.CharArray Java Examples
The following examples show how to use
com.sun.xml.internal.fastinfoset.util.CharArray.
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: Decoder.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #2
Source File: Decoder.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #3
Source File: Decoder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #4
Source File: Decoder.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #5
Source File: Decoder.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #6
Source File: Decoder.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #7
Source File: Decoder.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #8
Source File: Decoder.java From hottub with GNU General Public License v2.0 | 6 votes |
protected final void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException { if (_identifier <= EncodingConstants.RESTRICTED_ALPHABET_BUILTIN_END) { decodeFourBitAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); // decodeAlphabetOctetsAsCharBuffer(BuiltInRestrictedAlphabets.table[_identifier]); } else if (_identifier >= EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START) { CharArray ca = _v.restrictedAlphabet.get(_identifier - EncodingConstants.RESTRICTED_ALPHABET_APPLICATION_START); if (ca == null) { throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetNotPresent", new Object[]{Integer.valueOf(_identifier)})); } decodeAlphabetOctetsAsCharBuffer(ca.ch); } else { // Reserved built-in algorithms for future use // TODO should use sax property to decide if event will be // reported, allows for support through handler if required. throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.alphabetIdentifiersReserved")); } }
Example #9
Source File: StAXDocumentParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected final void processCommentII() throws FastInfosetException, IOException { _eventType = COMMENT; switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: if (_addToTable) { _v.otherString.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); } _characters = _charBuffer; _charactersOffset = 0; break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: final CharArray ca = _v.otherString.get(_integer); _characters = ca.ch; _charactersOffset = ca.start; _charBufferLength = ca.length; break; case NISTRING_EMPTY_STRING: _characters = _charBuffer; _charactersOffset = 0; _charBufferLength = 0; break; } }
Example #10
Source File: ParserVocabulary.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, CharArrayArray a) { if (s.length() == 0) { return; } char[] c = s.toCharArray(); a.add(new CharArray(c, 0, c.length, false)); }
Example #11
Source File: Decoder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(CharArrayArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: array.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); break; default: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.illegalState")); } } }
Example #12
Source File: VocabularyGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
Example #13
Source File: StAXDocumentParser.java From hottub with GNU General Public License v2.0 | 5 votes |
protected final void processCommentII() throws FastInfosetException, IOException { _eventType = COMMENT; switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: if (_addToTable) { _v.otherString.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); } _characters = _charBuffer; _charactersOffset = 0; break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: final CharArray ca = _v.otherString.get(_integer); _characters = ca.ch; _charactersOffset = ca.start; _charBufferLength = ca.length; break; case NISTRING_EMPTY_STRING: _characters = _charBuffer; _charactersOffset = 0; _charBufferLength = 0; break; } }
Example #14
Source File: ParserVocabulary.java From hottub with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, CharArrayArray a) { if (s.length() == 0) { return; } char[] c = s.toCharArray(); a.add(new CharArray(c, 0, c.length, false)); }
Example #15
Source File: Decoder.java From hottub with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(CharArrayArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: array.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); break; default: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.illegalState")); } } }
Example #16
Source File: VocabularyGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
Example #17
Source File: StAXDocumentParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected final void processCommentII() throws FastInfosetException, IOException { _eventType = COMMENT; switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: if (_addToTable) { _v.otherString.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); } _characters = _charBuffer; _charactersOffset = 0; break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: final CharArray ca = _v.otherString.get(_integer); _characters = ca.ch; _charactersOffset = ca.start; _charBufferLength = ca.length; break; case NISTRING_EMPTY_STRING: _characters = _charBuffer; _charactersOffset = 0; _charBufferLength = 0; break; } }
Example #18
Source File: ParserVocabulary.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, CharArrayArray a) { if (s.length() == 0) { return; } char[] c = s.toCharArray(); a.add(new CharArray(c, 0, c.length, false)); }
Example #19
Source File: Decoder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(CharArrayArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: array.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); break; default: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.illegalState")); } } }
Example #20
Source File: VocabularyGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
Example #21
Source File: StAXDocumentParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected final void processCommentII() throws FastInfosetException, IOException { _eventType = COMMENT; switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: if (_addToTable) { _v.otherString.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); } _characters = _charBuffer; _charactersOffset = 0; break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: final CharArray ca = _v.otherString.get(_integer); _characters = ca.ch; _charactersOffset = ca.start; _charBufferLength = ca.length; break; case NISTRING_EMPTY_STRING: _characters = _charBuffer; _charactersOffset = 0; _charBufferLength = 0; break; } }
Example #22
Source File: ParserVocabulary.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, CharArrayArray a) { if (s.length() == 0) { return; } char[] c = s.toCharArray(); a.add(new CharArray(c, 0, c.length, false)); }
Example #23
Source File: Decoder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(CharArrayArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: array.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); break; default: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.illegalState")); } } }
Example #24
Source File: VocabularyGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
Example #25
Source File: StAXDocumentParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected final void processCommentII() throws FastInfosetException, IOException { _eventType = COMMENT; switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: if (_addToTable) { _v.otherString.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); } _characters = _charBuffer; _charactersOffset = 0; break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: final CharArray ca = _v.otherString.get(_integer); _characters = ca.ch; _charactersOffset = ca.start; _charBufferLength = ca.length; break; case NISTRING_EMPTY_STRING: _characters = _charBuffer; _charactersOffset = 0; _charBufferLength = 0; break; } }
Example #26
Source File: ParserVocabulary.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, CharArrayArray a) { if (s.length() == 0) { return; } char[] c = s.toCharArray(); a.add(new CharArray(c, 0, c.length, false)); }
Example #27
Source File: Decoder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void decodeTableItems(CharArrayArray array) throws FastInfosetException, IOException { final int noOfItems = decodeNumberOfItemsOfSequence(); for (int i = 0; i < noOfItems; i++) { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: array.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); break; default: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.illegalState")); } } }
Example #28
Source File: VocabularyGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void addToCharArrayTable(CharArray c) { if (_serializerVocabulary.characterContentChunk.obtainIndex(c.ch, c.start, c.length, false) == KeyIntMap.NOT_PRESENT) { _parserVocabulary.characterContentChunk.add(c.ch, c.length); } _v.characterContentChunks.add(c.toString()); }
Example #29
Source File: StAXDocumentParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected final void processCommentII() throws FastInfosetException, IOException { _eventType = COMMENT; switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: if (_addToTable) { _v.otherString.add(new CharArray(_charBuffer, 0, _charBufferLength, true)); } _characters = _charBuffer; _charactersOffset = 0; break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: final CharArray ca = _v.otherString.get(_integer); _characters = ca.ch; _charactersOffset = ca.start; _charBufferLength = ca.length; break; case NISTRING_EMPTY_STRING: _characters = _charBuffer; _charactersOffset = 0; _charBufferLength = 0; break; } }
Example #30
Source File: ParserVocabulary.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void addToTable(String s, CharArrayArray a) { if (s.length() == 0) { return; } char[] c = s.toCharArray(); a.add(new CharArray(c, 0, c.length, false)); }