EMMA Coverage Report (generated Fri Oct 21 16:16:13 KST 2005)
[all classes][org.apache.mina.io]

COVERAGE SUMMARY FOR SOURCE FILE [IoHandlerAdapter.java]

nameclass, %method, %block, %line, %
IoHandlerAdapter.java100% (1/1)62%  (5/8)75%  (9/12)67%  (6/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class IoHandlerAdapter100% (1/1)62%  (5/8)75%  (9/12)67%  (6/9)
dataRead (IoSession, ByteBuffer): void 0%   (0/1)0%   (0/1)0%   (0/1)
exceptionCaught (IoSession, Throwable): void 0%   (0/1)0%   (0/1)0%   (0/1)
sessionIdle (IoSession, IdleStatus): void 0%   (0/1)0%   (0/1)0%   (0/1)
IoHandlerAdapter (): void 100% (1/1)100% (3/3)100% (1/1)
dataWritten (IoSession, Object): void 100% (1/1)100% (1/1)100% (1/1)
sessionClosed (IoSession): void 100% (1/1)100% (1/1)100% (1/1)
sessionCreated (IoSession): void 100% (1/1)100% (3/3)100% (2/2)
sessionOpened (IoSession): void 100% (1/1)100% (1/1)100% (1/1)

1/*
2 *   @(#) $Id: IoHandlerAdapter.java 327113 2005-10-21 06:59:15Z trustin $
3 *
4 *   Copyright 2004 The Apache Software Foundation
5 *
6 *   Licensed under the Apache License, Version 2.0 (the "License");
7 *   you may not use this file except in compliance with the License.
8 *   You may obtain a copy of the License at
9 *
10 *       http://www.apache.org/licenses/LICENSE-2.0
11 *
12 *   Unless required by applicable law or agreed to in writing, software
13 *   distributed under the License is distributed on an "AS IS" BASIS,
14 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 *   See the License for the specific language governing permissions and
16 *   limitations under the License.
17 *
18 */
19package org.apache.mina.io;
20 
21import org.apache.mina.common.ByteBuffer;
22import org.apache.mina.common.IdleStatus;
23import org.apache.mina.util.SessionUtil;
24 
25/**
26 * An abstract adapter class for {@link IoHandler}.  You can extend this class
27 * and selectively override required event handler methods only.  All methods
28 * do nothing by default.
29 * <p>
30 * Please refer to
31 * <a href="../../../../../xref-examples/org/apache/mina/examples/netcat/NetCatProtocolHandler.html"><code>NetCatProtocolHandler</code></a>
32 * example. 
33 * 
34 * @author The Apache Directory Project (dev@directory.apache.org)
35 * @version $Rev: 327113 $, $Date: 2005-10-21 15:59:15 +0900 $
36 */
37public class IoHandlerAdapter implements IoHandler
38{
39    public void sessionCreated( IoSession session ) throws Exception
40    {
41        SessionUtil.initialize( session );
42    }
43 
44    public void sessionOpened( IoSession session ) throws Exception
45    {
46    }
47 
48    public void sessionClosed( IoSession session ) throws Exception
49    {
50    }
51 
52    public void sessionIdle( IoSession session, IdleStatus status ) throws Exception
53    {
54    }
55 
56    public void exceptionCaught( IoSession session, Throwable cause ) throws Exception
57    {
58    }
59 
60    public void dataRead( IoSession session, ByteBuffer buf ) throws Exception
61    {
62    }
63 
64    public void dataWritten( IoSession session, Object marker ) throws Exception
65    {
66    }
67}

[all classes][org.apache.mina.io]
EMMA 2.0.4217 (C) Vladimir Roubtsov