- 更新日時:
- 2010/05/11 20:15:55 (2 年 前)
- パス:
- trunk/src/org/rayflood/mikuvat/io/vsq
- ファイル:
-
- 1 追加
- 1 移動
-
. (追加)
-
Event.java (移動) (移動元: trunk/src/org/rayflood/mikuvat/io/Event.java) (3 diff)
凡例:
- 変更なし
- 追加
- 削除
-
trunk/src/org/rayflood/mikuvat/io/vsq/Event.java
r2 r4 1 package org.rayflood.mikuvat.io ;1 package org.rayflood.mikuvat.io.vsq; 2 2 3 import static org.rayflood.mikuvat. io.VSQDecoder.splitEqual;3 import static org.rayflood.mikuvat.Utilities.splitEqual; 4 4 5 5 import java.io.File; 6 import java.io.FileNotFoundException; 7 import java.io.IOException; 6 8 import java.util.HashMap; 7 9 import java.util.List; 8 10 import java.util.Map; 9 11 10 public abstract class Event extends ImmutableObject{ 12 import org.rayflood.mikuvat.io.BaseObject; 13 14 public abstract class Event extends BaseObject{ 11 15 private static final long serialVersionUID = 3144497610281730738L; 12 16 public static final String TYPE = "Type"; … … 15 19 public static final String EOS = "EOS"; 16 20 17 public int compareTo( ImmutableObject obj){21 public int compareTo(BaseObject obj){ 18 22 Event event = (Event)obj; 19 23 return compare(getClass().getName(), event.getClass().getName()); … … 58 62 } 59 63 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); 62 66 } 63 67 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); 66 70 } 67 71 68 public void store(String file) throws Exception{72 public void store(String file) throws FileNotFoundException, IOException{ 69 73 super.store(file); 70 74 } 71 75 72 public void store(File file) throws Exception{76 public void store(File file) throws FileNotFoundException, IOException{ 73 77 super.store(file); 74 78 } 75 79 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); 78 82 } 79 83 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); 82 86 } 83 87 84 public void zip(String file) throws Exception{88 public void zip(String file) throws IOException{ 85 89 super.zip(file); 86 90 } 87 91 88 public void zip(File file) throws Exception{92 public void zip(File file) throws IOException{ 89 93 super.zip(file); 90 94 }
