差分発生行の前後
無視リスト:
更新日時:
2010/05/11 20:15:55 (2 年 前)
更新者:
h
ログメッセージ:

refs #2 #8 #9 #7 #6
現状のソースをコミット。一部完了。一部未完了。
関連づいてない完了チケットのチェンジセットもまとめて。
パッケージ階層も大幅に変更。

パス:
trunk/src/org/rayflood/mikuvat/io/vsq
ファイル:
1 追加
1 移動

凡例:

変更なし
追加
削除
  • trunk/src/org/rayflood/mikuvat/io/vsq/Event.java

    r2 r4  
    1 package org.rayflood.mikuvat.io; 
     1package org.rayflood.mikuvat.io.vsq; 
    22 
    3 import static org.rayflood.mikuvat.io.VSQDecoder.splitEqual; 
     3import static org.rayflood.mikuvat.Utilities.splitEqual; 
    44 
    55import java.io.File; 
     6import java.io.FileNotFoundException; 
     7import java.io.IOException; 
    68import java.util.HashMap; 
    79import java.util.List; 
    810import java.util.Map; 
    911 
    10 public abstract class Event extends ImmutableObject{ 
     12import org.rayflood.mikuvat.io.BaseObject; 
     13 
     14public abstract class Event extends BaseObject{ 
    1115        private static final long serialVersionUID = 3144497610281730738L; 
    1216        public static final String TYPE = "Type"; 
     
    1519        public static final String EOS = "EOS"; 
    1620 
    17         public int compareTo(ImmutableObject obj){ 
     21        public int compareTo(BaseObject obj){ 
    1822                Event event = (Event)obj; 
    1923                return compare(getClass().getName(), event.getClass().getName()); 
     
    5862        } 
    5963 
    60         public static Event load(String file) throws Exception{ 
    61                 return (Event)ImmutableObject.load(file); 
     64        public static Event load(String file) throws FileNotFoundException, IOException, ClassNotFoundException{ 
     65                return (Event)BaseObject.load(file); 
    6266        } 
    6367 
    64         public static Event load(File file) throws Exception{ 
    65                 return (Event)ImmutableObject.load(file); 
     68        public static Event load(File file) throws FileNotFoundException, IOException, ClassNotFoundException{ 
     69                return (Event)BaseObject.load(file); 
    6670        } 
    6771 
    68         public void store(String file) throws Exception{ 
     72        public void store(String file) throws FileNotFoundException, IOException{ 
    6973                super.store(file); 
    7074        } 
    7175 
    72         public void store(File file) throws Exception{ 
     76        public void store(File file) throws FileNotFoundException, IOException{ 
    7377                super.store(file); 
    7478        } 
    7579 
    76         public static Event unzip(String file) throws Exception{ 
    77                 return (Event)ImmutableObject.unzip(file); 
     80        public static Event unzip(String file) throws IOException, ClassNotFoundException{ 
     81                return (Event)BaseObject.unzip(file); 
    7882        } 
    7983 
    80         public static Event unzip(File file) throws Exception{ 
    81                 return (Event)ImmutableObject.unzip(file); 
     84        public static Event unzip(File file) throws IOException, ClassNotFoundException{ 
     85                return (Event)BaseObject.unzip(file); 
    8286        } 
    8387 
    84         public void zip(String file) throws Exception{ 
     88        public void zip(String file) throws IOException{ 
    8589                super.zip(file); 
    8690        } 
    8791 
    88         public void zip(File file) throws Exception{ 
     92        public void zip(File file) throws IOException{ 
    8993                super.zip(file); 
    9094        }