Skip to content

Package: ArchiveComponentVisitor

ArchiveComponentVisitor

Coverage

1: package archive;
2:
3: import java.io.FileNotFoundException;
4: import java.io.IOException;
5:
6: /**
7: * Visitor zur Unterscheidung der verschiedenen AbstractArchiveCmponenten.
8: */
9: public interface ArchiveComponentVisitor {
10:
11:         /**
12:          * Handels an ArchiveFile.
13:          *
14:          * @param archiveFile
15:          * the ArchiveFile, which should be added to the archive
16:          * @throws FileNotFoundException
17:          * @throws IOException
18:          */
19:         void handleArchiveFile(ArchiveFile archiveFile) throws FileNotFoundException, IOException;
20:
21:         /**
22:          * Handles an ArchiveDirectory.
23:          *
24:          * @param directory
25:          * the ArchiveDirectory, which shoud be added to the archive
26:          * @throws FileNotFoundException
27:          * @throws IOException
28:          */
29:         void handleArchiveDirectory(ArchiveDirectory directory)
30:                         throws FileNotFoundException, IOException;
31:
32:         /**
33:          * Handels ArchiveSymlink.
34:          *
35:          * @param symlink
36:          * the symlink, which should be added to the archive
37:          * @throws IOException
38:          */
39:         void handleArchiveSymlink(ArchiveSymlink symlink) throws IOException;
40:
41:         /**
42:          * Behandelt eine Geraetedatei.
43:          *
44:          * @param node
45:          * die Geraetedatei, die im Archiv erstellt werden soll.
46:          * @throws IOException
47:          * @throws IllegalDeviceTypeException
48:          * when a unsupported davtype is declared
49:          */
50:         void handleArchiveDevNode(ArchiveDevNode node) throws IOException, IllegalDeviceTypeException;
51:
52:         /**
53:          * Schließt den benutzten Outputsteam. Muss als letzte Nachricht an den Visitor gesendet werden.
54:          *
55:          * @throws IOException
56:          */
57:         void finish() throws IOException;
58:
59: }