Coverage report

| %line | %branch
--- | --- | ---
com.ozacc.mail.fetch.impl.sk_jp.io.ToCP932Corrector |
0% |
0% |

1 |  |
     /*
2 |  |
      * @(#) $Id: ToCP932Corrector.java,v 1.1.2.1 2005/01/18 07:20:36 otsuka Exp $
3 |  |
      * $Revision: 1.1.2.1 $
4 |  |
      * Copyright (c) 2000 Shin Kinoshita All Rights Reserved.
5 |  |
      */
6 |  |
     package com.ozacc.mail.fetch.impl.sk_jp.io;
7 |  |
8 |  |
     /**
9 |  |
      * ToCP932Corrector.
10 |  |
      * <p>
11 |  |
      * CorrectOutputStreamWriter¤ÇÍÑ¤¤¤é¤?¤?Ê¸»úÎó¥Ð¥Ã¥Õ¥¡ÊäÀµ¥¯¥é¥¹¤Ç¤¹¡£<br>
12 |  |
      * É÷´Ö°?ÍÎ¤µ¤ó¤ÎJavaHouse-BrewersÅ?¹Æµ»ö[14452]¤ÎCp932¥¯¥é¥¹
13 |  |
      * (XMLÆ?ËÜ¸?¥×¥úÁÕ¥¡¥¤¥?¤âÆ±¤¸¤Ç¤¹)¤«¤?
14 |  |
      * ÊÑ´¹É½¤ò»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤¤¤Þ¤¹¡£<br>
15 |  |
      * </p>
16 |  |
      * @version $Revision: 1.1.2.1 $ $Date: 2005/01/18 07:20:36 $
17 |  |
      * @author Shin
18 |  |
      */
19 | 0 |
     public class ToCP932Corrector extends UnicodeCorrector {
20 |  |
         /**
21 |  |
          * UnicodeÊ¸»ú¤ÎÊäÀµ¤ò¹Ô¤¤¤Þ¤¹¡£
22 |  |
          * <p>
23 |  |
          * ÆÃÄê¤ÎÊ¸»ú¤?"MS932""Shift_JIS"¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ç½ÐÎÏ¤·¤è¤¦¤È¤·¤¿ºÝ¤Î
24 |  |
          * sun.io¥³¥ó¥Ð¡¼¥¿¤Ç¤ÏÀµ¾?¤ËÊÑ´¹¤Ç¤¤Ê¤¤ÉôÊ¬¤òÊäÀµ¤·¤Þ¤¹¡£
25 |  |
          * </p>
26 |  |
          * @param  c     source character
27 |  |
          * @return Result character that corrected.
28 |  |
          */
29 |  |
         public char correct(class="keyword">char c) {
30 | 0 |
             switch (c) {
31 |  |
     //          case 0x005c:        // REVERSE SOLIDUS ->
32 |  |
     //              return 0xff3c;  // FULLWIDTH REVERSE SOLIDUS
33 |  |
                 case 0x301c:        // WAVE DASH ->
34 | 0 |
                     return 0xff5e;  // FULLWIDTH TILDE
35 |  |
                 case 0x2016:        // DOUBLE VERTICAL LINE ->
36 | 0 |
                     return 0x2225;  // PARALLEL TO
37 |  |
                 case 0x2212:        // MINUS SIGN ->
38 | 0 |
                     return 0xff0d;  // FULLWIDTH HYPHEN-MINUS
39 |  |
                 // MS932¥³¥ó¥Ð¡¼¥¿¤¬Àµ¤·¤¯²ò¼á¤·¤Æ¤¤¤?¤è¤¦¤À
40 |  |
     /*
41 |  |
                 case 0x00a2:        // CENT SIGN ->
42 |  |
                     return 0xffe0;  // FULLWIDTH CENT SIGN
43 |  |
                 case 0x00a3:        // POUND SIGN ->
44 |  |
                     return 0xffe1;  // FULLWIDTH POUND SIGN
45 |  |
                 case 0x00ac:        // NOT SIGN ->
46 |  |
                     return 0xffe2;  // FULLWIDTH NOT SIGN
47 |  |
     */
48 |  |
             }
49 | 0 |
             return c;
50 |  |
         }
51 |  |
     }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.