- 更新日時:
- 2010/05/11 20:15:55 (2 年 前)
- パス:
- trunk/src/org/rayflood/mikuvat/io/vsq
- ファイル:
-
- 1 追加
- 1 移動
-
. (追加)
-
EOSEvent.java (移動) (移動元: trunk/src/org/rayflood/mikuvat/io/EOSEvent.java) (4 diff)
凡例:
- 変更なし
- 追加
- 削除
-
trunk/src/org/rayflood/mikuvat/io/vsq/EOSEvent.java
r2 r4 1 package org.rayflood.mikuvat.io ;1 package org.rayflood.mikuvat.io.vsq; 2 2 3 3 import java.io.File; 4 import java.io.FileNotFoundException; 5 import java.io.IOException; 4 6 import java.util.List; 5 7 import java.util.Map; 8 9 import org.rayflood.mikuvat.io.BaseObject; 6 10 7 11 public class EOSEvent extends Event{ … … 20 24 } 21 25 22 public boolean isReadied(){26 public boolean validate(){ 23 27 return true; 24 28 } 25 29 26 public int compareTo( ImmutableObject obj){30 public int compareTo(BaseObject obj){ 27 31 if(!(obj instanceof EOSEvent)){ 28 32 throw new ClassCastException(); … … 31 35 } 32 36 33 public EOSEvent over( Object obj, boolean fill, boolean has){37 public EOSEvent over(BaseObject obj, boolean fill, boolean has){ 34 38 if(!(obj instanceof EOSEvent)){ 35 39 throw new ClassCastException(); … … 54 58 } 55 59 56 public static EOSEvent load(String file) throws Exception{57 return (EOSEvent) ImmutableObject.load(file);60 public static EOSEvent load(String file) throws FileNotFoundException, IOException, ClassNotFoundException{ 61 return (EOSEvent)BaseObject.load(file); 58 62 } 59 63 60 public static EOSEvent load(File file) throws Exception{61 return (EOSEvent) ImmutableObject.load(file);64 public static EOSEvent load(File file) throws FileNotFoundException, IOException, ClassNotFoundException{ 65 return (EOSEvent)BaseObject.load(file); 62 66 } 63 67 64 public void store(String file) throws Exception{68 public void store(String file) throws FileNotFoundException, IOException{ 65 69 super.store(file); 66 70 } 67 71 68 public void store(File file) throws Exception{72 public void store(File file) throws FileNotFoundException, IOException{ 69 73 super.store(file); 70 74 } 71 75 72 public static EOSEvent unzip(String file) throws Exception{73 return (EOSEvent) ImmutableObject.unzip(file);76 public static EOSEvent unzip(String file) throws IOException, ClassNotFoundException{ 77 return (EOSEvent)BaseObject.unzip(file); 74 78 } 75 79 76 public static EOSEvent unzip(File file) throws Exception{77 return (EOSEvent) ImmutableObject.unzip(file);80 public static EOSEvent unzip(File file) throws IOException, ClassNotFoundException{ 81 return (EOSEvent)BaseObject.unzip(file); 78 82 } 79 83 80 public void zip(String file) throws Exception{84 public void zip(String file) throws IOException{ 81 85 super.zip(file); 82 86 } 83 87 84 public void zip(File file) throws Exception{88 public void zip(File file) throws IOException{ 85 89 super.zip(file); 86 90 }
