directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
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 GMT
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 )



Mime
View raw message