mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8011653: Upgrade JDK8 to JAXP 1.5
Reviewed-by: alanb, dfuchs
This commit is contained in:
parent
c76e4b0e46
commit
f0330c4199
93 changed files with 1767 additions and 225 deletions
|
@ -43,6 +43,9 @@ public class StaxXMLInputSource {
|
|||
XMLEventReader fEventReader ;
|
||||
XMLInputSource fInputSource ;
|
||||
|
||||
//indicate if the source is resolved by a resolver
|
||||
boolean fHasResolver = false;
|
||||
|
||||
/** Creates a new instance of StaxXMLInputSource */
|
||||
public StaxXMLInputSource(XMLStreamReader streamReader) {
|
||||
fStreamReader = streamReader ;
|
||||
|
@ -57,6 +60,12 @@ public class StaxXMLInputSource {
|
|||
fInputSource = inputSource ;
|
||||
|
||||
}
|
||||
|
||||
public StaxXMLInputSource(XMLInputSource inputSource, boolean hasResolver){
|
||||
fInputSource = inputSource ;
|
||||
fHasResolver = hasResolver;
|
||||
}
|
||||
|
||||
public XMLStreamReader getXMLStreamReader(){
|
||||
return fStreamReader ;
|
||||
}
|
||||
|
@ -72,4 +81,8 @@ public class StaxXMLInputSource {
|
|||
public boolean hasXMLStreamOrXMLEventReader(){
|
||||
return (fStreamReader == null) && (fEventReader == null) ? false : true ;
|
||||
}
|
||||
|
||||
public boolean hasResolver() {
|
||||
return fHasResolver;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue