Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.pepperview.romzinger
Class ZippedGame  view ZippedGame download ZippedGame.java

java.lang.Object
  extended bycom.pepperview.romzinger.GameDesc
      extended bycom.pepperview.romzinger.Game
          extended bycom.pepperview.romzinger.ZippedGame

public class ZippedGame
extends Game

Description of the Class


Field Summary
private  java.util.Hashtable crcTable
           
private  java.io.File file
           
 
Fields inherited from class com.pepperview.romzinger.Game
newName
 
Fields inherited from class com.pepperview.romzinger.GameDesc
 
Constructor Summary
ZippedGame()
          Constructor for the ZippedGame object
 
Method Summary
private  long getCrc(java.lang.String name)
          During the saveModifications remember the crc value for that file in case ZipInputStream is unable to figure it because the zip file is a malformed.
 java.io.File getFile()
          Gets the File object corresponding to this game
 java.lang.String getName()
          Gets the Name this game
protected  void load(java.io.File file)
          Get the game information from his file
 void renameTo(java.lang.String name)
          Rename this game
 void saveModifications()
          Save all the modifications done to this game ROMs
 void setROMName(ROMDesc rom, java.lang.String name)
          Sets the name of a ROM of this ZippedGame object
 
Methods inherited from class com.pepperview.romzinger.Game
getMatchingGame, getToMove, isBackuped, isModified, setBackuped, setMatchingGame, setModified, setName, setToMove
 
Methods inherited from class com.pepperview.romzinger.GameDesc
addROM, getCloneOf, getCloneOfName, getDescription, getManufacturer, getROM, getROMOf, getROMOfName, getROMs, getSharedROMs, getSingleROMs, getYear, setCloneOf, setCloneOfName, setDescription, setManufacturer, setROMOf, setROMOfName, setYear, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

file

private java.io.File file

crcTable

private java.util.Hashtable crcTable
Constructor Detail

ZippedGame

public ZippedGame()
Constructor for the ZippedGame object

Since:
Method Detail

setROMName

public void setROMName(ROMDesc rom,
                       java.lang.String name)
Sets the name of a ROM of this ZippedGame object

Specified by:
setROMName in class Game
Since:

getFile

public java.io.File getFile()
Gets the File object corresponding to this game

Specified by:
getFile in class Game
Since:

getName

public java.lang.String getName()
Gets the Name this game

Overrides:
getName in class GameDesc
Since:

saveModifications

public void saveModifications()
                       throws java.io.IOException
Save all the modifications done to this game ROMs

Specified by:
saveModifications in class Game
Since:

renameTo

public void renameTo(java.lang.String name)
Rename this game

Specified by:
renameTo in class Game
Since:

load

protected void load(java.io.File file)
             throws java.io.IOException
Get the game information from his file

Specified by:
load in class Game
Since:

getCrc

private long getCrc(java.lang.String name)
During the saveModifications remember the crc value for that file in case ZipInputStream is unable to figure it because the zip file is a malformed.

Since: