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/ASN1Writer.java | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1Writer.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1Writer.java
index 2e54c39..e038f56 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1Writer.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1Writer.java
@@ -335,7 +335,7 @@
/**
* Writes a sequence element using the provided type tag. All
- * further writes will be part of this set until
+ * further writes will be part of this sequence until
* {@link #writeEndSequence()} is called.
*
* @param type
@@ -358,4 +358,19 @@
* If an error occurs while writing.
*/
ASN1Writer writeStartSet() throws IOException;
+
+
+
+ /**
+ * Writes a set element using the provided type tag. All further
+ * writes will be part of this set until {@link #writeEndSet()} is
+ * called.
+ *
+ * @param type
+ * The type tag to use.
+ * @return a reference to this object.
+ * @throws IOException
+ * If an error occurs while writing.
+ */
+ ASN1Writer writeStartSet(byte type) throws IOException;
}
--
Gitblit v1.10.0