- 更新日時:
- 2010/05/11 20:15:55 (2 年 前)
- パス:
- trunk/src/org/rayflood/mikuvat/io/vsq
- ファイル:
-
- 1 追加
- 1 移動
-
. (追加)
-
SingerEvent.java (移動) (移動元: trunk/src/org/rayflood/mikuvat/io/SingerEvent.java) (4 diff)
凡例:
- 変更なし
- 追加
- 削除
-
trunk/src/org/rayflood/mikuvat/io/vsq/SingerEvent.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.setSectionBracket;3 import static org.rayflood.mikuvat.Utilities.setSectionBracket; 4 4 5 5 import java.io.File; 6 import java.io.FileNotFoundException; 7 import java.io.IOException; 6 8 import java.util.ArrayList; 7 9 import java.util.List; 8 10 import java.util.Map; 11 12 import org.rayflood.mikuvat.io.BaseObject; 13 import org.rayflood.mikuvat.io.InvalidBaseObjectException; 9 14 10 15 public class SingerEvent extends Event{ … … 47 52 } 48 53 49 StringBu ffer sb = new StringBuffer();54 StringBuilder sb = new StringBuilder(); 50 55 sb.append("SingerEvent={"); 51 56 if(!sl.isEmpty()){ … … 59 64 } 60 65 61 public boolean isReadied(){66 public boolean validate() throws InvalidBaseObjectException{ 62 67 boolean ready = true; 63 ready &= hasIconHandle() && getIconHandle().isReadied(); 68 ready &= hasIconHandle() && getIconHandle().validate(); 69 if(!ready){ 70 throw new InvalidBaseObjectException(this); 71 } 64 72 return ready; 65 73 } 66 74 67 public int compareTo( ImmutableObject obj){75 public int compareTo(BaseObject obj){ 68 76 SingerEvent singerEvent = (SingerEvent)obj; 69 77 return compare(getIconHandle(), singerEvent.getIconHandle()); 70 78 } 71 79 72 public SingerEvent over( Object obj, boolean fill, boolean has){80 public SingerEvent over(BaseObject obj, boolean fill, boolean has){ 73 81 SingerEvent singerEvent = ((SingerEvent)obj).clone(); 74 82 if(singerEvent.hasIconHandle()){ … … 129 137 } 130 138 131 public static SingerEvent load(String file) throws Exception{132 return (SingerEvent) ImmutableObject.load(file);139 public static SingerEvent load(String file) throws FileNotFoundException, IOException, ClassNotFoundException{ 140 return (SingerEvent)BaseObject.load(file); 133 141 } 134 142 135 public static SingerEvent load(File file) throws Exception{136 return (SingerEvent) ImmutableObject.load(file);143 public static SingerEvent load(File file) throws FileNotFoundException, IOException, ClassNotFoundException{ 144 return (SingerEvent)BaseObject.load(file); 137 145 } 138 146 139 public void store(String file) throws Exception{147 public void store(String file) throws FileNotFoundException, IOException{ 140 148 super.store(file); 141 149 } 142 150 143 public void store(File file) throws Exception{151 public void store(File file) throws FileNotFoundException, IOException{ 144 152 super.store(file); 145 153 } 146 154 147 public static SingerEvent unzip(String file) throws Exception{148 return (SingerEvent) ImmutableObject.unzip(file);155 public static SingerEvent unzip(String file) throws IOException, ClassNotFoundException{ 156 return (SingerEvent)BaseObject.unzip(file); 149 157 } 150 158 151 public static SingerEvent unzip(File file) throws Exception{152 return (SingerEvent) ImmutableObject.unzip(file);159 public static SingerEvent unzip(File file) throws IOException, ClassNotFoundException{ 160 return (SingerEvent)BaseObject.unzip(file); 153 161 } 154 162 155 public void zip(String file) throws Exception{163 public void zip(String file) throws IOException{ 156 164 super.zip(file); 157 165 } 158 166 159 public void zip(File file) throws Exception{167 public void zip(File file) throws IOException{ 160 168 super.zip(file); 161 169 }
