Examples of writeObject()


Examples of org.apache.activemq.command.ActiveMQStreamMessage.writeObject()

                msg.setConnection(connection);
                Object obj = null;

                try {
                    while ((obj = streamMessage.readObject()) != null) {
                        msg.writeObject(obj);
                    }
                } catch (MessageEOFException e) {
                    // if an end of message stream as expected
                } catch (JMSException e) {
                }
View Full Code Here

Examples of org.apache.axis2.context.externalize.SafeObjectOutputStream.writeObject()

        out.writeLong(timeOutInMilliSeconds);

        out.writeBoolean(manageSession);

        // the following objects could be null
        out.writeObject(isExceptionToBeThrownOnSOAPFault);
        out.writeObject(useSeparateListener);

        //---------------------------------------------------------
        // various strings
        //---------------------------------------------------------
View Full Code Here

Examples of org.apache.commons.ssl.asn1.ASN1OutputStream.writeObject()

    }

    public static byte[] encode(DEREncodable der) throws IOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
        ASN1OutputStream out = new ASN1OutputStream(baos);
        out.writeObject(der);
        out.close();
        return baos.toByteArray();
    }

    public static void main(String[] args) throws Exception {
View Full Code Here

Examples of org.apache.cxf.aegis.type.AegisType.writeObject()

            writer.writeXsiType(type.getSchemaType());
            boolean nextIsBeanType = type instanceof BeanType;
            if (nextIsBeanType) {
                ((BeanType)type).writeObjectFromObjectType(object, writer, context, true);
            } else {
                type.writeObject(object, writer, context);
            }
        }
    }

    public AegisType determineType(Context context, Class<?> clazz) {
View Full Code Here

Examples of org.apache.cxf.aegis.type.Type.writeObject()

                                                   + " for property " + name);
                }

                MessageWriter cwriter = writer.getAttributeWriter(name);

                type.writeObject(value, cwriter, context);

                cwriter.close();
            }
        }
View Full Code Here

Examples of org.apache.cxf.aegis.type.basic.ArrayType.writeObject()

                w2.close();
            } else {
                // it has better be an array (!)
                ArrayType aType = (ArrayType) outerType;
                // the part has to have a name or we can't do this.
                aType.writeObject(obj, writer, context, part.getConcreteName());
            }
        } catch (DatabindingException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatIdOutputStream.writeObject()

    {
        try {
            DynamicByteArrayOutputStream    dbaos = new DynamicByteArrayOutputStream();
            FormatIdOutputStream                fios = new FormatIdOutputStream( dbaos );

            fios.writeObject( td );
            dbaos.flush();

            byte[]      rawResult = dbaos.getByteArray();
            int         count = dbaos.getUsed();
View Full Code Here

Examples of org.apache.directory.shared.asn1.der.ASN1OutputStream.writeObject()

     */
    public static byte[] encode( EncryptionTypeInfo2Entry[] entries ) throws IOException
    {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        ASN1OutputStream aos = new ASN1OutputStream( baos );
        aos.writeObject( encodeSequence( entries ) );
        aos.close();

        return baos.toByteArray();
    }

View Full Code Here

Examples of org.apache.geronimo.crypto.asn1.ASN1OutputStream.writeObject()

        try
        {
            ByteArrayOutputStream   bOut = new ByteArrayOutputStream();
            ASN1OutputStream        aOut = new ASN1OutputStream(bOut);

            aOut.writeObject(c.getIssuer());

            return new X500Principal(bOut.toByteArray());
        }
        catch (IOException e)
        {
View Full Code Here

Examples of org.apache.geronimo.crypto.asn1.DEROutputStream.writeObject()

            throw new KeyStoreException("CSR verification failed");
        }

        ByteArrayOutputStream os = new ByteArrayOutputStream();
        DEROutputStream deros = new DEROutputStream(os);
        deros.writeObject(csr.getDERObject());
        String b64 = new String(Base64.encode(os.toByteArray()));

        final String BEGIN_CERT_REQ = "-----BEGIN CERTIFICATE REQUEST-----";
        final String END_CERT_REQ = "-----END CERTIFICATE REQUEST-----";
        final int CERT_REQ_LINE_LENGTH = 70;
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.