Package java.io

Examples of java.io.ObjectOutput.writeByte()


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

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

        out.flush();

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

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        ObjectOutput out = new ObjectOutputStream( baos );

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

        // The entry DN
        entry.getDn().writeExternal( out );

        // The entry
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

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.