directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r379008 [2/11] - in /directory/trunks/shared: ./ asn1/ asn1/src/main/java/org/apache/directory/shared/asn1/ asn1/src/main/java/org/apache/directory/shared/asn1/ber/ asn1/src/main/java/org/apache/directory/shared/asn1/ber/grammar/ asn1/src/m...
Date Mon, 20 Feb 2006 03:36:53 GMT
Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/AbstractStatefulEncoder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/AbstractStatefulEncoder.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/CallbackHistory.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderCallback.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderFactory.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderFactory.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderFactory.java (original)
+++ directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderFactory.java Sun Feb 19 19:35:07 2006
@@ -1,34 +1,34 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed under the Apache License, Version 2.0 (the "License");
- *   you may not use this file except in compliance with the License.
- *   You may obtain a copy of the License at
- *
- *       http://www.apache.org/licenses/LICENSE-2.0
- *
- *   Unless required by applicable law or agreed to in writing, software
- *   distributed under the License is distributed on an "AS IS" BASIS,
- *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *   See the License for the specific language governing permissions and
- *   limitations under the License.
- *
- */
-package org.apache.directory.shared.asn1.codec.stateful;
-
-
-/**
- * A factory for creating new StatefulDecoders.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev$
- */
-public interface DecoderFactory
-{
-    /**
-     * Creates a chunking state based decoder.
-     * 
-     * @return a chunking state based decoder
-     */
-    StatefulDecoder createDecoder();
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.directory.shared.asn1.codec.stateful;
+
+
+/**
+ * A factory for creating new StatefulDecoders.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface DecoderFactory
+{
+    /**
+     * Creates a chunking state based decoder.
+     * 
+     * @return a chunking state based decoder
+     */
+    StatefulDecoder createDecoder();
+}

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderFactory.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderMonitor.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderMonitorAdapter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java (original)
+++ directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java Sun Feb 19 19:35:07 2006
@@ -1,220 +1,220 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed under the Apache License, Version 2.0 (the "License");
- *   you may not use this file except in compliance with the License.
- *   You may obtain a copy of the License at
- *
- *       http://www.apache.org/licenses/LICENSE-2.0
- *
- *   Unless required by applicable law or agreed to in writing, software
- *   distributed under the License is distributed on an "AS IS" BASIS,
- *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *   See the License for the specific language governing permissions and
- *   limitations under the License.
- *
- */
-package org.apache.directory.shared.asn1.codec.stateful;
-
-
-import java.util.Stack;
-
-import org.apache.directory.shared.asn1.codec.DecoderException;
-
-
-/**
- * A stack of decoders used for the additive application of multiple decoders
- * forming a linear staged decoder pipeline.
- * 
- * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
- * @version $Rev$
- */
-public class DecoderStack extends AbstractStatefulDecoder
-{
-    /**
-     * the top decoder callback which calls this decoders callback
-     * 
-     * @todo determine if this is even necessary - can't we just use cb
-     */
-    private final DecoderCallback topcb;
-
-    /** a stack of StatefulDecoders */
-    private Stack decoders = new Stack();
-
-
-    /**
-     * Creates an empty stack of chained decoders.
-     */
-    public DecoderStack()
-    {
-        topcb = new DecoderCallback()
-        {
-            public void decodeOccurred( StatefulDecoder decoder, Object decoded )
-            {
-                DecoderStack.this.decodeOccurred( decoded );
-            }
-        };
-    }
-
-
-    /**
-     * Pushs a new terminal decoder onto the top of this DecoderStack. The old
-     * top decoder is chained to feed its decoded object to the new top decoder.
-     * The new pushed decoder will report decode events to this DecoderStacks
-     * callback.
-     * 
-     * @param decoder
-     *            the terminal decoder to push onto this stack
-     */
-    public synchronized void push( StatefulDecoder decoder )
-    {
-        decoder.setCallback( topcb );
-
-        if ( !decoders.isEmpty() )
-        {
-            StatefulDecoder top = ( StatefulDecoder ) decoders.peek();
-            ChainingCallback chaining = new ChainingCallback( top, decoder );
-            top.setCallback( chaining );
-        }
-
-        decoders.push( decoder );
-    }
-
-
-    /**
-     * Pops the terminal decoder off of this DecoderStack. The popped decoder
-     * has its callback cleared. If the stack is empty nothing happens and this
-     * StatefulDecoder, the DecoderStack, is returned to protect against null.
-     * 
-     * @return the top decoder that was popped, or this DecoderStack
-     */
-    public synchronized StatefulDecoder pop()
-    {
-        if ( decoders.isEmpty() )
-        {
-            return this;
-        }
-
-        StatefulDecoder popped = ( StatefulDecoder ) decoders.pop();
-        popped.setCallback( null );
-
-        if ( !decoders.isEmpty() )
-        {
-            StatefulDecoder top = ( StatefulDecoder ) decoders.peek();
-            top.setCallback( this.topcb );
-        }
-
-        return popped;
-    }
-
-
-    /**
-     * Decodes an encoded object by calling decode on the decoder at the bottom
-     * of the stack. Callbacks are chained to feed the output of one decoder
-     * into the input decode method of another. If the stack is empty then the
-     * arguement is delivered without change to this StatefulDecoder's callback.
-     * 
-     * @see org.apache.directory.shared.asn1.codec.stateful.StatefulDecoder#
-     *      decode(java.lang.Object)
-     */
-    public synchronized void decode( Object encoded ) throws DecoderException
-    {
-        if ( decoders.isEmpty() )
-        {
-            decodeOccurred( encoded );
-            return;
-        }
-
-        ( ( StatefulDecoder ) decoders.get( 0 ) ).decode( encoded );
-    }
-
-
-    /**
-     * Gets whether or not this stack is empty.
-     * 
-     * @return true if the stack is empty, false otherwise
-     */
-    public boolean isEmpty()
-    {
-        return decoders.isEmpty();
-    }
-
-
-    /**
-     * Clears the stack popping all decoders setting their callbacks to null.
-     */
-    public synchronized void clear()
-    {
-        while ( !decoders.isEmpty() )
-        {
-            pop();
-        }
-    }
-
-    /**
-     * A callback used to chain decoders.
-     * 
-     * @author <a href="mailto:dev@directory.apache.org"> Apache Directory
-     *         Project</a>
-     * @version $Rev$
-     */
-    class ChainingCallback implements DecoderCallback
-    {
-        /** the source decoder calling this callback */
-        private StatefulDecoder sink;
-
-        /** the sink decoder recieving the src's decoded object */
-        private StatefulDecoder src;
-
-
-        /**
-         * Creates a callback that chains the output of a src decoder to the
-         * input of a sink decoder. No side-effects occur like setting the
-         * callback of the src so this ChainingCallback must be set explicity as
-         * the src decoders callback.
-         * 
-         * @param src
-         *            the source decoder calling this callback
-         * @param sink
-         *            the sink decoder recieving the src's decoded object
-         */
-        ChainingCallback(StatefulDecoder src, StatefulDecoder sink)
-        {
-            this.src = src;
-            this.sink = sink;
-        }
-
-
-        /**
-         * Calls the {@link #decode(Object)} method of the sink if the decoder
-         * argument is the source. Any failures that occur during the sink's
-         * decode operation are reported to the monitor first then rethrown as
-         * runtime exceptions with the root cause set to the faulting exception.
-         * 
-         * @see org.apache.directory.shared.asn1.codec.stateful.DecoderCallback#decodeOccurred
-         *      (org.apache.directory.shared.asn1.codec.stateful.StatefulDecoder,
-         *      java.lang.Object)
-         */
-        public void decodeOccurred( StatefulDecoder decoder, Object decoded )
-        {
-            if ( decoder != src )
-            {
-                return;
-            }
-
-            try
-            {
-                sink.decode( decoded );
-            }
-            catch ( DecoderException e )
-            {
-                if ( getDecoderMonitor() != null )
-                {
-                    getDecoderMonitor().fatalError( DecoderStack.this, e );
-                }
-
-                throw new RuntimeException( e );
-            }
-        }
-    }
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.directory.shared.asn1.codec.stateful;
+
+
+import java.util.Stack;
+
+import org.apache.directory.shared.asn1.codec.DecoderException;
+
+
+/**
+ * A stack of decoders used for the additive application of multiple decoders
+ * forming a linear staged decoder pipeline.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class DecoderStack extends AbstractStatefulDecoder
+{
+    /**
+     * the top decoder callback which calls this decoders callback
+     * 
+     * @todo determine if this is even necessary - can't we just use cb
+     */
+    private final DecoderCallback topcb;
+
+    /** a stack of StatefulDecoders */
+    private Stack decoders = new Stack();
+
+
+    /**
+     * Creates an empty stack of chained decoders.
+     */
+    public DecoderStack()
+    {
+        topcb = new DecoderCallback()
+        {
+            public void decodeOccurred( StatefulDecoder decoder, Object decoded )
+            {
+                DecoderStack.this.decodeOccurred( decoded );
+            }
+        };
+    }
+
+
+    /**
+     * Pushs a new terminal decoder onto the top of this DecoderStack. The old
+     * top decoder is chained to feed its decoded object to the new top decoder.
+     * The new pushed decoder will report decode events to this DecoderStacks
+     * callback.
+     * 
+     * @param decoder
+     *            the terminal decoder to push onto this stack
+     */
+    public synchronized void push( StatefulDecoder decoder )
+    {
+        decoder.setCallback( topcb );
+
+        if ( !decoders.isEmpty() )
+        {
+            StatefulDecoder top = ( StatefulDecoder ) decoders.peek();
+            ChainingCallback chaining = new ChainingCallback( top, decoder );
+            top.setCallback( chaining );
+        }
+
+        decoders.push( decoder );
+    }
+
+
+    /**
+     * Pops the terminal decoder off of this DecoderStack. The popped decoder
+     * has its callback cleared. If the stack is empty nothing happens and this
+     * StatefulDecoder, the DecoderStack, is returned to protect against null.
+     * 
+     * @return the top decoder that was popped, or this DecoderStack
+     */
+    public synchronized StatefulDecoder pop()
+    {
+        if ( decoders.isEmpty() )
+        {
+            return this;
+        }
+
+        StatefulDecoder popped = ( StatefulDecoder ) decoders.pop();
+        popped.setCallback( null );
+
+        if ( !decoders.isEmpty() )
+        {
+            StatefulDecoder top = ( StatefulDecoder ) decoders.peek();
+            top.setCallback( this.topcb );
+        }
+
+        return popped;
+    }
+
+
+    /**
+     * Decodes an encoded object by calling decode on the decoder at the bottom
+     * of the stack. Callbacks are chained to feed the output of one decoder
+     * into the input decode method of another. If the stack is empty then the
+     * arguement is delivered without change to this StatefulDecoder's callback.
+     * 
+     * @see org.apache.directory.shared.asn1.codec.stateful.StatefulDecoder#
+     *      decode(java.lang.Object)
+     */
+    public synchronized void decode( Object encoded ) throws DecoderException
+    {
+        if ( decoders.isEmpty() )
+        {
+            decodeOccurred( encoded );
+            return;
+        }
+
+        ( ( StatefulDecoder ) decoders.get( 0 ) ).decode( encoded );
+    }
+
+
+    /**
+     * Gets whether or not this stack is empty.
+     * 
+     * @return true if the stack is empty, false otherwise
+     */
+    public boolean isEmpty()
+    {
+        return decoders.isEmpty();
+    }
+
+
+    /**
+     * Clears the stack popping all decoders setting their callbacks to null.
+     */
+    public synchronized void clear()
+    {
+        while ( !decoders.isEmpty() )
+        {
+            pop();
+        }
+    }
+
+    /**
+     * A callback used to chain decoders.
+     * 
+     * @author <a href="mailto:dev@directory.apache.org"> Apache Directory
+     *         Project</a>
+     * @version $Rev$
+     */
+    class ChainingCallback implements DecoderCallback
+    {
+        /** the source decoder calling this callback */
+        private StatefulDecoder sink;
+
+        /** the sink decoder recieving the src's decoded object */
+        private StatefulDecoder src;
+
+
+        /**
+         * Creates a callback that chains the output of a src decoder to the
+         * input of a sink decoder. No side-effects occur like setting the
+         * callback of the src so this ChainingCallback must be set explicity as
+         * the src decoders callback.
+         * 
+         * @param src
+         *            the source decoder calling this callback
+         * @param sink
+         *            the sink decoder recieving the src's decoded object
+         */
+        ChainingCallback(StatefulDecoder src, StatefulDecoder sink)
+        {
+            this.src = src;
+            this.sink = sink;
+        }
+
+
+        /**
+         * Calls the {@link #decode(Object)} method of the sink if the decoder
+         * argument is the source. Any failures that occur during the sink's
+         * decode operation are reported to the monitor first then rethrown as
+         * runtime exceptions with the root cause set to the faulting exception.
+         * 
+         * @see org.apache.directory.shared.asn1.codec.stateful.DecoderCallback#decodeOccurred
+         *      (org.apache.directory.shared.asn1.codec.stateful.StatefulDecoder,
+         *      java.lang.Object)
+         */
+        public void decodeOccurred( StatefulDecoder decoder, Object decoded )
+        {
+            if ( decoder != src )
+            {
+                return;
+            }
+
+            try
+            {
+                sink.decode( decoded );
+            }
+            catch ( DecoderException e )
+            {
+                if ( getDecoderMonitor() != null )
+                {
+                    getDecoderMonitor().fatalError( DecoderStack.this, e );
+                }
+
+                throw new RuntimeException( e );
+            }
+        }
+    }
+}

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStack.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderCallback.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderCallback.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderFactory.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderFactory.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderFactory.java (original)
+++ directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderFactory.java Sun Feb 19 19:35:07 2006
@@ -1,34 +1,34 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed under the Apache License, Version 2.0 (the "License");
- *   you may not use this file except in compliance with the License.
- *   You may obtain a copy of the License at
- *
- *       http://www.apache.org/licenses/LICENSE-2.0
- *
- *   Unless required by applicable law or agreed to in writing, software
- *   distributed under the License is distributed on an "AS IS" BASIS,
- *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *   See the License for the specific language governing permissions and
- *   limitations under the License.
- *
- */
-package org.apache.directory.shared.asn1.codec.stateful;
-
-
-/**
- * A factory for creating new StatefulEncoders.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev$
- */
-public interface EncoderFactory
-{
-    /**
-     * Creates a new chunking state based encoder.
-     * 
-     * @return a new chunking state based encoder
-     */
-    StatefulEncoder createEncoder();
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.directory.shared.asn1.codec.stateful;
+
+
+/**
+ * A factory for creating new StatefulEncoders.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface EncoderFactory
+{
+    /**
+     * Creates a new chunking state based encoder.
+     * 
+     * @return a new chunking state based encoder
+     */
+    StatefulEncoder createEncoder();
+}

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderFactory.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderMonitor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderMonitor.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderMonitorAdapter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/EncoderMonitorAdapter.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/StatefulDecoder.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/StatefulEncoder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/StatefulEncoder.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexDecoder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexDecoder.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexEncoder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexEncoder.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/ASN1InputStream.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/ASN1InputStream.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/ASN1OutputStream.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/ASN1OutputStream.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERConstructedOctetString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERConstructedOctetString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERNull.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERNull.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERSequence.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERSequence.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERSet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERSet.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERTaggedObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/BERTaggedObject.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERApplicationSpecific.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERApplicationSpecific.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERBMPString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERBMPString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERBitString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERBitString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERBoolean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERBoolean.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DEREncodable.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DEREncodable.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DEREnumerated.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DEREnumerated.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERGeneralString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERGeneralString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERGeneralizedTime.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERGeneralizedTime.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERIA5String.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERIA5String.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERInteger.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERInteger.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERNull.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERNull.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERNumericString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERNumericString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERObject.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERObjectIdentifier.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERObjectIdentifier.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DEROctetString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DEROctetString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERPrintableString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERPrintableString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSequence.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERSet.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTaggedObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTaggedObject.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTeletexString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTeletexString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTCTime.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTCTime.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTF8String.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTF8String.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUniversalString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUniversalString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUnknownTag.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUnknownTag.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERVisibleString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERVisibleString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/OIDTokenizer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/der/OIDTokenizer.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/BitString.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/BitString.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/OID.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/OID.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/Asn1StringUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/Asn1StringUtils.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/BooleanDecoder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/BooleanDecoder.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/BooleanDecoderException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/BooleanDecoderException.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/IntegerDecoder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/IntegerDecoder.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/IntegerDecoderException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/main/java/org/apache/directory/shared/asn1/util/IntegerDecoderException.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/LengthTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/LengthTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/ber/tlv/ValueTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStackTest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStackTest.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStackTest.java (original)
+++ directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStackTest.java Sun Feb 19 19:35:07 2006
@@ -1,235 +1,235 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed under the Apache License, Version 2.0 (the "License");
- *   you may not use this file except in compliance with the License.
- *   You may obtain a copy of the License at
- *
- *       http://www.apache.org/licenses/LICENSE-2.0
- *
- *   Unless required by applicable law or agreed to in writing, software
- *   distributed under the License is distributed on an "AS IS" BASIS,
- *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *   See the License for the specific language governing permissions and
- *   limitations under the License.
- *
- */
-package org.apache.directory.shared.asn1.codec.stateful;
-
-
-import junit.framework.TestCase;
-
-import org.apache.directory.shared.asn1.codec.DecoderException;
-import org.apache.directory.shared.asn1.codec.stateful.AbstractStatefulDecoder;
-import org.apache.directory.shared.asn1.codec.stateful.CallbackHistory;
-import org.apache.directory.shared.asn1.codec.stateful.DecoderStack;
-import org.apache.directory.shared.asn1.codec.stateful.StatefulDecoder;
-
-
-/**
- * Tests the DecoderStack.
- * 
- * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
- * @version $Rev$
- */
-public class DecoderStackTest extends TestCase
-{
-    /**
-     * Constructor for DecoderStackTest.
-     * 
-     * @param arg0
-     */
-    public DecoderStackTest(String arg0)
-    {
-        super( arg0 );
-    }
-
-
-    /**
-     * Tests the push method.
-     */
-    public void testPush()
-    {
-        DecoderStack stack = new DecoderStack();
-        assertNotNull( stack );
-        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
-        PassThroDecoder decoder = new PassThroDecoder();
-        stack.push( decoder );
-        assertFalse( "expecting non-empty stack after push", stack.isEmpty() );
-    }
-
-
-    /**
-     * Tests the pop method.
-     */
-    public void testPop()
-    {
-        DecoderStack stack = new DecoderStack();
-        assertNotNull( stack );
-        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
-        PassThroDecoder decoder = new PassThroDecoder();
-        stack.push( decoder );
-        assertFalse( "expecting non-empty stack after push", stack.isEmpty() );
-        StatefulDecoder popped = stack.pop();
-        assertTrue( "expecting empty stack after last pop", stack.isEmpty() );
-        assertNotNull( popped );
-        assertSame( "expecting last popped == last pushed", popped, decoder );
-        StatefulDecoder empty = stack.pop();
-        assertNotNull( "expecting empty pop to be non-null", empty );
-        assertNotSame( "expecting empty pop != last popped", popped, empty );
-        assertSame( "expecting empty pop == stack decoder", stack, empty );
-        assertTrue( "expecting empty stack after empty pop", stack.isEmpty() );
-    }
-
-
-    public void testDecode() throws Exception
-    {
-        DecoderStack stack = new DecoderStack();
-        CallbackHistory history = new CallbackHistory();
-        stack.setCallback( history );
-        assertNotNull( stack );
-        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
-        PassThroDecoder decoder = new PassThroDecoder();
-        stack.push( decoder );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 0 ), history.getMostRecent() );
-
-        assertFalse( "expecting non-empty stack after push", stack.isEmpty() );
-
-        stack.push( new IncrementingDecoder() );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 1 ), history.getMostRecent() );
-
-        stack.push( new IncrementingDecoder() );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 2 ), history.getMostRecent() );
-
-        stack.push( new IncrementingDecoder() );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 3 ), history.getMostRecent() );
-
-        stack.push( new IncrementingDecoder() );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 4 ), history.getMostRecent() );
-
-        stack.push( new IncrementingDecoder() );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 5 ), history.getMostRecent() );
-
-        stack.push( new IncrementingDecoder() );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 6 ), history.getMostRecent() );
-
-        stack.push( new IncrementingDecoder() );
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 7 ), history.getMostRecent() );
-
-        // start popping and decrementing now
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 6 ), history.getMostRecent() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 5 ), history.getMostRecent() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 4 ), history.getMostRecent() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 3 ), history.getMostRecent() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 2 ), history.getMostRecent() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 1 ), history.getMostRecent() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 0 ), history.getMostRecent() );
-
-        assertFalse( "expecting stack with passthrodecoder", stack.isEmpty() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 0 ), history.getMostRecent() );
-
-        assertTrue( "expecting empty stack after last pop", stack.isEmpty() );
-
-        stack.pop();
-        stack.decode( new Integer( 0 ) );
-        assertEquals( new Integer( 0 ), history.getMostRecent() );
-
-        assertTrue( "expecting empty stack after empty pop", stack.isEmpty() );
-    }
-
-
-    public void testFailure() throws Exception
-    {
-        DecoderStack stack = new DecoderStack();
-        CallbackHistory history = new CallbackHistory();
-        stack.setCallback( history );
-        assertNotNull( stack );
-        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
-        PassThroDecoder decoder = new PassThroDecoder();
-        stack.push( decoder );
-
-        stack.push( new FaultingDecoder() );
-
-        try
-        {
-            stack.decode( new Object() );
-            fail( "should never reach here due to exception throws" );
-        }
-        catch ( RuntimeException e )
-        {
-            assertNotNull( e );
-            assertTrue( "testing keyword should be in the message", e.getMessage().indexOf( "testing" ) > 0 );
-            assertTrue( "RuntimeException cause should be a DecoderException", e.getCause().getClass().equals(
-                DecoderException.class ) );
-        }
-    }
-
-    /**
-     * A do nothing decoder.
-     */
-    class PassThroDecoder extends AbstractStatefulDecoder
-    {
-        public void decode( Object encoded ) throws DecoderException
-        {
-            super.decodeOccurred( encoded );
-        }
-    }
-
-    /**
-     * A decoder that increments an Integer passed in as an argument. We're
-     * using this for verifying the additive (hehe) effects of decoder chaining.
-     */
-    class IncrementingDecoder extends AbstractStatefulDecoder
-    {
-        public void decode( Object encoded ) throws DecoderException
-        {
-            Integer value = ( Integer ) encoded;
-            value = new Integer( value.intValue() + 1 );
-            super.decodeOccurred( value );
-        }
-    }
-
-    /**
-     * A decoder that throws an exception on decode calls. We're using this for
-     * verifying the failure of the chain.
-     */
-    class FaultingDecoder extends AbstractStatefulDecoder
-    {
-        public void decode( Object encoded ) throws DecoderException
-        {
-            throw new DecoderException( "testing" );
-        }
-    }
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.directory.shared.asn1.codec.stateful;
+
+
+import junit.framework.TestCase;
+
+import org.apache.directory.shared.asn1.codec.DecoderException;
+import org.apache.directory.shared.asn1.codec.stateful.AbstractStatefulDecoder;
+import org.apache.directory.shared.asn1.codec.stateful.CallbackHistory;
+import org.apache.directory.shared.asn1.codec.stateful.DecoderStack;
+import org.apache.directory.shared.asn1.codec.stateful.StatefulDecoder;
+
+
+/**
+ * Tests the DecoderStack.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class DecoderStackTest extends TestCase
+{
+    /**
+     * Constructor for DecoderStackTest.
+     * 
+     * @param arg0
+     */
+    public DecoderStackTest(String arg0)
+    {
+        super( arg0 );
+    }
+
+
+    /**
+     * Tests the push method.
+     */
+    public void testPush()
+    {
+        DecoderStack stack = new DecoderStack();
+        assertNotNull( stack );
+        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
+        PassThroDecoder decoder = new PassThroDecoder();
+        stack.push( decoder );
+        assertFalse( "expecting non-empty stack after push", stack.isEmpty() );
+    }
+
+
+    /**
+     * Tests the pop method.
+     */
+    public void testPop()
+    {
+        DecoderStack stack = new DecoderStack();
+        assertNotNull( stack );
+        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
+        PassThroDecoder decoder = new PassThroDecoder();
+        stack.push( decoder );
+        assertFalse( "expecting non-empty stack after push", stack.isEmpty() );
+        StatefulDecoder popped = stack.pop();
+        assertTrue( "expecting empty stack after last pop", stack.isEmpty() );
+        assertNotNull( popped );
+        assertSame( "expecting last popped == last pushed", popped, decoder );
+        StatefulDecoder empty = stack.pop();
+        assertNotNull( "expecting empty pop to be non-null", empty );
+        assertNotSame( "expecting empty pop != last popped", popped, empty );
+        assertSame( "expecting empty pop == stack decoder", stack, empty );
+        assertTrue( "expecting empty stack after empty pop", stack.isEmpty() );
+    }
+
+
+    public void testDecode() throws Exception
+    {
+        DecoderStack stack = new DecoderStack();
+        CallbackHistory history = new CallbackHistory();
+        stack.setCallback( history );
+        assertNotNull( stack );
+        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
+        PassThroDecoder decoder = new PassThroDecoder();
+        stack.push( decoder );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 0 ), history.getMostRecent() );
+
+        assertFalse( "expecting non-empty stack after push", stack.isEmpty() );
+
+        stack.push( new IncrementingDecoder() );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 1 ), history.getMostRecent() );
+
+        stack.push( new IncrementingDecoder() );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 2 ), history.getMostRecent() );
+
+        stack.push( new IncrementingDecoder() );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 3 ), history.getMostRecent() );
+
+        stack.push( new IncrementingDecoder() );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 4 ), history.getMostRecent() );
+
+        stack.push( new IncrementingDecoder() );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 5 ), history.getMostRecent() );
+
+        stack.push( new IncrementingDecoder() );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 6 ), history.getMostRecent() );
+
+        stack.push( new IncrementingDecoder() );
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 7 ), history.getMostRecent() );
+
+        // start popping and decrementing now
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 6 ), history.getMostRecent() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 5 ), history.getMostRecent() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 4 ), history.getMostRecent() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 3 ), history.getMostRecent() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 2 ), history.getMostRecent() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 1 ), history.getMostRecent() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 0 ), history.getMostRecent() );
+
+        assertFalse( "expecting stack with passthrodecoder", stack.isEmpty() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 0 ), history.getMostRecent() );
+
+        assertTrue( "expecting empty stack after last pop", stack.isEmpty() );
+
+        stack.pop();
+        stack.decode( new Integer( 0 ) );
+        assertEquals( new Integer( 0 ), history.getMostRecent() );
+
+        assertTrue( "expecting empty stack after empty pop", stack.isEmpty() );
+    }
+
+
+    public void testFailure() throws Exception
+    {
+        DecoderStack stack = new DecoderStack();
+        CallbackHistory history = new CallbackHistory();
+        stack.setCallback( history );
+        assertNotNull( stack );
+        assertTrue( "expecting empty stack after creation", stack.isEmpty() );
+        PassThroDecoder decoder = new PassThroDecoder();
+        stack.push( decoder );
+
+        stack.push( new FaultingDecoder() );
+
+        try
+        {
+            stack.decode( new Object() );
+            fail( "should never reach here due to exception throws" );
+        }
+        catch ( RuntimeException e )
+        {
+            assertNotNull( e );
+            assertTrue( "testing keyword should be in the message", e.getMessage().indexOf( "testing" ) > 0 );
+            assertTrue( "RuntimeException cause should be a DecoderException", e.getCause().getClass().equals(
+                DecoderException.class ) );
+        }
+    }
+
+    /**
+     * A do nothing decoder.
+     */
+    class PassThroDecoder extends AbstractStatefulDecoder
+    {
+        public void decode( Object encoded ) throws DecoderException
+        {
+            super.decodeOccurred( encoded );
+        }
+    }
+
+    /**
+     * A decoder that increments an Integer passed in as an argument. We're
+     * using this for verifying the additive (hehe) effects of decoder chaining.
+     */
+    class IncrementingDecoder extends AbstractStatefulDecoder
+    {
+        public void decode( Object encoded ) throws DecoderException
+        {
+            Integer value = ( Integer ) encoded;
+            value = new Integer( value.intValue() + 1 );
+            super.decodeOccurred( value );
+        }
+    }
+
+    /**
+     * A decoder that throws an exception on decode calls. We're using this for
+     * verifying the failure of the chain.
+     */
+    class FaultingDecoder extends AbstractStatefulDecoder
+    {
+        public void decode( Object encoded ) throws DecoderException
+        {
+            throw new DecoderException( "testing" );
+        }
+    }
+}

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStackTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/DecoderStackTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexDecoderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexDecoderTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexEncoderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/codec/stateful/examples/HexEncoderTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/BitStringTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/BitStringTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/OIDTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/OIDTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/PrimitivesTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/PrimitivesTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/pom.xml
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/pom.xml?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/pom.xml (original)
+++ directory/trunks/shared/ldap/pom.xml Sun Feb 19 19:35:07 2006
@@ -4,7 +4,7 @@
   <parent>
     <groupId>org.apache.directory.shared</groupId>
     <artifactId>build</artifactId>
-    <version>0.9.4</version>
+    <version>0.9.5</version>
   </parent>
   <artifactId>shared-ldap</artifactId>
   <name>Apache Directory Protocol Ldap Shared</name>

Modified: directory/trunks/shared/ldap/src/main/antlr/dnparser.g
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/antlr/dnparser.g?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/antlr/dnparser.g (original)
+++ directory/trunks/shared/ldap/src/main/antlr/dnparser.g Sun Feb 19 19:35:07 2006
@@ -21,93 +21,98 @@
 	 */
     package org.apache.directory.shared.ldap.name;
 
-    import java.util.ArrayList ;
+    import java.util.ArrayList;
+    import org.apache.directory.shared.ldap.util.StringTools;
 }
 
-class antlrNameParser extends Parser ;
+class antlrNameParser extends Parser;
 
 options {
-	importVocab = antlrType ;
-    defaultErrorHandler = false ;
+	importVocab = antlrType;
+    defaultErrorHandler = false;
 }
 {
-    private antlrValueParser m_valueParser = 
-        new antlrValueParser(getInputState()) ;
+    private antlrValueParser valueParser = new antlrValueParser( getInputState() );
 
     
     public void setNormalizer(NameComponentNormalizer a_normalizer)
     {
-        m_valueParser.setNormalizer(a_normalizer) ;
+        valueParser.setNormalizer(a_normalizer);
     }  
 }
 
 
-name returns [ArrayList l_list]
+name returns [ArrayList list]
 {
-    String l_comp0 = null ;
-    String l_comp1 = null ;
-	l_list = new ArrayList() ;
+    String comp0 = null;
+    String comp1 = null;
+	list = new ArrayList();
 }
-	:	l_comp0=nameComponent
+	:	comp0=nameComponent
         {
-            l_list.add(l_comp0) ;
+            list.add( comp0 );
         }
-        ( ( COMMA | SEMI ) l_comp1=nameComponent
+        ( ( COMMA | SEMI ) comp1=nameComponent
             {
-                l_list.add(l_comp1) ;
+                list.add( comp1);
             }
         )* DN_TERMINATOR 
 	;
 
 
-nameComponent returns [String l_comp]
+nameComponent returns [String comp]
 {
-    l_comp = null ;
-    String l_tav0 = null ;
-    String l_tav1 = null ;
-    StringBuffer l_buf = new StringBuffer() ;
+    comp = null;
+    String tav0 = null;
+    String tav1 = null;
+    StringBuffer buf = new StringBuffer();
 }
-        : l_tav0=attributeTypeAndValue
+        : tav0=attributeTypeAndValue
         {
-            l_buf.append(l_tav0) ;
+            buf.append( tav0 );
         }
-        ( PLUS l_tav1=attributeTypeAndValue 
+        ( PLUS tav1=attributeTypeAndValue 
             {
-                l_buf.append('+').append(l_tav1) ;
+                buf.append('+').append( tav1 );
             }
         )*
         {
-            l_comp = l_buf.toString() ;
+            comp = buf.toString();
         }
-    ;
+   ;
 
 
 attributeTypeAndValue returns [String tav]
 {
-    tav = null ;
-    StringBuffer buf = new StringBuffer() ;
-    String lhs = null ;
+    tav = null;
+    StringBuffer buf = new StringBuffer();
+    String lhs = null;
 }
 	:	( attr:ATTRIBUTE 
             {
-                lhs = attr.getText() ;
-				m_valueParser.setOid(false) ;
+                lhs = attr.getText();
+				valueParser.setOid( false );
             }
         | oiddn:OIDDN
             {
-                lhs = oiddn.getText().substring( "OID.".length() ) ;
-                m_valueParser.setOid(true) ;
+                lhs = oiddn.getText().substring( "OID.".length() );
+                valueParser.setOid( true );
             }
         | oid:OID
             {
-                lhs = oid.getText() ;
-                m_valueParser.setOid(true) ;
+                lhs = oid.getText();
+                valueParser.setOid( true );
             }
         ) EQUAL
 		{
-            m_valueParser.setLhs(lhs) ;
-            buf.append(lhs) ;
-            buf.append('=').append(m_valueParser.value()) ;
-            tav = buf.toString() ;
+		    if ( valueParser.isNormalizing() )
+		    {
+		    	lhs = StringTools.lowerCase( lhs );
+		    }
+		    
+            valueParser.setLhs( lhs );
+            buf.append( lhs );
+            buf.append( '=' ).append( valueParser.value() );
+            tav = buf.toString();
 		}
 	;

Modified: directory/trunks/shared/ldap/src/main/antlr/valuelexer.g
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/antlr/valuelexer.g?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/antlr/valuelexer.g (original)
+++ directory/trunks/shared/ldap/src/main/antlr/valuelexer.g Sun Feb 19 19:35:07 2006
@@ -126,7 +126,7 @@
     ;
 
 SIMPLE_STRING           : ( ~( ',' | '=' | '+' | '<'  |
-                               '>' | '#' | ';' | '\\' | '"' ) )*
+                               '>' | '#' | ';' | '\\' | '"' ) )+
     ;
 
 

Modified: directory/trunks/shared/ldap/src/main/antlr/valueparser.g
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/antlr/valueparser.g?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/antlr/valueparser.g (original)
+++ directory/trunks/shared/ldap/src/main/antlr/valueparser.g Sun Feb 19 19:35:07 2006
@@ -43,6 +43,18 @@
     }
 
 
+    NameComponentNormalizer getNormalizer()
+    {
+        return m_normalizer;
+    }
+
+
+    boolean isNormalizing()
+    {
+        return m_normalizer != null;
+    }
+
+
     void setOid( boolean a_isOid )
     {
         m_isOid = a_isOid ;

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/MultiException.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/MultiException.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/MultiException.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/MultiException.java Sun Feb 19 19:35:07 2006
@@ -1,184 +1,184 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed under the Apache License, Version 2.0 (the "License");
- *   you may not use this file except in compliance with the License.
- *   You may obtain a copy of the License at
- *
- *       http://www.apache.org/licenses/LICENSE-2.0
- *
- *   Unless required by applicable law or agreed to in writing, software
- *   distributed under the License is distributed on an "AS IS" BASIS,
- *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *   See the License for the specific language governing permissions and
- *   limitations under the License.
- *
- */
-
-package org.apache.directory.shared.ldap;
-
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.Collection;
-
-import java.io.PrintWriter;
-import java.io.PrintStream;
-
-
-/**
- * This exception is thrown when Base class for nested exceptions.
- * 
- * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
- * @author $Author: akarasulu $
- * @version $Revision$
- */
-public class MultiException extends Exception
-{
-    static final long serialVersionUID = 2889747406899775761L;
-
-    /** Collection of nested exceptions. */
-    private Collection m_nestedExceptions = new ArrayList();
-
-
-    /**
-     * Constructs an Exception without a message.
-     */
-    public MultiException()
-    {
-        super();
-    }
-
-
-    /**
-     * Constructs an Exception with a detailed message.
-     * 
-     * @param a_message
-     *            The message associated with the exception.
-     */
-    public MultiException(String a_message)
-    {
-        super( a_message );
-    }
-
-
-    /**
-     * Lists the nested exceptions that this Exception encapsulates.
-     * 
-     * @return an Iterator over the nested exceptions.
-     */
-    public Iterator listNestedExceptions()
-    {
-        return m_nestedExceptions.iterator();
-    }
-
-
-    /**
-     * Gets the size of this nested exception which equals the number of
-     * exception nested within.
-     * 
-     * @return the size of this nested exception.
-     */
-    public int size()
-    {
-        return m_nestedExceptions.size();
-    }
-
-
-    /**
-     * Tests to see if there are any nested exceptions within this
-     * MultiException.
-     * 
-     * @return true if no exceptions are nested, false otherwise.
-     */
-    public boolean isEmpty()
-    {
-        return m_nestedExceptions.isEmpty();
-    }
-
-
-    /**
-     * Add an exeception to this multiexception.
-     * 
-     * @param a_nested
-     *            exception to add to this MultiException.
-     */
-    public void addThrowable( Throwable a_nested )
-    {
-        this.m_nestedExceptions.add( a_nested );
-    }
-
-
-    // ///////////////////////////////////////////
-    // Overriden Throwable Stack Trace Methods //
-    // ///////////////////////////////////////////
-
-    /**
-     * Beside printing out the standard stack trace this method prints out the
-     * stack traces of all the nested exceptions.
-     * 
-     * @param an_out
-     *            PrintWriter to write the nested stack trace to.
-     */
-    public void printStackTrace( PrintWriter an_out )
-    {
-        super.printStackTrace( an_out );
-
-        an_out.println( "Nested exceptions to follow:\n" );
-        Iterator l_list = listNestedExceptions();
-        Throwable l_throwable = null;
-        while ( l_list.hasNext() )
-        {
-            l_throwable = ( Throwable ) l_list.next();
-            l_throwable.printStackTrace();
-            if ( l_list.hasNext() )
-            {
-                an_out.println( "\n\t<<========= Next Nested Exception" + " ========>>\n" );
-            }
-            else
-            {
-                an_out.println( "\n\t<<========= Last Nested Exception" + " ========>>\n" );
-            }
-        }
-    }
-
-
-    /**
-     * Beside printing out the standard stack trace this method prints out the
-     * stack traces of all the nested exceptions.
-     * 
-     * @param an_out
-     *            PrintStream to write the nested stack trace to.
-     */
-    public void printStackTrace( PrintStream an_out )
-    {
-        super.printStackTrace( an_out );
-
-        an_out.println( "Nested exceptions to follow:\n" );
-        Iterator l_list = listNestedExceptions();
-        Throwable l_throwable = null;
-        while ( l_list.hasNext() )
-        {
-            l_throwable = ( Throwable ) l_list.next();
-            l_throwable.printStackTrace();
-            if ( l_list.hasNext() )
-            {
-                an_out.println( "\n\t<<========= Next Nested Exception" + " ========>>\n" );
-            }
-            else
-            {
-                an_out.println( "\n\t<<========= Last Nested Exception" + " ========>>\n" );
-            }
-        }
-    }
-
-
-    /**
-     * Beside printing out the standard stack trace this method prints out the
-     * stack traces of all the nested exceptions using standard error.
-     */
-    public void printStackTrace()
-    {
-        this.printStackTrace( System.err );
-    }
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+package org.apache.directory.shared.ldap;
+
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.Collection;
+
+import java.io.PrintWriter;
+import java.io.PrintStream;
+
+
+/**
+ * This exception is thrown when Base class for nested exceptions.
+ * 
+ * @author <a href="mailto:aok123@bellsouth.net">Alex Karasulu</a>
+ * @author $Author: akarasulu $
+ * @version $Revision$
+ */
+public class MultiException extends Exception
+{
+    static final long serialVersionUID = 2889747406899775761L;
+
+    /** Collection of nested exceptions. */
+    private Collection m_nestedExceptions = new ArrayList();
+
+
+    /**
+     * Constructs an Exception without a message.
+     */
+    public MultiException()
+    {
+        super();
+    }
+
+
+    /**
+     * Constructs an Exception with a detailed message.
+     * 
+     * @param a_message
+     *            The message associated with the exception.
+     */
+    public MultiException(String a_message)
+    {
+        super( a_message );
+    }
+
+
+    /**
+     * Lists the nested exceptions that this Exception encapsulates.
+     * 
+     * @return an Iterator over the nested exceptions.
+     */
+    public Iterator listNestedExceptions()
+    {
+        return m_nestedExceptions.iterator();
+    }
+
+
+    /**
+     * Gets the size of this nested exception which equals the number of
+     * exception nested within.
+     * 
+     * @return the size of this nested exception.
+     */
+    public int size()
+    {
+        return m_nestedExceptions.size();
+    }
+
+
+    /**
+     * Tests to see if there are any nested exceptions within this
+     * MultiException.
+     * 
+     * @return true if no exceptions are nested, false otherwise.
+     */
+    public boolean isEmpty()
+    {
+        return m_nestedExceptions.isEmpty();
+    }
+
+
+    /**
+     * Add an exeception to this multiexception.
+     * 
+     * @param a_nested
+     *            exception to add to this MultiException.
+     */
+    public void addThrowable( Throwable a_nested )
+    {
+        this.m_nestedExceptions.add( a_nested );
+    }
+
+
+    // ///////////////////////////////////////////
+    // Overriden Throwable Stack Trace Methods //
+    // ///////////////////////////////////////////
+
+    /**
+     * Beside printing out the standard stack trace this method prints out the
+     * stack traces of all the nested exceptions.
+     * 
+     * @param an_out
+     *            PrintWriter to write the nested stack trace to.
+     */
+    public void printStackTrace( PrintWriter an_out )
+    {
+        super.printStackTrace( an_out );
+
+        an_out.println( "Nested exceptions to follow:\n" );
+        Iterator l_list = listNestedExceptions();
+        Throwable l_throwable = null;
+        while ( l_list.hasNext() )
+        {
+            l_throwable = ( Throwable ) l_list.next();
+            l_throwable.printStackTrace();
+            if ( l_list.hasNext() )
+            {
+                an_out.println( "\n\t<<========= Next Nested Exception" + " ========>>\n" );
+            }
+            else
+            {
+                an_out.println( "\n\t<<========= Last Nested Exception" + " ========>>\n" );
+            }
+        }
+    }
+
+
+    /**
+     * Beside printing out the standard stack trace this method prints out the
+     * stack traces of all the nested exceptions.
+     * 
+     * @param an_out
+     *            PrintStream to write the nested stack trace to.
+     */
+    public void printStackTrace( PrintStream an_out )
+    {
+        super.printStackTrace( an_out );
+
+        an_out.println( "Nested exceptions to follow:\n" );
+        Iterator l_list = listNestedExceptions();
+        Throwable l_throwable = null;
+        while ( l_list.hasNext() )
+        {
+            l_throwable = ( Throwable ) l_list.next();
+            l_throwable.printStackTrace();
+            if ( l_list.hasNext() )
+            {
+                an_out.println( "\n\t<<========= Next Nested Exception" + " ========>>\n" );
+            }
+            else
+            {
+                an_out.println( "\n\t<<========= Last Nested Exception" + " ========>>\n" );
+            }
+        }
+    }
+
+
+    /**
+     * Beside printing out the standard stack trace this method prints out the
+     * stack traces of all the nested exceptions using standard error.
+     */
+    public void printStackTrace()
+    {
+        this.printStackTrace( System.err );
+    }
+}

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/MultiException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/MultiException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/NotImplementedException.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/NotImplementedException.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/NotImplementedException.java (original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/NotImplementedException.java Sun Feb 19 19:35:07 2006
@@ -16,7 +16,7 @@
  */
 
 /*
- $Id: NotImplementedException.java,v 1.4 2003/07/29 21:17:34 akarasulu Exp $
+ $Id$
 
  -- (c) LDAPd Group                                                    --
  -- Please refer to the LICENSE.txt file in the root directory of      --

Propchange: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/NotImplementedException.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id



Mime
View raw message