All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class org.jos.fs.util.ImageFileMedium

java.lang.Object
    |
    +----org.jos.fs.util.ImageFileMedium

public class ImageFileMedium
extends Object
implements Medium
maintains an image file and offers access to it via the Medium interface

There are two possible uses of this class:

  1. when testing under a host OS, install a virtual disk to debug a JOS file system
  2. create a virtual disk inside another disk (a la DoubleSpace, Stacker etc., remember?)

This is a thread-safe class (as required by org.jos.fs.Medium).

Version:
JOS-FileSystem 4 Preview (25-Mar-98)
Author:
Stefan Reich

Constructor Index

 o ImageFileMedium(String)

Method Index

 o addMediumListener(MediumListener)
 o eject()
 o flush()
 o getFlags()
neither read-only nor ejectable
 o getSize()
 o isRemoved()
 o readBytes(long, byte[], int, int)
 o remount()
 o removeMediumListener(MediumListener)
 o toString()
 o writeBytes(long, byte[], int, int)

Constructors

 o ImageFileMedium
public ImageFileMedium(String imageFileName) throws IOException

Methods

 o getFlags
public int getFlags()
neither read-only nor ejectable

 o getSize
public long getSize()
 o readBytes
public void readBytes(long ofs,
                      byte[] buf,
                      int bOfs,
                      int count) throws IOException, IllegalArgumentException
 o writeBytes
public void writeBytes(long ofs,
                       byte[] buf,
                       int bOfs,
                       int count) throws IOException
 o flush
public void flush()
 o eject
public void eject() throws UnsupportedFeatureException
 o remount
public void remount() throws UnsupportedFeatureException
 o isRemoved
public boolean isRemoved()
 o addMediumListener
public void addMediumListener(MediumListener l)
 o removeMediumListener
public void removeMediumListener(MediumListener l)
 o toString
public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index