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/ASN1InputStreamReader.java |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
index 7124abb..94a6f9e 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1InputStreamReader.java
@@ -728,6 +728,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(streamStack.isEmpty())
@@ -755,6 +765,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