Examples of writeTo()


Examples of com.sun.xml.ws.api.server.SDDocument.writeTo()

                        }

                        public InputStream getByteStream() {
                            ByteArrayBuffer bab = new ByteArrayBuffer();
                            try {
                                doc.writeTo(null, resolver, bab);
                            } catch (IOException ioe) {
                                throw new WebServiceException(ioe);
                            }
                            return bab.newInputStream();
                        }
View Full Code Here

Examples of com.sun.xml.ws.security.opt.crypto.JAXBData.writeTo()

            try {
                ExcC14NParameterSpec spec = (ExcC14NParameterSpec)_transformParameterSpec;
                if(spec != null){
                    _canonicalizer.setInclusivePrefixList(spec.getPrefixList());
                }
                jd.writeTo(_canonicalizer);
                _canonicalizer.flush();
            } catch ( XMLStreamException ex ) {
                logger.log(Level.SEVERE, LogStringsMessages.WSS_1759_TRANSFORM_ERROR(ex.getMessage()),ex);
                throw new TransformException(ex);
            }catch (XWSSecurityException ex) {
View Full Code Here

Examples of com.sun.xml.ws.util.ByteArrayBuffer.writeTo()

                }
               
                if(dump)
                    dump(buf, "HTTP request", reqHeaders);
               
                buf.writeTo(con.getOutput());
            } else {
                // Set static Content-Type
                reqHeaders.put("Content-Type", Collections.singletonList(ct.getContentType()));
                if (ct.getAcceptHeader() != null) {
                    reqHeaders.put("Accept", Collections.singletonList(ct.getAcceptHeader()));
View Full Code Here

Examples of com.trifork.riak.RPB.RpbPutReq.writeTo()

        RpbPutReq req = builder.build();

        int len = req.getSerializedSize();
        dout.writeInt(len + 1);
        dout.write(MSG_PutReq);
        req.writeTo(dout);
      }

      dout.flush();

      try {
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.io.OutputStreamByteArray.writeTo()

            Assert.assertTrue(new String(isba.getByteArray()).equals(inputData));

            // Generate output.
            OutputStreamByteArray osba = new OutputStreamByteArray(
                    outputData.getBytes());
            osba.writeTo(output);

        } catch (IOException e) {
            throw new ResourceMigrationException("unlikely", e);
        }
    }
View Full Code Here

Examples of com.vtence.molecule.Body.writeTo()

            simple.setCode(response.statusCode());
            simple.setDescription(response.statusText());
            commitHeaders(simple, response);
            commitCookies(simple, response);
            Body body = response.body();
            body.writeTo(simple.getOutputStream(), response.charset());
            body.close();
        }

        private void commitHeaders(org.simpleframework.http.Response simple, Response response) {
            for (String name : response.names()) {
View Full Code Here

Examples of com.xmlcalabash.runtime.XPipeline.writeTo()

        for (String port : inputs.keySet()) {
            if (inputports.contains(port)) {
                pipeline.clearInputs(port);
                for (XdmNode node : inputs.get(port)) {
                    pipeline.writeTo(port, node);
                }
            } else {
                throw new XProcException(step.getNode(), "Eval pipeline has no input port named '" + port + "'");
            }
        }
View Full Code Here

Examples of de.fhkn.in.uce.stun.message.Message.writeTo()

        final InetSocketAddress targetEndpoint = new InetSocketAddress(controlConnection.getInetAddress(),
                controlConnection.getPort());
        logger.debug("Sending connection request response with {} to source", targetEndpoint.toString()); //$NON-NLS-1$
        successResponse.addAttribute(new XorMappedAddress(targetEndpoint));
        successResponse.addAttribute(new EndpointClass(EndpointCategory.PUBLIC));
        successResponse.writeTo(connReq.getControlConnection().getOutputStream());
    }

    private void callTarget(final UserData target, final Message connectionRequestFromSource) throws Exception {
        logger.debug("Calling target {}", target.getUserId()); //$NON-NLS-1$
        final Socket toTarget = target.getSocketToUser();
View Full Code Here

Examples of de.iritgo.aktera.comm.BinaryWrapper.writeTo()

            OutputStream out = hres.getOutputStream();

            buffOut = new BufferedOutputStream(out, BUFFER_SIZE);
            //            }
            data.writeTo(buffOut);
            log.trace("Wrote Buffer.");
          }
          catch (IOException e)
          {
            e.printStackTrace();
View Full Code Here

Examples of erjang.EBinary.writeTo()

    Deflater defl = new Deflater();
    BARR bos = new BARR();
    DeflaterOutputStream dos = new DeflaterOutputStream(bos, defl);
   
    try {
      b.writeTo(dos);
      dos.close();
    } catch (IOException e) {
      throw new InternalError("should not happen");
    }
   
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.