From e9ff5bb70f5aee3084d405679b6c7d5b76842470 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 06 Feb 2009 11:45:32 +0000
Subject: [PATCH] Add readStartSet and readEndSet methods to ASN1Reader for consistency with ASNWriter APIs. Also add writeStartSet(byte) method to ASN1Writer for consistency with sequence related methods.
---
opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java
index 13d72df..c05f092 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteSequenceReader.java
@@ -436,6 +436,16 @@
/**
* {@inheritDoc}
*/
+ public void readStartSet() throws ASN1Exception
+ {
+ // From an implementation point of view, a set is equivalent to a
+ // sequence.
+ readStartSequence();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public void readEndSequence() throws ASN1Exception
{
if(readerStack.isEmpty())
@@ -460,6 +470,16 @@
/**
* {@inheritDoc}
*/
+ public void readEndSet() throws ASN1Exception
+ {
+ // From an implementation point of view, a set is equivalent to a
+ // sequence.
+ readEndSequence();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public void skipElement() throws ASN1Exception
{
// Read the header if haven't done so already
--
Gitblit v1.10.0