/** * Make sure the stream is at the start of an element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToStartElement(final XMLStreamReader streamReader) throws XMLStreamException { while (!streamReader.isStartElement()) { if (streamReader.hasNext()) { streamReader.next() ; } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } } }
/** * Make sure the stream is at the start of an element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToStartElement(final XMLStreamReader streamReader) throws XMLStreamException { while (!streamReader.isStartElement()) { if (streamReader.hasNext()) { streamReader.next() ; } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } } }
/** * Make sure the stream is at the start of an element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToStartElement(final XMLStreamReader streamReader) throws XMLStreamException { while (!streamReader.isStartElement()) { if (streamReader.hasNext()) { streamReader.next() ; } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } } }
/** * Make sure the stream is at the start of an element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToStartElement(final XMLStreamReader streamReader) throws XMLStreamException { while (!streamReader.isStartElement()) { if (streamReader.hasNext()) { streamReader.next() ; } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } } }
/** * Make sure the stream is at the start of the next element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToNextStartElement(final XMLStreamReader streamReader) throws XMLStreamException { if (streamReader.hasNext()) { streamReader.nextTag() ; if (streamReader.isEndElement()) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_1(streamReader.getName())) ; } } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } }
/** * Make sure the stream is at the start of the next element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToNextStartElement(final XMLStreamReader streamReader) throws XMLStreamException { if (streamReader.hasNext()) { streamReader.nextTag() ; if (streamReader.isEndElement()) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_1(streamReader.getName())) ; } } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } }
/** * Make sure the stream is at the start of the next element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToNextStartElement(final XMLStreamReader streamReader) throws XMLStreamException { if (streamReader.hasNext()) { streamReader.nextTag() ; if (streamReader.isEndElement()) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_1(streamReader.getName())) ; } } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } }
/** * Make sure the stream is at the start of the next element. * @param streamReader The current stream reader. * @throws XMLStreamException For parsing errors. */ public static void skipToNextStartElement(final XMLStreamReader streamReader) throws XMLStreamException { if (streamReader.hasNext()) { streamReader.nextTag() ; if (streamReader.isEndElement()) { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_1(streamReader.getName())) ; } } else { throw new XMLStreamException(WSCLogger.i18NLogger.get_webservices_util_StreamHelper_2()) ; } }