dioscuri.module.fdc
Class Floppy

java.lang.Object
  extended by dioscuri.module.fdc.Floppy

public class Floppy
extends java.lang.Object

Author:
Bram Lohman, Bart Kiers

Field Summary
protected  byte[] bytes
           
protected  byte type
           
 
Constructor Summary
Floppy()
          Class Constructor
Floppy(byte type, java.io.File imageFile)
          Constructor Floppy
 
Method Summary
protected  int getSize()
          Get the size of floppy in bytes
protected  void storeImageToFile()
          Store image to file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected byte type

bytes

protected byte[] bytes
Constructor Detail

Floppy

public Floppy()
Class Constructor


Floppy

public Floppy(byte type,
              java.io.File imageFile)
       throws java.io.IOException
Constructor Floppy

Parameters:
type -
imageFile -
Throws:
java.io.IOException - if file cannot be read (or does not exist)
Method Detail

getSize

protected int getSize()
Get the size of floppy in bytes

Returns:
-

storeImageToFile

protected void storeImageToFile()
                         throws java.io.IOException
Store image to file

Throws:
java.io.IOException - if file cannot be written (or does not exist)