Examples of readObject()


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

            final SocketConnection socketConnection = connectionFactory.createSocketConnection(paramsRemote.getServerPort());

            final Collection<?> formatters = getTestRunnerFormatters();

            RemoteTestRunnerCommand command = null;
            while ((command = socketConnection.readObject()) != null)
            {
                switch (command)
                {
                    case EXIT:
                        socketConnection.close();
View Full Code Here

Examples of com.maverick.crypto.asn1.DERInputStream.readObject()

            ByteArrayInputStream bin = new ByteArrayInputStream(x509cert.getEncoded());
            DERInputStream der = null;
            try {
                der = new DERInputStream(bin);

                ASN1Sequence certificate = (ASN1Sequence) der.readObject();
                com.maverick.crypto.asn1.x509.X509Certificate x509 = new com.maverick.crypto.asn1.x509.X509Certificate(
                    X509CertificateStructure.getInstance(certificate));
                return store.isTrustedCertificate(x509, false, false);
            } finally {
                Util.closeStream(der);
View Full Code Here

Examples of com.mobixess.jodb.core.io.ObjectDataContainer.readObject()

        DataContainersCache dataContainersCache = TransactionUtils.getObjectDataContainerCache();
        ObjectDataContainer dataContainer = dataContainersCache.pullObjectDataContainer();
        IOBase base = _session.getBase();
        IOTicket ticket = base.getIOTicket(true, true);
        try {//TODO need handling for arrays
            dataContainer.readObject(ticket.getRandomAccessBuffer(), base, context.getSession(), objectOffset, true);
            return analize(classDescriptor, dataContainer, context);
        } finally {
            TransactionUtils.getObjectDataContainerCache().pushObjectDataContainer(dataContainer);
            ticket.close();
        }
View Full Code Here

Examples of com.mojang.net.NetworkHandler.readObject()

                        var22.in.get();
                        Object[] var7 = new Object[var6.params.length];

                        for(var8 = 0; var8 < var7.length; ++var8) {
                           var7[var8] = var22.readObject(var6.params[var8]);
                        }

                        NetworkManager var42 = var22.netManager;
                        if(var22.netManager.successful) {
                           if(var6 == PacketType.IDENTIFICATION) {
View Full Code Here

Examples of com.ovea.jetty.session.serializer.jboss.serial.io.JBossObjectInputStream.readObject()

    }

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

Examples of com.saasovation.common.port.adapter.persistence.leveldb.LevelDBUnitOfWork.readObject()

        LevelDBUnitOfWork uow = LevelDBUnitOfWork.readOnly(this.database());

        List<Object> keys = uow.readKeys(productSprints);

        for (Object sprintId : keys) {
            Sprint sprint = uow.readObject(sprintId.toString().getBytes(), Sprint.class);

            if (sprint != null) {
                sprints.add(sprint);
            }
        }
View Full Code Here

Examples of com.sleepycat.bdb.bind.serial.SerialInput.readObject()

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

    void initTuple()
        throws Exception {
View Full Code Here

Examples of com.sleepycat.bind.serial.SerialInput.readObject()

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

    int runSerialExternalizable()
        throws Exception {
View Full Code Here

Examples of com.sun.enterprise.container.common.spi.util.JavaEEObjectInputStream.readObject()

      ByteArrayInputStream bais = new ByteArrayInputStream(data);
      Collection<JavaEEObjectStreamHandler> handlers = new ArrayList<>();
      handlers.add(getHandler());
      JavaEEObjectInputStream q = new JavaEEObjectInputStream(bais,
          getClass().getClassLoader(), true, handlers);
      return q.readObject();
    } catch (Exception e) {
      LOG.warn(
          "Caught Exception attempting to deserialize. Falling Back\n {} ",
          e);
      return fallback.deserialize(data);
View Full Code Here

Examples of com.sun.enterprise.naming.util.ObjectInputStreamWithLoader.readObject()

    @Override
    public void _storeable_readState(InputStream is) throws IOException {
        ObjectInputStream ois = new ObjectInputStreamWithLoader(is, SFSBBeanState.class.getClassLoader());

        try {
            sessionId = (Serializable) ois.readObject();
            version = ois.readLong();
            lastAccess = ois.readLong();
            maxIdleTime = ois.readLong();
            isNew = ois.readBoolean();
           
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.