org.gamenet.application.mm8leveleditor.mm7
Class MM7NewLodFile

java.lang.Object
  extended bycom.mmbreakfast.unlod.lod.LodFile
      extended byorg.gamenet.application.mm8leveleditor.mm7.MM7NewLodFile

public class MM7NewLodFile
extends LodFile


Field Summary
protected static long ENTRIES_NUMBER_OFFSET
           
protected static long ENTRY_HEADER_LENGTH
           
protected static long HEADER_OFFSET
           
protected static int[] SIGNATURE_GAME_MM7
           
protected static int[] SIGNATURE_GAME_MM8
           
protected static int[] SIGNATURE_NEW_MM7
           
 
Fields inherited from class com.mmbreakfast.unlod.lod.LodFile
entries, ENTRY_CONSTRUCTOR, file, FILE_HEADER_SIZE_OFFSET, FILE_SIZE_MINUS_FILE_HEADER_SIZE_OFFSET, fileHeader, in, orderedEntries
 
Constructor Summary
MM7NewLodFile(File file, RandomAccessFileInputStream randomaccessfileinputstream)
           
 
Method Summary
 long getEntriesNumberOffset()
           
 Class getEntryClass()
           
 long getEntryHeaderLength()
           
 long getHeaderOffset()
           
 LodEntry getLodEntryByName(String targetName)
           
protected  void verifySignature(RandomAccessFile randomaccessfile)
           
 
Methods inherited from class com.mmbreakfast.unlod.lod.LodFile
findLodEntryByFileName, findLodEntryForFile, getFile, getFileHeader, getFileHeaderSizeOffset, getFileName, getFileSizeMinusFileHeaderSizeOffset, getLodEntries, getNextEntry, getRandomAccessFileInputStream, readEntries, readEntryCount, readFileHeader, updateByAppendingData, verify, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_OFFSET

protected static final long HEADER_OFFSET
See Also:
Constant Field Values

ENTRY_HEADER_LENGTH

protected static final long ENTRY_HEADER_LENGTH
See Also:
Constant Field Values

ENTRIES_NUMBER_OFFSET

protected static final long ENTRIES_NUMBER_OFFSET
See Also:
Constant Field Values

SIGNATURE_NEW_MM7

protected static final int[] SIGNATURE_NEW_MM7

SIGNATURE_GAME_MM7

protected static final int[] SIGNATURE_GAME_MM7

SIGNATURE_GAME_MM8

protected static final int[] SIGNATURE_GAME_MM8
Constructor Detail

MM7NewLodFile

public MM7NewLodFile(File file,
                     RandomAccessFileInputStream randomaccessfileinputstream)
              throws IOException,
                     InvalidLodFileException
Method Detail

verifySignature

protected void verifySignature(RandomAccessFile randomaccessfile)
                        throws IOException,
                               InvalidLodFileException
Overrides:
verifySignature in class LodFile
Throws:
IOException
InvalidLodFileException

getLodEntryByName

public LodEntry getLodEntryByName(String targetName)
                           throws NoSuchEntryException
Throws:
NoSuchEntryException

getHeaderOffset

public long getHeaderOffset()
Specified by:
getHeaderOffset in class LodFile

getEntryHeaderLength

public long getEntryHeaderLength()
Specified by:
getEntryHeaderLength in class LodFile

getEntryClass

public Class getEntryClass()
Specified by:
getEntryClass in class LodFile

getEntriesNumberOffset

public long getEntriesNumberOffset()
Specified by:
getEntriesNumberOffset in class LodFile