From df426d8775737476ca79980ddc5a1b197f53207e 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.

---
 opends/src/server/org/opends/server/protocols/asn1/ASN1ByteChannelWriter.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteChannelWriter.java b/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteChannelWriter.java
index 9dfe189..b6f7f9d 100644
--- a/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteChannelWriter.java
+++ b/opends/src/server/org/opends/server/protocols/asn1/ASN1ByteChannelWriter.java
@@ -289,6 +289,14 @@
   }
 
   /**
+   * {@inheritDoc}
+   */
+  public ASN1Writer writeStartSet(byte type) throws IOException {
+    writer.writeStartSet(type);
+    return this;
+  }
+
+  /**
    * Flush the entire contents of the NIO ByteBuffer out to the
    * channel.
    *

--
Gitblit v1.10.0