com.github.stephenc.javaisotools.eltorito.impl
Class ElToritoConfig

java.lang.Object
  extended by com.github.stephenc.javaisotools.iso9660.BootConfig
      extended by com.github.stephenc.javaisotools.eltorito.impl.ElToritoConfig

public class ElToritoConfig
extends BootConfig


Field Summary
static int BOOT_MEDIA_TYPE_1_2MEG_DISKETTE
           
static int BOOT_MEDIA_TYPE_1_44MEG_DISKETTE
           
static int BOOT_MEDIA_TYPE_2_88MEG_DISKETTE
           
static int BOOT_MEDIA_TYPE_HD
           
static int BOOT_MEDIA_TYPE_NO_EMU
           
static int LOAD_SEGMENT_7C0
           
static int PLATFORM_ID_EFI
           
static int PLATFORM_ID_MAC
           
static int PLATFORM_ID_PPC
           
static int PLATFORM_ID_X86
           
 
Constructor Summary
ElToritoConfig(File bootImage, int emulation, int platformID, String idString, int sectorCount, int loadSegment)
          El Torito Boot Image configuration
 
Method Summary
 boolean getBootable()
          Returns whether the Boot Image is bootable
 ISO9660File getBootImage()
          Returns active Boot Image
 int getBootMediaType()
          Returns active Boot Media Type (Emulation Mode)
 boolean getGenBootInfoTable()
          Generate Boot Info Table
 String getIDString()
          Returns active Identifier String
 int getLoadSegment()
          Returns active Load Segment
 int getPlatformID()
          Returns active Platform Identifier
 int getSectorCount()
          Returns active Sector Count
 int getSystemType()
          Returns active System Type
 void setBootable(boolean bootable)
          Make bootable
 void setBootImage(ISO9660File bootImage)
          Set Boot Image
 void setEmulation(int bootMediaType)
          Set Emulation Mode
 void setGenBootInfoTable(boolean genBootInfoTable)
          Set Boot Info Table (only allowed for no-emulation images)
 void setIDString(String idString)
          Set Identifier String
 void setLoadSegment(int loadSegment)
          Set Load Segment
 void setPlatformID(int platformID)
          Set Platform Identifier
 void setSectorCount(int sectorCount)
          Set Sector Count
 void setSystemType(int systemType)
          Set System Type
 
Methods inherited from class com.github.stephenc.javaisotools.iso9660.BootConfig
getBootId, getBootSystemId, setBootId, setBootSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLATFORM_ID_X86

public static int PLATFORM_ID_X86

PLATFORM_ID_PPC

public static int PLATFORM_ID_PPC

PLATFORM_ID_MAC

public static int PLATFORM_ID_MAC

PLATFORM_ID_EFI

public static int PLATFORM_ID_EFI

BOOT_MEDIA_TYPE_NO_EMU

public static int BOOT_MEDIA_TYPE_NO_EMU

BOOT_MEDIA_TYPE_1_2MEG_DISKETTE

public static int BOOT_MEDIA_TYPE_1_2MEG_DISKETTE

BOOT_MEDIA_TYPE_1_44MEG_DISKETTE

public static int BOOT_MEDIA_TYPE_1_44MEG_DISKETTE

BOOT_MEDIA_TYPE_2_88MEG_DISKETTE

public static int BOOT_MEDIA_TYPE_2_88MEG_DISKETTE

BOOT_MEDIA_TYPE_HD

public static int BOOT_MEDIA_TYPE_HD

LOAD_SEGMENT_7C0

public static int LOAD_SEGMENT_7C0
Constructor Detail

ElToritoConfig

public ElToritoConfig(File bootImage,
                      int emulation,
                      int platformID,
                      String idString,
                      int sectorCount,
                      int loadSegment)
               throws HandlerException,
                      ConfigException
El Torito Boot Image configuration

Parameters:
bootImage - Boot Image file
emulation - Emulation mode: one of BOOT_MEDIA_TYPE_*
platformID - Platform Identifier: one of PLATFORM_ID_*
idString - Identifier String
sectorCount - Boot Image Sector Count
loadSegment - Boot Image Load Segment
Throws:
HandlerException - Problems converting to ISO9660File
ConfigException - String too long or invalid platform/emulation mode
Method Detail

getBootImage

public ISO9660File getBootImage()
Returns active Boot Image

Returns:
Active Boot Image

setBootImage

public void setBootImage(ISO9660File bootImage)
Set Boot Image

Parameters:
bootImage - Boot Image

getBootable

public boolean getBootable()
Returns whether the Boot Image is bootable

Returns:
Whether the Boot Image is bootable

setBootable

public void setBootable(boolean bootable)
Make bootable

Parameters:
bootable - Whether the Boot Image should be bootable

setGenBootInfoTable

public void setGenBootInfoTable(boolean genBootInfoTable)
                         throws ConfigException
Set Boot Info Table (only allowed for no-emulation images)

Parameters:
genBootInfoTable - Whether to generate a boot info table
Throws:
ConfigException

getGenBootInfoTable

public boolean getGenBootInfoTable()
Generate Boot Info Table

Returns:
Whether a boot info table is to be generated

setPlatformID

public void setPlatformID(int platformID)
                   throws ConfigException
Set Platform Identifier

Parameters:
platformID - Platform Identifier: one of PLATFORM_ID_*
Throws:
ConfigException - Invalid Platform Identifier

getPlatformID

public int getPlatformID()
Returns active Platform Identifier

Returns:
Platform Identifier

setIDString

public void setIDString(String idString)
                 throws ConfigException
Set Identifier String

Parameters:
idString - Identifier String
Throws:
ConfigException - String too long

getIDString

public String getIDString()
Returns active Identifier String

Returns:
Active Identifier String

getBootMediaType

public int getBootMediaType()
Returns active Boot Media Type (Emulation Mode)

Returns:
Active Boot Media Type

setEmulation

public void setEmulation(int bootMediaType)
                  throws ConfigException
Set Emulation Mode

Parameters:
bootMediaType - Boot Media Type: one of BOOT_MEDIA_TYPE_*
Throws:
ConfigException - Invalid Boot Media Type

getLoadSegment

public int getLoadSegment()
Returns active Load Segment

Returns:
Active Load Segment

setLoadSegment

public void setLoadSegment(int loadSegment)
Set Load Segment

Parameters:
loadSegment - Load Segment

getSectorCount

public int getSectorCount()
Returns active Sector Count

Returns:
Active Sector Count

setSectorCount

public void setSectorCount(int sectorCount)
Set Sector Count

Parameters:
sectorCount - Sector Count

getSystemType

public int getSystemType()
Returns active System Type

Returns:
Active System Type

setSystemType

public void setSystemType(int systemType)
Set System Type

Parameters:
systemType - System Type


Copyright © 2013. All Rights Reserved.