Examples of writeObject()


Examples of com.higherfrequencytrading.chronicle.Excerpt.writeObject()

        Excerpt excerpt = tsc.createExcerpt();
        int objects = 5000000;
        long start = System.nanoTime();
        for (int i = 0; i < objects; i++) {
            excerpt.startExcerpt(28);
            excerpt.writeObject(BigDecimal.valueOf(i % 1000));
            excerpt.finish();
        }
        for (int i = 0; i < objects; i++) {
            assertTrue(excerpt.index(i));
            BigDecimal bd = (BigDecimal) excerpt.readObject();
View Full Code Here

Examples of com.impossibl.postgres.api.jdbc.PGSQLOutput.writeObject()

    @Override
    public void writeSQL(SQLOutput stream) throws SQLException {
      PGSQLOutput out = (PGSQLOutput) stream;
      out.writeString(str);
      out.writeString(str2);
      out.writeObject(id);
      out.writeDouble(num);
    }

  }
View Full Code Here

Examples of com.jgraph.editor.JGraphEditorModel.writeObject()

  void writeFile(String fileName) throws Exception {
    JGraphEditorModel model = WorkflowPanel.graphEditor.getModel();
    OutputStream out = null;
    try {
      out = model.getOutputStream(fileName);
      model.writeObject(this, out);
      out.flush();
    } finally {
      if (out != null)
        out.close();
    }
View Full Code Here

Examples of com.lmax.ant.paralleljunit.util.net.SocketConnection.writeObject()

                        socketConnection.close();
                        System.exit(0);
                        break;
                    case RUN_TEST:
                        formatters.clear();
                        socketConnection.writeObject(runTest(socketConnection.<TestSpecification>readObject(), paramsRemote));
                        break;
                    default:
                        throw new RuntimeException("All hell broke loose");
                }
            }
View Full Code Here

Examples of com.maverick.crypto.asn1.DEROutputStream.writeObject()

        ByteArrayOutputStream   bOut = new ByteArrayOutputStream();
        DEROutputStream         dOut = new DEROutputStream(bOut);

        try
        {
            dOut.writeObject(c.getTBSCertificate());

            return bOut.toByteArray();
        }
        catch (IOException e)
        {
View Full Code Here

Examples of com.mongodb.DBEncoder.writeObject()

        private byte[] encode(DBEncoderFactory factory, DBObject dbo) {
            Object id = dbo.get("_id");
            _checkKeys(dbo);
            DBEncoder encoder = factory.create();
            OutputBuffer buffer = new BasicOutputBuffer();
            encoder.writeObject(buffer, dbo);
            return buffer.toByteArray();
        }

        private void _checkKeys(DBObject o) {
            for (String s : o.keySet()) {
View Full Code Here

Examples of com.ovea.jetty.session.serializer.jboss.serial.io.JBossObjectOutputStream.writeObject()

*/
public final class JBossSerializer extends BinarySerializer {
    @Override
    protected void write(OutputStream out, Object o) throws Exception {
        JBossObjectOutputStream oos = new JBossObjectOutputStream(out);
        oos.writeObject(o);
    }

    @Override
    protected Object read(InputStream is) throws Exception {
        JBossObjectInputStream ois = new JBossObjectInputStream(is);
View Full Code Here

Examples of com.psddev.cms.tool.ToolPageContext.writeObject()

                                                    }

                                                } else {
                                                    for (Iterator<Object> i = CollectionUtils.recursiveIterable(itemState.get(field.getInternalName())).iterator(); i.hasNext();) {
                                                        Object value = i.next();
                                                        page.writeObject(value);
                                                        if (i.hasNext()) {
                                                            page.writeHtml(", ");
                                                        }
                                                    }
                                                }
View Full Code Here

Examples of com.psddev.dari.util.HtmlWriter.writeObject()

            try {
                for (Iterator<Object> i = CollectionUtils.recursiveIterable(itemState.get(getInternalName())).iterator(); i.hasNext();) {
                    Object value = i.next();

                    html.writeObject(value);

                    if (i.hasNext()) {
                        html.write(", ");
                    }
                }
View Full Code Here

Examples of com.sleepycat.bdb.bind.serial.SerialOutput.writeObject()

    int runSerialShared()
        throws Exception {

        fo.reset();
        SerialOutput oos = new SerialOutput(fo, jtc);
        oos.writeObject(new Data());
        byte[] bytes = fo.toByteArray();
        FastInputStream fi = new FastInputStream(bytes);
        SerialInput ois = new SerialInput(fi, jtc);
        ois.readObject();
        return (bytes.length - SerialOutput.getStreamHeader().length);
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.