summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/CDDBStatus.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/CDDBStatus.java')
-rw-r--r--NET/worlds/scape/CDDBStatus.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/NET/worlds/scape/CDDBStatus.java b/NET/worlds/scape/CDDBStatus.java
new file mode 100644
index 0000000..8f790ad
--- /dev/null
+++ b/NET/worlds/scape/CDDBStatus.java
@@ -0,0 +1,60 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */ import java.io.IOException;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class CDDBStatus
+/* */ implements Persister
+/* */ {
+/* */ private int status;
+/* */ private CDDiskInfo diskInfo;
+/* */
+/* */ public CDDBStatus(int status, CDDiskInfo diskInfo)
+/* */ {
+/* 17 */ this.status = status;
+/* 18 */ this.diskInfo = diskInfo;
+/* */ }
+/* */
+/* */ public CDDBStatus(int status)
+/* */ {
+/* 23 */ this.status = status;
+/* */ }
+/* */
+/* */ public CDDBStatus() {}
+/* */
+/* 28 */ public int getStatus() { return this.status; }
+/* 29 */ public CDDiskInfo getDiskInfo() { return this.diskInfo; }
+/* */
+/* 31 */ private static Object classCookie = new Object();
+/* */
+/* */ public void saveState(Saver s) throws IOException
+/* */ {
+/* 35 */ s.saveVersion(1, classCookie);
+/* 36 */ s.saveInt(this.status);
+/* 37 */ s.saveMaybeNull(this.diskInfo);
+/* */ }
+/* */
+/* */ public void restoreState(Restorer r) throws IOException, TooNewException
+/* */ {
+/* 42 */ switch (r.restoreVersion(classCookie)) {
+/* */ case 1:
+/* 44 */ this.status = r.restoreInt();
+/* 45 */ this.diskInfo = ((CDDiskInfo)r.restoreMaybeNull());
+/* 46 */ break;
+/* */
+/* */ default:
+/* 49 */ throw new TooNewException();
+/* */ }
+/* */ }
+/* */
+/* */ public void postRestore(int version) {}
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\CDDBStatus.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file