/*     */ public InputStream getContentAsStream() throws IOException /*     */ {
   /* 272 */ if (this.source != null) {
     /* 273 */ InputStream is = null;
     /*     */
     /* 276 */ if (((this.source instanceof StreamSource)) && (!isFastInfoset())) {
       /* 277 */ is = ((StreamSource) this.source).getInputStream();
       /*     */ }
     /* 279 */ else if ((FastInfosetReflection.isFastInfosetSource(this.source))
         && (isFastInfoset()))
     /*     */ {
       /*     */ try
       /*     */ {
         /* 284 */ is = FastInfosetReflection.FastInfosetSource_getInputStream(this.source);
         /*     */ }
       /*     */ catch (Exception e) {
         /* 287 */ throw new IOException(e.toString());
         /*     */ }
       /*     */ }
     /*     */
     /* 291 */ if (is != null) {
       /* 292 */ if (lazyContentLength) {
         /* 293 */ return is;
         /*     */ }
       /* 295 */ if (!(is instanceof ByteInputStream)) {
         /* 296 */ log.severe("SAAJ0546.soap.stream.incorrect.type");
         /* 297 */ throw new IOException("Internal error: stream not of the right type");
         /*     */ }
       /* 299 */ return (ByteInputStream) is;
       /*     */ }
     /*     */
     /*     */ }
   /*     */
   /* 305 */ ByteOutputStream b = new ByteOutputStream();
   /*     */
   /* 307 */ Envelope env = null;
   /*     */ try
   /*     */ {
     /* 310 */ env = (Envelope) getEnvelope();
     /* 311 */ env.output(b, isFastInfoset());
     /*     */ }
   /*     */ catch (SOAPException soapException) {
     /* 314 */ log.severe("SAAJ0547.soap.cannot.externalize");
     /* 315 */ throw new SOAPIOException(
         "SOAP exception while trying to externalize: ", soapException);
     /*     */ }
   /*     */
   /* 320 */ return b.newInputStream();
   /*     */ }