directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 43436 - incubator/directory/snickers/trunk/codec-stateful/src/java/org/apache/commons/codec/stateful
Date Tue, 07 Sep 2004 00:01:34 GMT
Author: akarasulu
Date: Mon Sep  6 17:01:33 2004
New Revision: 43436

Added:
   incubator/directory/snickers/trunk/codec-stateful/src/java/org/apache/commons/codec/stateful/DecoderFactory.java
  (contents, props changed)
   incubator/directory/snickers/trunk/codec-stateful/src/java/org/apache/commons/codec/stateful/EncoderFactory.java
  (contents, props changed)
Log:
adding factory interfaces for decoder and encoder

Added: incubator/directory/snickers/trunk/codec-stateful/src/java/org/apache/commons/codec/stateful/DecoderFactory.java
==============================================================================
--- (empty file)
+++ incubator/directory/snickers/trunk/codec-stateful/src/java/org/apache/commons/codec/stateful/DecoderFactory.java
Mon Sep  6 17:01:33 2004
@@ -0,0 +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.commons.codec.stateful;
+
+
+/**
+ * A factory for creating new StatefulDecoders.
+ *
+ * @author <a href="mailto:directory-dev@incubator.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();
+}

Added: incubator/directory/snickers/trunk/codec-stateful/src/java/org/apache/commons/codec/stateful/EncoderFactory.java
==============================================================================
--- (empty file)
+++ incubator/directory/snickers/trunk/codec-stateful/src/java/org/apache/commons/codec/stateful/EncoderFactory.java
Mon Sep  6 17:01:33 2004
@@ -0,0 +1,33 @@
+/*
+ *   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.commons.codec.stateful;
+
+/**
+ * A factory for creating new StatefulEncoders.
+ *
+ * @author <a href="mailto:directory-dev@incubator.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();
+}

Mime
View raw message