Examples of writeTo()


Examples of org.jnode.net.ethernet.EthernetAddress.writeTo()

            skbuf.set16(0, 0x0001); // Hardware type
            skbuf.set16(2, 0x0800); // Protocol type
            skbuf.set(4, 6); // Hardware address size
            skbuf.set(5, 4); // Protocol address size
            skbuf.set16(6, 0x01); // Operation APR request
            mac.writeTo(skbuf, 8); // Source mac
            skbuf.set32(14, 0xc0a8c853); // Source IP
            skbuf.set32(14, 0xc0a8c801); // Target IP

            // Prefix ethernet header
            skbuf.insert(14);
View Full Code Here

Examples of org.jnode.vm.facade.HeapStatistics.writeTo()

            stats.setMinimumTotalSize(argMinTotalSize.getValue());
        }

        BufferedWriter writer = new BufferedWriter(getOutput().getWriter(), 2048);
        try {
            stats.writeTo(writer);
        } finally {
            writer.flush();
        }
    }
View Full Code Here

Examples of org.jpos.emv.EMVTagSequence.writeTo()

        tagValueSequence.add(new LiteralEMVTag(EMVStandardTagType.TRANSACTION_CURRENCY_CODE_0x5F2A, "840"));

        ISOMsg field48 = new ISOMsg(48);

        tagValueSequence.writeTo(field48);

        msg.set(field48);

        msg.recalcBitMap();
View Full Code Here

Examples of org.jpos.tlv.GenericTagSequence.writeTo()

        tagValueSequence.add(new LiteralTagValue("0165", "M"));
        tagValueSequence.add(new LiteralTagValue("0023", "CT2"));

        ISOMsg field48 = new ISOMsg(48);

        tagValueSequence.writeTo(field48);

        msg.set(field48);

        msg.recalcBitMap();
View Full Code Here

Examples of org.jvnet.hk2.config.Dom.writeTo()

        String s = null;
        try {
            writer = xmlFactory.createXMLStreamWriter(new BufferedOutputStream(bos));
            indentingXMLStreamWriter = new IndentingXMLStreamWriter(writer);
            Dom configBeanDom = Dom.unwrap(configBean);
            configBeanDom.writeTo(configBeanDom.model.getTagName(), indentingXMLStreamWriter);
            indentingXMLStreamWriter.flush();
            s = bos.toString();
        } catch (XMLStreamException e) {
            if (LOG.isLoggable(Level.FINE)) {
                LOG.log(Level.FINE, "Cannot serialize the configbean: " + configBean.toString(), e);
View Full Code Here

Examples of org.jvnet.staxex.Base64Data.writeTo()

                case STATE_TEXT_AS_OBJECT: {
                    final CharSequence c = (CharSequence)readContentObject();
                    if (c instanceof Base64Data) {
                        try {
                            Base64Data bd = (Base64Data)c;
                            bd.writeTo(writer);
                        } catch (IOException e) {
                          throw new XMLStreamException(e);
                        }
                    } else {
                         writer.writeCharacters(c.toString());
View Full Code Here

Examples of org.jzkit.a2j.codec.runtime.BEROutputStream.writeTo()

                    logger.debug("Sending " + ToStringBuilder.reflectionToString(pdu));

                    BEROutputStream encoder = new BEROutputStream(DEFAULT_BUFFER_SIZE, charsetEncoding, ProtocolOIDRegister.getInstance());
                    PDU_codec.getCodec().serialize(encoder, protocolHandler.produceInitializingRequest(), false, "PDU");
                    encoder.flush();
                    encoder.writeTo(outputStream);
                    this.outputStream.flush();
                    protocolHandler.initializingRequestSubmitted();
                }
                catch (ProtocolException e)
                {
View Full Code Here

Examples of org.kohsuke.stapler.export.Model.writeTo()

            w.println("<changes>");
            for (AbstractBuild build : builds) {
                w.println("<build number='"+build.getNumber()+"'>");
                ChangeLogSet<?> cs = build.getChangeSet();
                Model p = new ModelBuilder().get(cs.getClass());
                p.writeTo(cs,Flavor.XML.createDataWriter(cs,w));
                w.println("</build>");
            }
            w.println("</changes>");
            w.flush();
            break;
View Full Code Here

Examples of org.mikha.utils.net.UrlAndParams.writeTo()

        {
            HttpServletRequest req = (HttpServletRequest) ((PageContext) getJspContext()).getRequest();
            w.append(req.getContextPath());
        }

        url.writeTo(true, w);
        if (var != null)
        {
            getJspContext().setAttribute(var, w.toString());
        }
    }
View Full Code Here

Examples of org.modeshape.common.collection.Problems.writeTo()

        Problems problemsDuringImport = new SimpleProblems();

        CndImporter cndImporter = new CndImporter(new ExecutionContext());
        cndImporter.importFrom(cndInputStream, problemsDuringImport, null);
        if (problemsDuringImport.hasErrors()) {
            problemsDuringImport.writeTo(LOGGER);
            return null;
        }

        return cndImporter;
    }
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.