ccs.cpc.impl
Class CDBVDevice

java.lang.Object
  extended by ccs.cpc.VDevice
      extended by ccs.cpc.impl.ArchVDevice
          extended by ccs.cpc.impl.CDBVDevice
All Implemented Interfaces:
ccs.utils.Hurlable

public class CDBVDevice
extends ArchVDevice

A "CDB" VDevice - an Archive which is registered with Checkpoint.


Field Summary
 
Fields inherited from class ccs.cpc.impl.ArchVDevice
bt, name, shortname
 
Constructor Summary
CDBVDevice(CpcImpl cpc, CDBLoadData cld)
           
 
Method Summary
 boolean isNoCopy()
          returns whether copy-protection is enforced on this device.
protected  void marshalIDSlug(java.io.DataOutputStream dos)
          Every device requires a unique ID.
 
Methods inherited from class ccs.cpc.impl.ArchVDevice
getBT, getCPAIffArchive, getCpc, getHost, getName, getRoot, getSeparator, getSeparatorChar, getShortName, getStoredPwdPrefixLength, getVDL, umount
 
Methods inherited from class ccs.cpc.VDevice
getCPC, getID, getTitlePrefix, hurl, isReal, isSort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDBVDevice

CDBVDevice(CpcImpl cpc,
           CDBLoadData cld)
     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

isNoCopy

public boolean isNoCopy()
Description copied from class: VDevice
returns whether copy-protection is enforced on this device.

Overrides:
isNoCopy in class VDevice

marshalIDSlug

protected void marshalIDSlug(java.io.DataOutputStream dos)
                      throws java.io.IOException
Description copied from class: VDevice
Every device requires a unique ID. For everything except result sets, this must also be persistent. This method must marshal suitable information to create such an ID. Start with a fixed char which specifies the device type: 'd' for disks, 'a' for archives (and CPC+ registered archives), 'z' for jars / zips, 'r' for result sets. Then add enough information to identify the device uniquely within its namespace.

Overrides:
marshalIDSlug in class ArchVDevice
Parameters:
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.
Throws:
java.io.IOException - if the stream blows up - this shouldn't happen.