コード例 #1
0
ファイル: JAXBHeader.java プロジェクト: JSitesh/ikvm-openjdk
 public XMLStreamReader readHeader() throws XMLStreamException {
   try {
     if (infoset == null) {
       XMLStreamBufferResult sbr = new XMLStreamBufferResult();
       bridge.marshal(jaxbObject, sbr);
       infoset = sbr.getXMLStreamBuffer();
     }
     return infoset.readAsXMLStreamReader();
   } catch (JAXBException e) {
     throw new XMLStreamException2(e);
   }
 }
コード例 #2
0
 public XMLStreamReader readPayload() throws XMLStreamException {
   try {
     if (infoset == null) {
       XMLStreamBufferResult sbr = new XMLStreamBufferResult();
       bridge.marshal(jaxbObject, sbr);
       infoset = sbr.getXMLStreamBuffer();
     }
     return infoset.readAsXMLStreamReader();
   } catch (JAXBException e) {
     // bug 6449684, spec 4.3.4
     throw new WebServiceException(e);
   }
 }
コード例 #3
0
 /*     */ public XMLStreamReader readPayload() throws XMLStreamException {
   /*     */ try {
     /* 264 */ if (this.infoset == null) {
       /* 265 */ XMLStreamBufferResult sbr = new XMLStreamBufferResult();
       /* 266 */ this.bridge.marshal(this.jaxbObject, sbr);
       /* 267 */ this.infoset = sbr.getXMLStreamBuffer();
       /*     */ }
     /* 269 */ XMLStreamReader reader = this.infoset.readAsXMLStreamReader();
     /* 270 */ if (reader.getEventType() == 7)
       /* 271 */ XMLStreamReaderUtil.nextElementContent(reader);
     /* 272 */ return reader;
     /*     */ }
   /*     */ catch (JAXBException e) {
     /* 275 */ throw new WebServiceException(e);
     /*     */ }
   /*     */ }