|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectccs.cpc.impl.ArchLogic
public class ArchLogic
Methods for opening and creating archives and jars / zips. Due to the variety of access mechanisms available, these are rather fragmented.
| Constructor Summary | |
|---|---|
ArchLogic(CpcImpl cpc)
|
|
| Method Summary | |
|---|---|
(package private) void |
compactArchive(ccs.cdb.CDBeeTree bt,
boolean isChg)
Comapct an archive, with optional password change (not CDBs). |
(package private) java.io.File |
determineDefaultDirectory(BrowserLogic bl)
Returns the default folder to start in when looking for the location of an archive; this is the current folder of the device in the specified browser panel, which is required to be a disk vdevice. |
(package private) void |
getArchFile(ArchLoadData ald,
BrowserLogic bl)
Return the location of the new or current archive. |
(package private) void |
getArchPassword(ArchLoadData ald)
Obtain the user's attempt at a password. |
(package private) void |
mangleArchPassword(byte[] pwd)
Lightly mangle the supplied password. |
(package private) void |
openArchive(ArchLoadData ald,
BrowserLogic bl)
Open the archive represented by the specified data, in the specified browser. |
(package private) void |
openZip(java.io.File zipf,
BrowserLogic bl,
boolean isTransient)
Open a zip. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ArchLogic(CpcImpl cpc)
| Method Detail |
|---|
void openArchive(ArchLoadData ald,
BrowserLogic bl)
throws java.io.IOException
java.io.IOException - on I/O failure or wrong password (CipherException).
void compactArchive(ccs.cdb.CDBeeTree bt,
boolean isChg)
throws ccs.ArghException,
ccs.LoseException,
java.io.IOException
bt - The BeeTree to compact. If isChg, caller must ensure
that it isn't a CDB.isChg - Whether to change the password (not CDBs).
ccs.ArghException
ccs.LoseException
java.io.IOException
java.io.File determineDefaultDirectory(BrowserLogic bl)
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if not in a disk device.
void getArchFile(ArchLoadData ald,
BrowserLogic bl)
throws java.lang.IllegalStateException,
java.lang.InterruptedException
ald - The ArchLoadData (or ArchCreateData) to return the result in.bl - The browser containing the folder to start from.
java.lang.IllegalStateException - if not in a disk device.
java.lang.InterruptedException - If user cancels.
void getArchPassword(ArchLoadData ald)
throws java.lang.InterruptedException
java.lang.InterruptedException - If user cancels.void mangleArchPassword(byte[] pwd)
void openZip(java.io.File zipf,
BrowserLogic bl,
boolean isTransient)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||