| | |
| | | |
| | | import java.io.IOException; |
| | | |
| | | import org.opends.server.protocols.asn1.*; |
| | | import static org.opends.server.protocols.asn1.ASN1Constants. |
| | | UNIVERSAL_OCTET_STRING_TYPE; |
| | | import static org.opends.server.protocols.asn1.ASN1Constants. |
| | | UNIVERSAL_INTEGER_TYPE; |
| | | import org.forgerock.opendj.io.*; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | |
| | | changeType = PersistentSearchChangeType.valueOf(changeTypeValue); |
| | | |
| | | if(reader.hasNextElement() && |
| | | reader.peekType() == UNIVERSAL_OCTET_STRING_TYPE) |
| | | reader.peekType() == ASN1.UNIVERSAL_OCTET_STRING_TYPE) |
| | | { |
| | | if (changeType != PersistentSearchChangeType.MODIFY_DN) |
| | | { |
| | |
| | | previousDN = DN.valueOf(reader.readOctetStringAsString()); |
| | | } |
| | | if(reader.hasNextElement() && |
| | | reader.peekType() == UNIVERSAL_INTEGER_TYPE) |
| | | reader.peekType() == ASN1.UNIVERSAL_INTEGER_TYPE) |
| | | { |
| | | changeNumber = reader.readInteger(); |
| | | } |
| | |
| | | * @throws IOException If a problem occurs while writing to the stream. |
| | | */ |
| | | public void writeValue(ASN1Writer writer) throws IOException { |
| | | writer.writeStartSequence(UNIVERSAL_OCTET_STRING_TYPE); |
| | | writer.writeStartSequence(ASN1.UNIVERSAL_OCTET_STRING_TYPE); |
| | | |
| | | writer.writeStartSequence(); |
| | | writer.writeEnumerated(changeType.intValue()); |