Author: trustin
Date: Mon Oct 17 02:28:07 2005
New Revision: 325868
URL: http://svn.apache.org/viewcvs?rev=325868&view=rev
Log:
Added adapter classes for all encoders and decoders.
Added:
directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageDecoderAdapter.java
directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageEncoderAdapter.java
directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolDecoderAdapter.java
directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolEncoderAdapter.java
Added: directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageDecoderAdapter.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageDecoderAdapter.java?rev=325868&view=auto
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageDecoderAdapter.java
(added)
+++ directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageDecoderAdapter.java
Mon Oct 17 02:28:07 2005
@@ -0,0 +1,37 @@
+/*
+ * @(#) $Id: ProtocolDecoder.java 325865 2005-10-17 09:08:04Z trustin $
+ *
+ * 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.mina.filter.codec;
+
+/**
+ * An abstract {@link MessageDecoder} implementation for those who don't have any
+ * resources to dispose.
+ *
+ * @author Trustin Lee (trustin@apache.org)
+ * @version $Rev: 325865 $, $Date: 2005-10-17 18:08:04 +0900 (ì, 17 10 2005) $
+ */
+public abstract class MessageDecoderAdapter implements MessageDecoder
+{
+ /**
+ * Override this method dispose all resources related with this decoder.
+ * The default implementation does nothing.
+ */
+ public void dispose() throws Exception
+ {
+ }
+}
Added: directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageEncoderAdapter.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageEncoderAdapter.java?rev=325868&view=auto
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageEncoderAdapter.java
(added)
+++ directory/network/trunk/src/java/org/apache/mina/filter/codec/MessageEncoderAdapter.java
Mon Oct 17 02:28:07 2005
@@ -0,0 +1,37 @@
+/*
+ * @(#) $Id: ProtocolDecoder.java 325865 2005-10-17 09:08:04Z trustin $
+ *
+ * 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.mina.filter.codec;
+
+/**
+ * An abstract {@link MessageEncoder} implementation for those who don't have any
+ * resources to dispose.
+ *
+ * @author Trustin Lee (trustin@apache.org)
+ * @version $Rev: 325865 $, $Date: 2005-10-17 18:08:04 +0900 (ì, 17 10 2005) $
+ */
+public abstract class MessageEncoderAdapter implements MessageEncoder
+{
+ /**
+ * Override this method dispose all resources related with this encoder.
+ * The default implementation does nothing.
+ */
+ public void dispose() throws Exception
+ {
+ }
+}
Added: directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolDecoderAdapter.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolDecoderAdapter.java?rev=325868&view=auto
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolDecoderAdapter.java
(added)
+++ directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolDecoderAdapter.java
Mon Oct 17 02:28:07 2005
@@ -0,0 +1,37 @@
+/*
+ * @(#) $Id: ProtocolDecoder.java 325865 2005-10-17 09:08:04Z trustin $
+ *
+ * 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.mina.filter.codec;
+
+/**
+ * An abstract {@link ProtocolDecoder} implementation for those who don't have any
+ * resources to dispose.
+ *
+ * @author Trustin Lee (trustin@apache.org)
+ * @version $Rev: 325865 $, $Date: 2005-10-17 18:08:04 +0900 (ì, 17 10 2005) $
+ */
+public abstract class ProtocolDecoderAdapter implements ProtocolDecoder
+{
+ /**
+ * Override this method dispose all resources related with this decoder.
+ * The default implementation does nothing.
+ */
+ public void dispose() throws Exception
+ {
+ }
+}
Added: directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolEncoderAdapter.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolEncoderAdapter.java?rev=325868&view=auto
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolEncoderAdapter.java
(added)
+++ directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolEncoderAdapter.java
Mon Oct 17 02:28:07 2005
@@ -0,0 +1,37 @@
+/*
+ * @(#) $Id: ProtocolDecoder.java 325865 2005-10-17 09:08:04Z trustin $
+ *
+ * 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.mina.filter.codec;
+
+/**
+ * An abstract {@link ProtocolEncoder} implementation for those who don't have any
+ * resources to dispose.
+ *
+ * @author Trustin Lee (trustin@apache.org)
+ * @version $Rev: 325865 $, $Date: 2005-10-17 18:08:04 +0900 (ì, 17 10 2005) $
+ */
+public abstract class ProtocolEncoderAdapter implements ProtocolEncoder
+{
+ /**
+ * Override this method dispose all resources related with this encoder.
+ * The default implementation does nothing.
+ */
+ public void dispose() throws Exception
+ {
+ }
+}
|