Changeset 1966
- Timestamp:
- 06/01/12 13:09:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUXMLStreamReader.java
r1965 r1966 73 73 } 74 74 75 75 76 76 @Override 77 77 public int getAttributeCount() { … … 339 339 } 340 340 341 341 342 342 long getByteCount() { 343 343 return stream.count; 344 344 } 345 345 346 346 347 347 boolean readStart(String namespaceURI, String localName, boolean required) 348 348 throws XMLStreamException { … … 474 474 } 475 475 476 476 477 477 String readString(boolean required) throws XMLStreamException { 478 478 // System.err.println("readString @ " + toReadable(reader)); … … 551 551 } 552 552 553 553 554 554 String dumpState() { 555 555 StringBuilder sb = new StringBuilder(); … … 659 659 } 660 660 661 661 662 private static void copyStartElement(XMLStreamReader from, 662 663 XMLStreamWriter to) throws XMLStreamException { … … 673 674 } 674 675 } 675 676 676 677 final String prefix = from.getPrefix(); 677 678 final NamespaceContext from_ctx = from.getNamespaceContext(); … … 682 683 to.setPrefix(prefix, from_ctx.getNamespaceURI(prefix)); 683 684 } 684 685 685 686 to.writeStartElement(prefix, from.getLocalName(), 686 687 from.getNamespaceURI()); … … 714 715 } 715 716 716 717 717 718 static { 718 factory = (XMLInputFactory2) XMLInputFactory 2.newInstance();719 factory = (XMLInputFactory2) XMLInputFactory.newInstance(); 719 720 // Stax settings 720 721 factory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, Boolean.TRUE);
Note: See TracChangeset
for help on using the changeset viewer.