|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ccs.cpc.VDevice ccs.cpc.impl.ArchVDevice
class ArchVDevice
An VDevice which is an archive - a beetree with a filesystem set in it.
Field Summary | |
---|---|
protected ccs.cdb.CDBeeTree |
bt
|
protected java.lang.String |
name
|
protected java.lang.String |
shortname
|
Constructor Summary | |
---|---|
ArchVDevice(CpcImpl cpc,
ArchLoadData ald)
|
Method Summary | |
---|---|
ccs.cdb.CDBeeTree |
getBT()
|
ccs.cdb.CDBeeTree |
getCPAIffArchive()
Blatant special-pleading hack, required to avoid excessive latency when streaming large files from CPAs. |
CpcImpl |
getCpc()
|
java.io.File |
getHost()
|
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. |
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 |
---|
getCPC, getID, getTitlePrefix, hurl, isNoCopy, isReal, isSort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ccs.cdb.CDBeeTree bt
protected java.lang.String name
protected java.lang.String shortname
Constructor Detail |
---|
ArchVDevice(CpcImpl cpc, ArchLoadData ald) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String getSeparator()
VDevice
getSeparator
in class VDevice
public char getSeparatorChar()
VDevice
getSeparatorChar
in class VDevice
public VFile getRoot()
VDevice
getRoot
in class VDevice
public ccs.cdb.CDBeeTree getBT()
public java.io.File getHost()
public java.lang.String getName()
VDevice
getName
in class VDevice
public java.lang.String getShortName()
VDevice
getShortName
in class VDevice
public int getStoredPwdPrefixLength()
VDevice
getStoredPwdPrefixLength
in class VDevice
public VDeviceLister getVDL()
VDevice
getVDL
in class VDevice
public void umount()
VDevice
umount
in class VDevice
public CpcImpl getCpc()
public ccs.cdb.CDBeeTree getCPAIffArchive()
VDevice
getCPAIffArchive
in class VDevice
protected void marshalIDSlug(java.io.DataOutputStream dos) throws java.io.IOException
VDevice
marshalIDSlug
in class VDevice
dos
- 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 |