megamek.common.loaders
Class TdbFile

java.lang.Object
  extended by megamek.common.loaders.TdbFile
All Implemented Interfaces:
IMechLoader

public class TdbFile
extends java.lang.Object
implements IMechLoader


Constructor Summary
TdbFile(java.io.InputStream is)
          Creates new TdbFile
 
Method Summary
 Entity getEntity()
          Return a valid mech, matching the file to the best of MegaMek's current capabilities, or throw an exception with a helpful message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TdbFile

public TdbFile(java.io.InputStream is)
        throws EntityLoadingException
Creates new TdbFile

Throws:
EntityLoadingException
Method Detail

getEntity

public Entity getEntity()
                 throws EntityLoadingException
Description copied from interface: IMechLoader
Return a valid mech, matching the file to the best of MegaMek's current capabilities, or throw an exception with a helpful message.

Specified by:
getEntity in interface IMechLoader
Throws:
EntityLoadingException