Examples of writeObject()


Examples of org.infinispan.marshall.AdvancedExternalizer.writeObject()

         } else {
            throw new CacheException(String.format(
                  "Object of type %s is not supported by externalizer %s",
                  object.getClass().getName(), this.getClass().getName()));
         }
         ext.writeObject(output, object);
      }

      @Override
      public Object readObject(ObjectInput input) throws IOException, ClassNotFoundException {
         int index = input.read();
View Full Code Here

Examples of org.jboss.fresh.io.BufferObjectWriter.writeObject()

        HistoryItem hi = (HistoryItem) it.next();

        if(objs) {
          if(oout == null)
            oout = new BufferObjectWriter(getStdOut());
          oout.writeObject(pout);
        } else {
          StringBuffer sb = new StringBuffer();
          if(time) {
            sb.append(sdf.format(new Date(hi.getTime())));
            sb.append(" ");
View Full Code Here

Examples of org.jboss.invocation.MarshalledValueOutputStream.writeObject()

            {
               try
               {
                  ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
                  MarshalledValueOutputStream maos = new MarshalledValueOutputStream(baos);
                  maos.writeObject(list);
                  maos.close();
                  retval.add(baos.toByteArray());
               }
               catch (IOException e)
               {
View Full Code Here

Examples of org.jboss.marshalling.Marshaller.writeObject()

        @Override
        protected void sendResponse(final OutputStream outputStream) throws IOException {
            final Marshaller marshaller = getMarshaller();
            marshaller.start(createByteOutput(outputStream));
            marshaller.writeByte(StandaloneClientProtocol.PARAM_SERVER_MODEL);
            marshaller.writeObject(serverController.getServerModel());
            marshaller.finish();
        }
    }

    private class ApplyUpdates extends ManagementResponse {
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectOutputStream.writeObject()

     
      ByteArrayOutputStream os = new ByteArrayOutputStream();
     
      JBossObjectOutputStream oos = new JBossObjectOutputStream(os);
     
      oos.writeObject(tm);
     
      oos.close();
     
      byte[] bytes = os.toByteArray();
     
View Full Code Here

Examples of org.jboss.serial.io.JBossObjectOutputStreamSharedTree.writeObject()

  {
    ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
    ObjectOutputStream objOut = new JBossObjectOutputStreamSharedTree(byteOut);

    TestCircularReferences circular = TestCircularReferences.createTestInstance();
    objOut.writeObject(circular.getReferences());
    objOut.writeObject(circular);
    objOut.reset();
    objOut.writeObject(circular.getReferences());
   
    ObjectInputStream objInput = new JBossObjectInputStreamSharedTree(new ByteArrayInputStream(byteOut.toByteArray()));
View Full Code Here

Examples of org.jboss.test.messaging.jms.message.SimpleJMSStreamMessage.writeObject()

        m.writeChar('c');
        m.writeDouble(1.0D);
        m.writeFloat(2.0F);
        m.writeInt(3);
        m.writeLong(4L);
        m.writeObject("object");
        m.writeShort((short)5);
        m.writeString("stringvalue");

        return m;
    }
View Full Code Here

Examples of org.jboss.util.stream.CustomObjectOutputStream.writeObject()

   {
      try {
         ByteArrayOutputStream os = new ByteArrayOutputStream();
         ObjectOutputStream oos = new CustomObjectOutputStream(os);

         oos.writeObject(obj);
         oos.flush();
         byte[] a = os.toByteArray();
         os.close();
         return a;
      }
View Full Code Here

Examples of org.jboss.util.stream.MarshalledValueOutputStream.writeObject()

    */
   byte[] objectToByteBufferInternal (Object obj) throws Exception
   {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      MarshalledValueOutputStream mvos = new MarshalledValueOutputStream(baos);
      mvos.writeObject(obj);
      mvos.flush();
      return baos.toByteArray();
   }
  
   /**
 
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverWriter.writeObject()

        PROGRAM_STATE_SERIALIZATION.set(execution);

        try {
            RiverWriter w = new RiverWriter(tmpFile, execution.getOwner());
            try {
                w.writeObject(this);
            } finally {
                w.close();
            }
            Util.deleteFile(f);
            if (!tmpFile.renameTo(f)) {
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.