public static boolean nameEquals ( final XMLStreamReader reader , final String namespace , final String localName ) { if ( ! reader . getLocalName ( ) . equals ( localName ) ) { return false ; } if ( namespace == null ) { return true ; } final String namespaceURI = reader . getNamespaceURI ( ) ; if ( namespaceURI == null ) { return StringUtils . isEmpty ( namespace ) ; } return namespaceURI . equals ( StringUtils . defaultString ( namespace ) ) ; }
Method nameEquals .