325N/A setInputStream(s);
325N/A super.setInputStream(s);
325N/A switch (_internalState) {
325N/A processDII();
325N/A throw new NoSuchElementException(CommonResourceBundle.getInstance().getString("message.noMoreEvents"));
325N/A return _eventType;
325N/A processEII(_elementNameTable._array[b & EncodingConstants.INTEGER_3RD_BIT_SMALL_MASK], true);
325N/A return _eventType;
325N/A return _eventType;
325N/A return _eventType;
325N/A return _eventType;
325N/A return _eventType;
325N/A if (addToTable) {
325N/A return _eventType;
325N/A return _eventType;
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.IllegalStateDecodingEII"));
325N/A } catch (IOException e) {
325N/A throw new XMLStreamException(e);
325N/A } catch (FastInfosetException e) {
325N/A throw new XMLStreamException(e);
325N/A } catch (RuntimeException e) {
325N/A /** Test if the current event is of the given type and if the namespace and name match the current namespace and name of the current event.
325N/A * If the namespaceURI is null it is not checked for equality, if the localName is null it is not checked for equality.
325N/A throws XMLStreamException {
325N/A throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.eventTypeNotMatch", new Object[]{getEventTypeString(type)}));
325N/A throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.namespaceURINotMatch", new Object[]{namespaceURI}));
325N/A throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.localNameNotMatch", new Object[]{localName}));
325N/A throw new XMLStreamException(
325N/A CommonResourceBundle.getInstance().getString("message.mustBeOnSTARTELEMENT"), getLocation());
325N/A return getElementText(true);
325N/A if (!startElementRead) {
325N/A throw new XMLStreamException(
325N/A CommonResourceBundle.getInstance().getString("message.mustBeOnSTARTELEMENT"), getLocation());
325N/A throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.unexpectedEOF"));
325N/A throw new XMLStreamException(
325N/A CommonResourceBundle.getInstance().getString("message.getElementTextExpectTextOnly"), getLocation());
325N/A throw new XMLStreamException(
325N/A CommonResourceBundle.getInstance().getString("message.unexpectedEventType")+ getEventTypeString(eventType), getLocation());
325N/A * If other than white space characters, COMMENT, PROCESSING_INSTRUCTION, START_ELEMENT, END_ELEMENT
325N/A if (!currentTagRead) {
325N/A throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.expectedStartOrEnd"), getLocation());
325N/A super.closeIfRequired();
325N/A throw new IllegalArgumentException(CommonResourceBundle.getInstance().getString("message.nullPrefix"));
325N/A * Returns true if the cursor points to a character data event that consists of all whitespace
325N/A * Application calling this method needs to cache the value and avoid calling this method again
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A throw new IllegalArgumentException();
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A return (_currentNamespaceAIIsEnd > 0) ? (_currentNamespaceAIIsEnd - _currentNamespaceAIIsStart) : 0;
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetNamespaceCount"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetNamespacePrefix"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetNamespacePrefix"));
325N/A return _nsContext;
325N/A return _eventType;
325N/A return _characters;
325N/A return _charactersOffset;
325N/A return _charBufferLength;
325N/A return bytesToCopy;
325N/A } catch (IndexOutOfBoundsException e) {
325N/A throw new XMLStreamException(e);
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.InvalidStateForText"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.InvalidStateForText"));
325N/A return _characterEncodingScheme;
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetName"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetLocalName"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetNamespaceURI"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetPrefix"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetPITarget"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetPIData"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetName"));
325N/A throw new IllegalStateException(CommonResourceBundle.getInstance().getString("message.invalidCallingGetAttributeValue"));
325N/A return _algorithmURI;
325N/A return _algorithmId;
325N/A return _algorithmData;
325N/A System.arraycopy(_algorithmData, _algorithmDataOffset, algorithmData, 0, _algorithmDataLength);
325N/A return algorithmData;
325N/A return _algorithmDataOffset;
325N/A return _algorithmDataLength;
325N/A } catch (IndexOutOfBoundsException e) {
325N/A throw new XMLStreamException(e);
325N/A return START_ELEMENT;
325N/A return CHARACTERS;
325N/A return PROCESSING_INSTRUCTION;
325N/A return ENTITY_REFERENCE;
325N/A throw new FastInfosetException(
325N/A } catch (IOException e) {
325N/A throw new XMLStreamException(e);
325N/A } catch (FastInfosetException e) {
325N/A throw new XMLStreamException(e);
325N/A _isAlgorithmDataCloned = true;
325N/A return (_currentNamespaceAIIsEnd > 0) ? (_currentNamespaceAIIsEnd - _currentNamespaceAIIsStart) : 0;
325N/A return _characters;
325N/A return _charactersOffset;
325N/A return _charBufferLength;
325N/A protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
325N/A System.arraycopy(_namespaceAIIsNamespaceName, 0, namespaceAIIsNamespaceName, 0, _namespaceAIIsIndex);
325N/A System.arraycopy(_namespaceAIIsPrefixIndex, 0, namespaceAIIsPrefixIndex, 0, _namespaceAIIsIndex);
325N/A protected final void processEIIWithNamespaces(boolean hasAttributes) throws FastInfosetException, IOException {
325N/A while ((b & EncodingConstants.NAMESPACE_ATTRIBUTE_MASK) == EncodingConstants.NAMESPACE_ATTRIBUTE) {
325N/A _prefixTable.pushScopeWithPrefixEntry(prefix, namespaceName, _prefixIndex, _namespaceNameIndex);
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.EIInamespaceNameNotTerminatedCorrectly"));
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.IllegalStateDecodingEIIAfterAIIs"));
325N/A protected final void processEII(QualifiedName name, boolean hasAttributes) throws FastInfosetException, IOException {
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.qnameOfEIINotInScope"));
325N/A if (_clearAttributes) {
325N/A _clearAttributes = false;
325N/A if (hasAttributes) {
325N/A System.arraycopy(_namespaceAIIsStartStack, 0, namespaceAIIsStartStack, 0, _namespaceAIIsStartStack.length);
325N/A System.arraycopy(_namespaceAIIsEndStack, 0, namespaceAIIsEndStack, 0, _namespaceAIIsEndStack.length);
325N/A _clearAttributes = true;
325N/A final int i = (((b & EncodingConstants.INTEGER_2ND_BIT_LARGE_MASK) << 16) | (read() << 8) | read())
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.decodingAIIs"));
325N/A if (name.prefixIndex > 0 && _prefixTable._currentInScope[name.prefixIndex] != name.namespaceNameIndex) {
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.AIIqNameNotInScope"));
325N/A _duplicateAttributeVerifier.checkForDuplicateAttribute(name.attributeHash, name.attributeId);
325N/A if (addToTable) {
325N/A final int index = (((b & EncodingConstants.INTEGER_2ND_BIT_LARGE_MASK) << 16) | (read() << 8) | read())
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.decodingAIIValue"));
325N/A protected final QualifiedName processEIIIndexMedium(int b) throws FastInfosetException, IOException {
325N/A protected final QualifiedName processEIIIndexLarge(int b) throws FastInfosetException, IOException {
325N/A i = (((read() & EncodingConstants.INTEGER_3RD_BIT_LARGE_LARGE_MASK) << 16) | (read() << 8) | read())
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.qNameMissingNamespaceName"));
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.decodingEII"));
325N/A switch(decodeNonIdentifyingStringOnFirstBit()) {
325N/A case NISTRING_STRING:
325N/A if (_addToTable) {
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.commentIIAlgorithmNotSupported"));
325N/A case NISTRING_INDEX:
325N/A case NISTRING_EMPTY_STRING:
325N/A switch(decodeNonIdentifyingStringOnFirstBit()) {
325N/A case NISTRING_STRING:
325N/A if (_addToTable) {
325N/A throw new FastInfosetException(CommonResourceBundle.getInstance().getString("message.processingIIWithEncodingAlgorithm"));
325N/A case NISTRING_INDEX:
325N/A case NISTRING_EMPTY_STRING:
325N/A protected final void processUnexpandedEntityReference(final int b) throws FastInfosetException, IOException {
325N/A String system_identifier = ((b & EncodingConstants.UNEXPANDED_ENTITY_SYSTEM_IDENTIFIER_FLAG) > 0)
325N/A String public_identifier = ((b & EncodingConstants.UNEXPANDED_ENTITY_PUBLIC_IDENTIFIER_FLAG) > 0)
325N/A protected final void processCIIEncodingAlgorithm(boolean addToTable) throws FastInfosetException, IOException {
325N/A _isAlgorithmDataCloned = false;
325N/A _algorithmURI = _v.encodingAlgorithm.get(_algorithmId - EncodingConstants.ENCODING_ALGORITHM_APPLICATION_START);
325N/A throw new EncodingAlgorithmException(CommonResourceBundle.getInstance().getString("message.URINotPresent", new Object[]{Integer.valueOf(_identifier)}));
325N/A throw new EncodingAlgorithmException(CommonResourceBundle.getInstance().getString("message.identifiers10to31Reserved"));
325N/A if (addToTable) {
325N/A protected final void processAIIEncodingAlgorithm(QualifiedName name, boolean addToTable) throws FastInfosetException, IOException {
325N/A URI = _v.encodingAlgorithm.get(_identifier - EncodingConstants.ENCODING_ALGORITHM_APPLICATION_START);
325N/A throw new EncodingAlgorithmException(CommonResourceBundle.getInstance().getString("message.URINotPresent", new Object[]{Integer.valueOf(_identifier)}));
325N/A throw new EncodingAlgorithmException(CommonResourceBundle.getInstance().getString("message.CDATAAlgorithmNotSupported"));
325N/A throw new EncodingAlgorithmException(CommonResourceBundle.getInstance().getString("message.identifiers10to31Reserved"));
325N/A if (addToTable) {
325N/A protected final void convertEncodingAlgorithmDataToCharacters() throws FastInfosetException, IOException {
325N/A BuiltInEncodingAlgorithmFactory.getAlgorithm(_algorithmId).convertToCharacters(array, buffer);
325N/A final EncodingAlgorithm ea = (EncodingAlgorithm)_registeredEncodingAlgorithms.get(_algorithmURI);
325N/A throw new EncodingAlgorithmException(
325N/A protected void convertBase64AlorithmDataToCharacters(StringBuffer buffer) throws EncodingAlgorithmException, IOException {
325N/A System.arraycopy(_algorithmData, _algorithmDataOffset, base64TaleBytes, base64TaleLength, bytesToCopy);
325N/A } else if (!isBase64Follows()) {
325N/A int taleBytesRemaining = isBase64Follows() ? (_algorithmDataLength - afterTaleOffset) % 3 : 0;
325N/A if (_isAlgorithmDataCloned) {
325N/A System.arraycopy(_algorithmData, _algorithmDataOffset + _algorithmDataLength - taleBytesRemaining,
325N/A private void base64DecodeWithCloning(StringBuffer dstBuffer, byte[] data, int offset, int length) throws EncodingAlgorithmException {
325N/A BuiltInEncodingAlgorithmFactory.base64EncodingAlgorithm.convertToCharacters(array, dstBuffer);
325N/A private void base64DecodeWithoutCloning(StringBuffer dstBuffer, byte[] data, int offset, int length) throws EncodingAlgorithmException {
325N/A BuiltInEncodingAlgorithmFactory.base64EncodingAlgorithm.convertToCharacters(data, offset, length, dstBuffer);
325N/A return _attributes;
325N/A case START_ELEMENT:
325N/A case END_ELEMENT:
325N/A case PROCESSING_INSTRUCTION:
325N/A case CHARACTERS:
325N/A case START_DOCUMENT:
325N/A case END_DOCUMENT:
325N/A case ENTITY_REFERENCE: