|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.sim.cpm.CpmDisk
public class CpmDisk
CP/M File system implementation.
Simple implementation of the CP/M file system. This class permit to format a CP/M disk and read,write and delete one file from the disk.
This version work only for disk with DPB.exm == 0.
Constructor Summary | |
---|---|
CpmDisk(DPB dpb,
Disk disk)
Constructor. |
Method Summary | |
---|---|
void |
deleteFile(int user,
java.lang.String name)
|
void |
format()
Format the disk with the CP/M file system |
void |
getFile(CpmFile file,
java.io.OutputStream os)
|
void |
getFile(CpmFile file,
java.lang.String name)
|
void |
getFile(int user,
java.lang.String name,
java.io.OutputStream os)
|
void |
getFile(int user,
java.lang.String name,
java.lang.String to)
|
CpmFile |
getFileAt(int index)
|
int |
getFileCount()
|
int |
getFileSize(CpmFile file)
|
int |
getNumBlockUsed()
|
int |
getNumDirBlock()
|
int |
getNumDirectoryUsed()
|
int |
getRecordForFCB()
|
void |
mount()
|
void |
putFile(int user,
java.lang.String name,
java.io.InputStream is)
|
void |
readBlock(int block,
byte[] buffer)
|
void |
readSector(int secno,
byte[] buffer)
|
void |
readSector(int track,
int sector,
byte[] buffer)
|
void |
stat()
|
void |
stat(java.lang.String name,
int value,
java.lang.String unit)
|
java.lang.String |
toString()
|
void |
umount()
|
void |
writeBlock(int block,
byte[] buffer)
|
void |
writeSector(int secno,
byte[] buffer)
|
void |
writeSector(int track,
int sector,
byte[] buffer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CpmDisk(DPB dpb, Disk disk)
dpb
- - Disk parametar blockdisk
- - Phisical diskMethod Detail |
---|
public void format() throws java.lang.Exception
java.lang.Exception
public CpmFile getFileAt(int index)
public int getFileCount()
public void writeSector(int secno, byte[] buffer) throws java.lang.Exception
java.lang.Exception
public void writeSector(int track, int sector, byte[] buffer) throws java.lang.Exception
java.lang.Exception
public void readSector(int track, int sector, byte[] buffer) throws java.lang.Exception
java.lang.Exception
public void readSector(int secno, byte[] buffer) throws java.lang.Exception
java.lang.Exception
public int getNumDirBlock()
public void mount() throws java.lang.Exception
java.lang.Exception
public int getNumBlockUsed()
public int getNumDirectoryUsed()
public void stat(java.lang.String name, int value, java.lang.String unit)
public void stat()
public void readBlock(int block, byte[] buffer) throws java.lang.Exception
java.lang.Exception
public void writeBlock(int block, byte[] buffer) throws java.lang.Exception
java.lang.Exception
public int getRecordForFCB()
public void putFile(int user, java.lang.String name, java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
public int getFileSize(CpmFile file) throws java.lang.Exception
java.lang.Exception
public void getFile(int user, java.lang.String name, java.lang.String to) throws java.lang.Exception
java.lang.Exception
public void getFile(int user, java.lang.String name, java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception
public void getFile(CpmFile file, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void getFile(CpmFile file, java.io.OutputStream os) throws java.lang.Exception
java.lang.Exception
public void deleteFile(int user, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void umount() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |