Examples of readObject()


Examples of org.apache.geronimo.util.asn1.ASN1InputStream.readObject()

        try
        {
            ByteArrayInputStream    bIn = new ByteArrayInputStream(bytes);
            ASN1InputStream         dIn = new ASN1InputStream(bIn);

            return (ASN1Sequence)dIn.readObject();
        }
        catch (Exception e)
        {
            throw new IllegalArgumentException("badly encoded request");
        }
View Full Code Here

Examples of org.apache.geronimo.util.asn1.DERInputStream.readObject()

    public static DERObjectIdentifier decodeOIDDERObjectIdentifier(byte[] oid) throws IOException {
        ByteArrayInputStream bIn = new ByteArrayInputStream(oid);
        DERInputStream dIn = new DERInputStream(bIn);

        return (DERObjectIdentifier) dIn.readObject();
    }

    public static byte[] encodeGeneralName(String name) throws IOException {
        return encodeGeneralName(new X509Name(name));
    }
View Full Code Here

Examples of org.apache.harmony.rmi.MarshalledObjectInputStream.readObject()

    public T get() throws IOException, ClassNotFoundException {
        if (objBytes == null) {
            return null;
        }
        MarshalledObjectInputStream moin = new MarshalledObjectInputStream(objBytes, locBytes);
        return (T) moin.readObject();
    }

    @Override
    public int hashCode() {
        return hash;
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream.readObject()

            RMIObjectInputStream ois = new RMIObjectInputStream(
                    new BufferedInputStream(System.in));
            // rmi.log.55=ois = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.55", ois)); //$NON-NLS-1$
            ActivationGroupID agid = (ActivationGroupID) ois.readObject();
            // rmi.log.57=agid = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.57", agid)); //$NON-NLS-1$
            ActivationGroupDesc agdesc = (ActivationGroupDesc) ois.readObject();
            // rmi.log.74=agdesc = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.74", agdesc)); //$NON-NLS-1$
View Full Code Here

Examples of org.apache.james.util.io.ClassLoaderObjectInputStream.readObject()

                final ObjectInputStream stream = new ClassLoaderObjectInputStream( classLoader, inputStream );

                if( stream == null )
                  throw new NullPointerException("Null stream returned for key: " + key );

                final Object object = stream.readObject();

                if( DEBUG )
                {
                    getLogger().debug( "returning object " + object + " for key " + key );
                }
View Full Code Here

Examples of org.apache.metamodel.util.LegacyDeserializationObjectInputStream.readObject()

    public void testDeserializeBackwardsCompatible() throws Exception {
        Object obj;
        FileInputStream fileIn = new FileInputStream("src/test/resources/metamodel-3.0-default-row.ser");
        try {
            ObjectInputStream ois = new LegacyDeserializationObjectInputStream(fileIn);
            obj = ois.readObject();
            ois.close();
        } finally {
            FileHelper.safeClose(fileIn);
        }
View Full Code Here

Examples of org.apache.myfaces.shared.util.MyFacesObjectInputStream.readObject()

                        object = AccessController.doPrivileged(new PrivilegedExceptionAction<Object>()
                        {
                            public Object run() throws PrivilegedActionException, IOException, ClassNotFoundException
                            {
                                //return new Object[] {in.readObject(), in.readObject()};
                                return in.readObject();
                            }
                        });
                    }
                    else
                    {
View Full Code Here

Examples of org.apache.myfaces.shared_impl.util.MyFacesObjectInputStream.readObject()

                    {
                        object = AccessController.doPrivileged(new PrivilegedExceptionAction<Object []>()
                        {
                            public Object[] run() throws PrivilegedActionException, IOException, ClassNotFoundException
                            {
                                return new Object[] {in.readObject(), in.readObject()};                                   
                            }
                        });
                    }
                    else
                    {
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.util.ObjectInputStreamResolveClass.readObject()

        // the array
        byte[] copyBytes = Arrays.copyOf(serializedBytes, serializedBytes.length);
       
        ByteArrayInputStream baos = new ByteArrayInputStream(copyBytes);
        ObjectInputStream ois = new ObjectInputStreamResolveClass(baos);
        deserializedObject = ois.readObject();
        ois.close();
      }
      catch (IOException e)
      {
        throw new IllegalArgumentException(e);
View Full Code Here

Examples of org.apache.myfaces.util.MyFacesObjectInputStream.readObject()

        {
          Base64 base64Codec = new Base64();
            ByteArrayInputStream decodedStream = new ByteArrayInputStream( base64Codec.decode( s.getBytes(ZIP_CHARSET) ) );
            InputStream unzippedStream = new GZIPInputStream(decodedStream);
            ObjectInputStream ois = new MyFacesObjectInputStream(unzippedStream);
            Object obj = ois.readObject();
            ois.close();
            unzippedStream.close();
            decodedStream.close();
            return obj;
        }
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.