99100101102103104105106107108109
// Entry's data out.write( data ); // The change type out.writeByte( changeType.getValue() ); out.flush(); return baos.toByteArray(); }
113114115116117118119120121122123
Dn dn = entry.getDn(); // Write the Rdn of the Dn if ( dn.isEmpty() ) { out.writeByte( 0 ); } else { out.writeByte( 1 ); Rdn rdn = dn.getRdn();
117118119120121122123124125126127
{ out.writeByte( 0 ); } else { out.writeByte( 1 ); Rdn rdn = dn.getRdn(); rdn.writeExternal( out ); } // Then the attributes.
8990919293949596979899
Rdn[] rdns = parentIdAndRdn.getRdns(); // Write the Rdn of the Dn if ( ( rdns == null ) || ( rdns.length == 0 ) ) { out.writeByte( 0 ); } else { out.writeByte( rdns.length );
93949596979899100101102103
{ out.writeByte( 0 ); } else { out.writeByte( rdns.length ); for ( Rdn rdn : rdns ) { rdn.writeExternal( out ); }
8081828384858687888990
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