Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 68159 invoked from network); 27 Sep 2005 14:00:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2005 14:00:29 -0000 Received: (qmail 84587 invoked by uid 500); 27 Sep 2005 14:00:27 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 84526 invoked by uid 500); 27 Sep 2005 14:00:27 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 84482 invoked by uid 99); 27 Sep 2005 14:00:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 07:00:27 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 27 Sep 2005 07:00:33 -0700 Received: (qmail 67804 invoked by uid 65534); 27 Sep 2005 14:00:05 -0000 Message-ID: <20050927140005.67800.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r291945 - /directory/asn1/branches/asn1-NameComponent/ber-new/src/java/main/org/apache/asn1new/ber/tlv/Value.java Date: Tue, 27 Sep 2005 14:00:05 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Tue Sep 27 07:00:00 2005 New Revision: 291945 URL: http://svn.apache.org/viewcvs?rev=291945&view=rev Log: Committed to be able to work at home Modified: directory/asn1/branches/asn1-NameComponent/ber-new/src/java/main/org/apache/asn1new/ber/tlv/Value.java Modified: directory/asn1/branches/asn1-NameComponent/ber-new/src/java/main/org/apache/asn1new/ber/tlv/Value.java URL: http://svn.apache.org/viewcvs/directory/asn1/branches/asn1-NameComponent/ber-new/src/java/main/org/apache/asn1new/ber/tlv/Value.java?rev=291945&r1=291944&r2=291945&view=diff ============================================================================== --- directory/asn1/branches/asn1-NameComponent/ber-new/src/java/main/org/apache/asn1new/ber/tlv/Value.java (original) +++ directory/asn1/branches/asn1-NameComponent/ber-new/src/java/main/org/apache/asn1new/ber/tlv/Value.java Tue Sep 27 07:00:00 2005 @@ -19,7 +19,6 @@ import org.apache.asn1.codec.EncoderException; import org.apache.asn1new.primitives.OID; import org.apache.asn1new.primitives.OctetString; -import org.apache.asn1new.util.MutableString; import org.apache.asn1new.util.StringUtils; import java.io.Serializable; @@ -367,37 +366,6 @@ if ( oid.getOIDLength() != 0 ) { buffer.put( oid.getOID() ); - } - } - catch ( BufferOverflowException boe ) - { - throw new EncoderException("The PDU buffer size is too small !"); - } - - return; - } - - /** - * Encode a MutableString value - * - * @param buffer The PDU in which the value will be put - * @param string The MutableString to be encoded - */ - public static void encode( ByteBuffer buffer, MutableString string ) throws EncoderException - { - if ( buffer == null ) - { - throw new EncoderException( "Cannot put a PDU in a null buffer !" ); - } - - try - { - buffer.put( UniversalTag.OCTET_STRING_TAG ); - buffer.put( Length.getBytes( string.getLength() ) ); - - if ( string.getLength() != 0 ) - { - buffer.put( string.getData() ); } } catch ( BufferOverflowException boe )