|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectccs.cpc.VDevice
ccs.cpc.impl.DiskVDevice
class DiskVDevice
| Constructor Summary | |
|---|---|
DiskVDevice(CpCmdr cpc,
java.io.File rootf,
java.lang.String name,
java.lang.String shortname,
VDeviceLister vdl,
java.lang.String urlID,
ccs.utils.Hurlable hurlable)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
returns the device identifier, for listing purposes. |
VFile |
getRoot()
returns root directory |
java.lang.String |
getSeparator()
returns the path element separator. |
char |
getSeparatorChar()
the separator, as a char. |
java.lang.String |
getShortName()
returns the device identifier, for changing directory. |
int |
getStoredPwdPrefixLength()
The length of prefix to remove from a stored pwd (to implement "stateful devices" whereby when you return to a device after leaving it abruptly, you get straight back to the same place) to obtain a path relative to the device root which can then be walked. |
java.lang.String |
getTitlePrefix()
returns the prefix that will appear in the title bar of the browser, before the pwd path. |
VDeviceLister |
getVDL()
returns the object which lists all devices currently available. |
protected void |
marshalIDSlug(java.io.DataOutputStream dos)
Every device requires a unique ID. |
void |
umount()
closes the VDevice (to let it be removed from the list). |
| Methods inherited from class ccs.cpc.VDevice |
|---|
getCPAIffArchive, getCPC, getID, hurl, isNoCopy, isReal, isSort |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DiskVDevice(CpCmdr cpc,
java.io.File rootf,
java.lang.String name,
java.lang.String shortname,
VDeviceLister vdl,
java.lang.String urlID,
ccs.utils.Hurlable hurlable)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String getSeparator()
VDevice
getSeparator in class VDevicepublic char getSeparatorChar()
VDevice
getSeparatorChar in class VDevicepublic VFile getRoot()
VDevice
getRoot in class VDevicepublic java.lang.String getName()
VDevice
getName in class VDevicepublic java.lang.String getTitlePrefix()
VDevice
getTitlePrefix in class VDevicepublic java.lang.String getShortName()
VDevice
getShortName in class VDevicepublic int getStoredPwdPrefixLength()
VDevice
getStoredPwdPrefixLength in class VDevicepublic VDeviceLister getVDL()
VDevice
getVDL in class VDevicepublic void umount()
VDevice
umount in class VDevice
protected void marshalIDSlug(java.io.DataOutputStream dos)
throws java.io.IOException
VDevice
marshalIDSlug in class VDevicedos - The stream to marshal this lot onto. You should only
send as much as you need to identify the device - say, a few hundred
bytes, tops.
java.io.IOException - if the stream blows up - this shouldn't happen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||