Examples of BufferedStreamResult


Examples of org.jboss.ws.core.binding.BufferedStreamResult

/* 60 */       throw new IllegalArgumentException("Element value cannot be null");
/* 61 */     if (!(value instanceof Element)) {
/* 62 */       throw new IllegalArgumentException("Value is not a Element: " + value.getClass().getName());
/*    */     }
/* 64 */     String xmlFragment = DOMWriter.printNode((Element)value, false);
/* 65 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/*    */       }
/*    */     }
/*    */     String valueStr;
/* 66 */     NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
/* 67 */     String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, null, attributes, true);
/* 68 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/* 59 */       throw new IllegalArgumentException("SOAPElement value cannot be null");
/* 60 */     if (!(value instanceof SOAPElement)) {
/* 61 */       throw new IllegalArgumentException("Value is not a SOAPElement: " + value.getClass().getName());
/*    */     }
/* 63 */     String xmlFragment = DOMWriter.printNode((SOAPElement)value, false);
/* 64 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/* 106 */       StringWriter strwr = new StringWriter();
/* 107 */       delegate.marshal(value, strwr);
/* 108 */       String xmlFragment = strwr.toString();
/*     */
/* 110 */       log.debug("serialized: " + xmlFragment);
/* 111 */       return new BufferedStreamResult(xmlFragment);
/*     */     }
/*     */     catch (RuntimeException rte)
/*     */     {
/* 115 */       throw rte;
/*     */     }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/* 155 */       serializeArrayComponents(compXmlName, compXmlType, serContext, objArr);
/* 156 */       this.buffer.append("</" + nodeName + ">");
/* 157 */       String xmlFragment = this.buffer.toString();
/*     */
/* 159 */       log.debug("serialized: " + xmlFragment);
/* 160 */       return new BufferedStreamResult(xmlFragment);
/*     */     }
/*     */     catch (RuntimeException e)
/*     */     {
/* 164 */       throw e;
/*     */     }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/*  90 */       DOMResult domResult = (DOMResult)result;
/*  91 */       this.source = new DOMSource(domResult.getNode());
/*     */     }
/*  93 */     else if ((result instanceof BufferedStreamResult))
/*     */     {
/*  95 */       BufferedStreamResult br = (BufferedStreamResult)result;
/*  96 */       ByteArrayOutputStream baos = (ByteArrayOutputStream)br.getOutputStream();
/*  97 */       this.source = new BufferedStreamSource(baos.toByteArray());
/*     */     }
/*     */     else
/*     */     {
/* 101 */       throw new IllegalArgumentException("Unsupported result type: " + result);
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/*    */
/* 64 */     String valueStr = SimpleTypeBindings.marshalDateTime((Calendar)value);
/*    */
/* 66 */     NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
/* 67 */     String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, null, attributes, true);
/* 68 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/* 55 */     value = JavaUtils.getPrimitiveValueArray(value);
/* 56 */     String valueStr = SimpleTypeBindings.marshalHexBinary((byte[])(byte[])value);
/*    */
/* 58 */     NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
/* 59 */     String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, null, attributes, true);
/* 60 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/*    */     {
/* 73 */       value = JavaUtils.getPrimitiveValueArray(value);
/* 74 */       String valueStr = SimpleTypeBindings.marshalBase64((byte[])(byte[])value);
/* 75 */       xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, null, attributes, true);
/*    */     }
/* 77 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here

Examples of org.jboss.ws.core.binding.BufferedStreamResult

/*    */     }
/*    */
/* 70 */     String valueStr = SimpleTypeBindings.marshal(xmlType.getLocalPart(), value, nsRegistry);
/*    */
/* 73 */     String xmlFragment = wrapValueStr(xmlName, valueStr, nsRegistry, null, attributes, true);
/* 74 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.