Examples of writeObject()


Examples of org.jfree.serializer.SerializerHelper.writeObject()

  private void writeObject(final ObjectOutputStream out)
     throws IOException
  {
    out.defaultWriteObject();
    final SerializerHelper helper = SerializerHelper.getInstance();
    helper.writeObject(scaleValuePaint, out);
    helper.writeObject(rangePaint, out);
    helper.writeObject(fillPaint, out);
    helper.writeObject(outlineStroke, out);
    helper.writeObject(defaultShape, out);
    helper.writeObject(tickMarkPaint, out);
View Full Code Here

Examples of org.mozilla.javascript.serialize.ScriptableOutputStream.writeObject()

                }
            };
            // sout.addExcludedName("Xml");
            // sout.addExcludedName("global");           

            sout.writeObject(obj);
            sout.flush();
        } finally {
            Context.exit();
        }
    }
View Full Code Here

Examples of org.netbeans.modules.dbschema.migration.archiver.XMLOutputStream.writeObject()

        XMLOutputStream xmlOutput = new XMLOutputStream(stream);

        try
        {
          mappingClass.preArchive();    // call pre archive hook
          xmlOutput.writeObject(mappingClass);

          // update modified flags for the mapping and persistence
          // classes after save
          mappingClass.setModified(false);
          getPersistenceClass(mappingClass).setModified(false);
View Full Code Here

Examples of org.nustaq.kson.Kson.writeObject()

            .map("other", OtherPojoConfigItem.class);
        SomePojoConfig result = (SomePojoConfig) kk.readObject( new File("./src/test/kson/test.kson"));
        Assert.assertTrue(result.aList.get(1).nameList[0].equals("Short"));
        Assert.assertTrue(result.untypedList.size() == 2);

        String res = kk.writeObject(result);
        System.out.println(res);

        Object reRead = kk.readObject(res);
        Assert.assertTrue(DeepEquals.deepEquals(result, reRead));
View Full Code Here

Examples of org.nustaq.net.TCPObjectSocket.writeObject()

        // send request
        HashMap toWrite = new HashMap();
        toWrite.put("Greetings form year ", 2014 );
        toWrite.put("Random ", Math.random() );
        socket.writeObject(toWrite);
        socket.flush();                             // <== important, else nothing happens !

        // await 2 responses
        System.out.println(socket.readObject());
        System.out.println(socket.readObject());
View Full Code Here

Examples of org.nustaq.serialization.FSTObjectOutput.writeObject()

        public void testCustomSerializer() throws Exception {
                FSTConfiguration FST = FSTConfiguration.createDefaultConfiguration();
                //FST.setForceSerializable(true);
                FST.registerSerializer(Bug34.NonSerializableClass.class, new Serializer(), false);
                FSTObjectOutput out = FST.getObjectOutput();
                out.writeObject(new Bug34.NonSerializableClass());

                FSTObjectInput in = FST.getObjectInput(out.getCopyOfWrittenBuffer());
                assertEquals(NonSerializableClass.class, in.readObject().getClass());
        }
View Full Code Here

Examples of org.openide.util.io.NbObjectOutputStream.writeObject()

    }

    private void saveJobSettings(IngestModuleFactory factory, IngestModuleIngestJobSettings settings) {
        try {
            try (NbObjectOutputStream out = new NbObjectOutputStream(new FileOutputStream(getModuleSettingsFilePath(factory)))) {
                out.writeObject(settings);
            }
        } catch (IOException ex) {
            String logMessage = String.format("Error saving ingest job settings for %s module for %s context", factory.getModuleDisplayName(), launcherContext); //NON-NLS
            logger.log(Level.SEVERE, logMessage, ex);
            String userMessage = NbBundle.getMessage(this.getClass(), "IngestJobConfigurator.saveJobSettings.usermsg", factory.getModuleDisplayName());
View Full Code Here

Examples of org.pentaho.reporting.libraries.serializer.SerializerHelper.writeObject()

    final int size = shapes.size();
    out.writeInt(size);
    for (int i = 0; i < size; i++)
    {
      final Shape s = (Shape) shapes.get(i);
      helper.writeObject(s, out);
    }
  }

  private void readObject(final ObjectInputStream in)
      throws IOException, ClassNotFoundException
View Full Code Here

Examples of org.quickconnectfamily.json.JSONOutputStream.writeObject()

    aMap.put("aNumber",blah);
    aMap.put(20,"some other stuff" );
    aMap.put("aTester",new Tester());
   
    try {
      testOut.writeObject(aMap);
      closeTheWriterIn(testOut);
      File testFile = new File("test.json");
      assertTrue(testFile.exists());
     
    } catch (JSONException e) {
View Full Code Here

Examples of org.teiid.netty.handler.codec.serialization.CompactObjectOutputStream.writeObject()

        ChannelBufferOutputStream bout =
            new ChannelBufferOutputStream(dynamicBuffer(
                    estimatedLength, ctx.getChannel().getConfig().getBufferFactory()));
        bout.write(LENGTH_PLACEHOLDER);
        final CompactObjectOutputStream oout = new CompactObjectOutputStream(bout);
        oout.writeObject(e.getMessage());
        ExternalizeUtil.writeCollection(oout, oout.getReferences());
        oout.flush();
        oout.close();

        ChannelBuffer encoded = bout.buffer();
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.