Java Code Examples for com.sun.xml.internal.fastinfoset.util.CharArrayString

The following examples show how to use com.sun.xml.internal.fastinfoset.util.CharArrayString. These examples are extracted from open source projects. 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
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;
    }
}
 
Example 2
Source Project: TencentKona-8   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}
 
Example 3
Source Project: jdk8u60   Source File: StAXDocumentParser.java    License: GNU General Public License v2.0 6 votes vote down vote up
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;
    }
}
 
Example 4
Source Project: jdk8u60   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}
 
Example 5
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;
    }
}
 
Example 6
Source Project: openjdk-jdk8u   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}
 
Example 7
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;
    }
}
 
Example 8
Source Project: openjdk-jdk8u-backup   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}
 
Example 9
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;
    }
}
 
Example 10
Source Project: openjdk-jdk9   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}
 
Example 11
Source Project: hottub   Source File: StAXDocumentParser.java    License: GNU General Public License v2.0 6 votes vote down vote up
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;
    }
}
 
Example 12
Source Project: hottub   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}
 
Example 13
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;
    }
}
 
Example 14
Source Project: openjdk-8-source   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}
 
Example 15
Source Project: openjdk-8   Source File: StAXDocumentParser.java    License: GNU General Public License v2.0 6 votes vote down vote up
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;
    }
}
 
Example 16
Source Project: openjdk-8   Source File: Decoder.java    License: GNU General Public License v2.0 6 votes vote down vote up
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 "";
    }
}