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()); }
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()); }
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()); }
protected final void processCommentII() throws FastInfosetException, IOException { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: { final String s = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(s, false)); } _currentNode.appendChild(_document.createComment(s)); break; } case NISTRING_ENCODING_ALGORITHM: throw new IOException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: { final String s = _v.otherString.get(_integer).toString(); _currentNode.appendChild(_document.createComment(s)); break; } case NISTRING_EMPTY_STRING: _currentNode.appendChild(_document.createComment("")); break; } }
protected final void processCommentII() throws FastInfosetException, IOException { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: { final String s = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(s, false)); } _currentNode.appendChild(_document.createComment(s)); break; } case NISTRING_ENCODING_ALGORITHM: throw new IOException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: { final String s = _v.otherString.get(_integer).toString(); _currentNode.appendChild(_document.createComment(s)); break; } case NISTRING_EMPTY_STRING: _currentNode.appendChild(_document.createComment("")); break; } }
protected final void processCommentII() throws FastInfosetException, IOException { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: { final String s = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(s, false)); } _currentNode.appendChild(_document.createComment(s)); break; } case NISTRING_ENCODING_ALGORITHM: throw new IOException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported")); case NISTRING_INDEX: { final String s = _v.otherString.get(_integer).toString(); _currentNode.appendChild(_document.createComment(s)); break; } case NISTRING_EMPTY_STRING: _currentNode.appendChild(_document.createComment("")); break; } }
protected final void processProcessingII() throws FastInfosetException, IOException { final String target = decodeIdentifyingNonEmptyStringOnFirstBit(_v.otherNCName); switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: { final String data = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(data, false)); } _currentNode.appendChild(_document.createProcessingInstruction(target, data)); break; } case NISTRING_ENCODING_ALGORITHM: throw new IOException(CommonResourceBundle.getInstance().getString("message.processingIIWithEncodingAlgorithm")); case NISTRING_INDEX: { final String data = _v.otherString.get(_integer).toString(); _currentNode.appendChild(_document.createProcessingInstruction(target, data)); break; } case NISTRING_EMPTY_STRING: _currentNode.appendChild(_document.createProcessingInstruction(target, "")); break; } }
protected final void processProcessingII() throws FastInfosetException, IOException { final String target = decodeIdentifyingNonEmptyStringOnFirstBit(_v.otherNCName); switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: { final String data = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(data, false)); } _currentNode.appendChild(_document.createProcessingInstruction(target, data)); break; } case NISTRING_ENCODING_ALGORITHM: throw new IOException(CommonResourceBundle.getInstance().getString("message.processingIIWithEncodingAlgorithm")); case NISTRING_INDEX: { final String data = _v.otherString.get(_integer).toString(); _currentNode.appendChild(_document.createProcessingInstruction(target, data)); break; } case NISTRING_EMPTY_STRING: _currentNode.appendChild(_document.createProcessingInstruction(target, "")); break; } }
protected final void processProcessingII() throws FastInfosetException, IOException { final String target = decodeIdentifyingNonEmptyStringOnFirstBit(_v.otherNCName); switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: { final String data = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(data, false)); } _currentNode.appendChild(_document.createProcessingInstruction(target, data)); break; } case NISTRING_ENCODING_ALGORITHM: throw new IOException(CommonResourceBundle.getInstance().getString("message.processingIIWithEncodingAlgorithm")); case NISTRING_INDEX: { final String data = _v.otherString.get(_integer).toString(); _currentNode.appendChild(_document.createProcessingInstruction(target, data)); break; } case NISTRING_EMPTY_STRING: _currentNode.appendChild(_document.createProcessingInstruction(target, "")); break; } }
case NISTRING_INDEX: try { _contentHandler.processingInstruction(target, _v.otherString.get(_integer).toString()); } catch (SAXException e) { throw new FastInfosetException("processProcessingII", e);
case NISTRING_INDEX: try { _contentHandler.processingInstruction(target, _v.otherString.get(_integer).toString()); } catch (SAXException e) { throw new FastInfosetException("processProcessingII", e);
case NISTRING_INDEX: try { _contentHandler.processingInstruction(target, _v.otherString.get(_integer).toString()); } catch (SAXException e) { throw new FastInfosetException("processProcessingII", e);
protected final String decodeVersion() throws FastInfosetException, IOException { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: final String data = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(data)); } return data; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.decodingNotSupported")); case NISTRING_INDEX: return _v.otherString.get(_integer).toString(); case NISTRING_EMPTY_STRING: default: return ""; } }
protected final String decodeVersion() throws FastInfosetException, IOException { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: final String data = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(data)); } return data; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.decodingNotSupported")); case NISTRING_INDEX: return _v.otherString.get(_integer).toString(); case NISTRING_EMPTY_STRING: default: return ""; } }
protected final String decodeVersion() throws FastInfosetException, IOException { switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: final String data = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(data)); } return data; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.decodingNotSupported")); case NISTRING_INDEX: return _v.otherString.get(_integer).toString(); case NISTRING_EMPTY_STRING: default: return ""; } }
protected final void processProcessingII() throws FastInfosetException, IOException { _eventType = PROCESSING_INSTRUCTION; _piTarget = decodeIdentifyingNonEmptyStringOnFirstBit(_v.otherNCName); switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: _piData = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(_piData)); } break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.processingIIWithEncodingAlgorithm")); case NISTRING_INDEX: _piData = _v.otherString.get(_integer).toString(); break; case NISTRING_EMPTY_STRING: _piData = ""; break; } }
protected final void processProcessingII() throws FastInfosetException, IOException { _eventType = PROCESSING_INSTRUCTION; _piTarget = decodeIdentifyingNonEmptyStringOnFirstBit(_v.otherNCName); switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: _piData = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(_piData)); } break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.processingIIWithEncodingAlgorithm")); case NISTRING_INDEX: _piData = _v.otherString.get(_integer).toString(); break; case NISTRING_EMPTY_STRING: _piData = ""; break; } }
protected final void processProcessingII() throws FastInfosetException, IOException { _eventType = PROCESSING_INSTRUCTION; _piTarget = decodeIdentifyingNonEmptyStringOnFirstBit(_v.otherNCName); switch(decodeNonIdentifyingStringOnFirstBit()) { case NISTRING_STRING: _piData = new String(_charBuffer, 0, _charBufferLength); if (_addToTable) { _v.otherString.add(new CharArrayString(_piData)); } break; case NISTRING_ENCODING_ALGORITHM: throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.processingIIWithEncodingAlgorithm")); case NISTRING_INDEX: _piData = _v.otherString.get(_integer).toString(); break; case NISTRING_EMPTY_STRING: _piData = ""; break; } }