Package java.io

Examples of java.io.ObjectOutputStream.writeByte()


       
        // Entry's data
        out.write( data );

        // The change type
        out.writeByte( changeType.getValue() );
       
        // The moddn control if any (only if it's a MODDN operation)
        if ( changeType == ChangeType.MODDN )
        {
            SyncModifyDnType modDnType = modDnControl.getModDnType();
View Full Code Here


       
        // The moddn control if any (only if it's a MODDN operation)
        if ( changeType == ChangeType.MODDN )
        {
            SyncModifyDnType modDnType = modDnControl.getModDnType();
            out.writeByte( modDnType.getValue() );

            switch ( modDnType )
            {
                case MOVE:
                    out.writeUTF( modDnControl.getNewSuperiorDn() );
View Full Code Here

        Dn dn = entry.getDn();
       
        // Write the Rdn of the Dn
        if ( dn.isEmpty() )
        {
            out.writeByte( 0 );
        }
        else
        {
            out.writeByte( 1 );
            Rdn rdn = dn.getRdn();
View Full Code Here

        {
            out.writeByte( 0 );
        }
        else
        {
            out.writeByte( 1 );
            Rdn rdn = dn.getRdn();
            rdn.writeExternal( out );
        }

        // Then the attributes.
View Full Code Here

            Dn dn = entry.getDn();
           
            // Write the Rdn of the Dn
            if ( dn.isEmpty() )
            {
                out.writeByte( 0 );
            }
            else
            {
                out.writeByte( 1 );
                Rdn rdn = dn.getRdn();
View Full Code Here

            {
                out.writeByte( 0 );
            }
            else
            {
                out.writeByte( 1 );
                Rdn rdn = dn.getRdn();
                rdn.writeExternal( out );
            }
           
            // Then the attributes.
View Full Code Here

            Rdn[] rdns = parentIdAndRdn.getRdns();
           
            // Write the Rdn of the Dn
            if ( ( rdns == null ) || ( rdns.length == 0 ) )
            {
                out.writeByte( 0 );
            }
            else
            {
                out.writeByte( rdns.length );
               
View Full Code Here

            {
                out.writeByte( 0 );
            }
            else
            {
                out.writeByte( rdns.length );
               
                for ( Rdn rdn : rdns )
                {
                    rdn.writeExternal( out );
                }
View Full Code Here

    public Object store(String queue, Object obj) throws IOException
    {
        UUID id = getId(obj);
        ByteArrayOutputStream baos = new ByteArrayOutputStream(256);
        ObjectOutputStream oos = new ObjectOutputStream(baos);
        oos.writeByte(STORE_BYTE);
        oos.writeUTF(queue);
        oos.write(id.asByteArray());
        oos.writeObject(obj);
        oos.close();
        Packet packet = new ByteArrayPacket(baos.toByteArray());
View Full Code Here

        // Entry's data
        out.write( data );

        // The change type
        out.writeByte( changeType.getValue() );

        out.flush();

        return baos.toByteArray();
    }
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.