Examples of readObject()


Examples of org.jboss.soa.esb.util.ContextObjectInputStream.readObject()

        ByteArrayInputStream bistream = new ByteArrayInputStream(bostream.toByteArray());
        ObjectInputStream input = new ContextObjectInputStream(bistream);
       
        try
        {
            return (MessageImpl) input.readObject();
        }
        catch (final IOException ioe)
        {
            throw ioe ;
        }
View Full Code Here

Examples of org.jboss.util.stream.CustomObjectInputStreamWithClassloader.readObject()

         throws IOException, ClassNotFoundException
   {
      ByteArrayInputStream is = new ByteArrayInputStream(a);
      ObjectInputStream ois =
   new CustomObjectInputStreamWithClassloader(is, cl);
      Object obj = ois.readObject();
      is.close();
      return obj;
   }

   /**
 
View Full Code Here

Examples of org.jboss.util.stream.MarshalledValueInputStream.readObject()

         return null;
      }

      ByteArrayInputStream bais = new ByteArrayInputStream(buffer);
      MarshalledValueInputStream mvis = new MarshalledValueInputStream(bais);
      return mvis.readObject();
   }
  
   /**
    * Serializes an object into a byte buffer.
    * The object has to implement interface Serializable or Externalizable
View Full Code Here

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

private void readObject(final ObjectInputStream in)
     throws IOException, ClassNotFoundException
{
   in.defaultReadObject();
   final SerializerHelper helper = SerializerHelper.getInstance();
   scaleValuePaint = (Paint) helper.readObject(in);
   rangePaint = (Paint) helper.readObject(in);
   fillPaint = (Paint) helper.readObject(in);
   outlineStroke = (Stroke) helper.readObject(in);
   defaultShape = (Shape) helper.readObject(in);
   tickMarkPaint = (Paint) helper.readObject(in);
View Full Code Here

Examples of org.jpedal.io.PdfFileReader.readObject()

               //byte[] stream= metadataObj.DecodedStream;

               //start old
               //get data
               MetadataObject oldMetaDataObj =new MetadataObject(objectRef);
               objectReader.readObject(oldMetaDataObj);
               byte[] oldstream= oldMetaDataObj.getDecodedStream();
               /** breaks on encrypted (ie preptool)
                boolean failed=PdfReader.checkStreamsIdentical(stream,oldstream);

                if(failed)
View Full Code Here

Examples of org.jruby.util.JRubyObjectInputStream.readObject()

        try {
            ByteList byteList = str.convertToString().getByteList();
            ByteArrayInputStream bais = new ByteArrayInputStream(byteList.getUnsafeBytes(), byteList.getBegin(), byteList.getRealSize());
            ObjectInputStream ois = new JRubyObjectInputStream(context.getRuntime(), bais);

            dataWrapStruct(ois.readObject());

            return this;
        } catch (IOException ioe) {
            throw context.getRuntime().newIOErrorFromException(ioe);
        } catch (ClassNotFoundException cnfe) {
View Full Code Here

Examples of org.mozilla.javascript.serialize.ScriptableInputStream.readObject()

                        return ((SerializationProxy) obj).getObject(RhinoEngine.this);
                    }
                    return super.resolveObject(obj);
                }
            };
            return sin.readObject();
        } finally {
            Context.exit();
        }
    }
View Full Code Here

Examples of org.netbeans.modules.dbschema.migration.archiver.XMLInputStream.readObject()

            {
              XMLInputStream xmlInput = new XMLInputStream(stream,
                getClass().getClassLoader());

              mappingClass =
                (MappingClassElement)xmlInput.readObject();
              xmlInput.close();

              // postUnarchive performs version number checking
              // and possible format conversions
              mappingClass.postUnarchive();
View Full Code Here

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

    public void testPojoConf() throws Exception {
        Kson kk = new Kson()
            .map("test", SomePojoConfig.class)
            .map("pojo", PojoConfigItem.class)
            .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);
View Full Code Here

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

        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());

        // done, close
        socket.close();
        ok = true;
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.