Alle Klassen

master
Laurent 2023-12-12 13:01:40 +01:00
parent 4a1f28b566
commit fc8687cc34
5 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package tool;
import java.io.File;
import java.io.FileFilter;
/**
* Compresses the content of a directory.
*/
public class DirectoryCompressor extends DirectoryToolBase {
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.err.println("Bitte geben Sie ein Verzeichnis an.");
System.exit(1);
}
// TODO: Methode implementieren
}
}

View File

@ -0,0 +1,20 @@
package tool;
import java.io.File;
import java.io.FileFilter;
/**
* Decompresses the content of a directory.
*/
public class DirectoryDecompressor extends DirectoryToolBase {
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.err.println("Bitte geben Sie ein Verzeichnis an.");
System.exit(1);
}
// TODO: Methode implementieren
}
}

View File

@ -0,0 +1,11 @@
package tool;
import java.io.File;
/**
* Base class for all directory based tools.
*/
public class DirectoryToolBase {
// TODO: Gemeinsame Methoden für DirectoryCompressor und DirectoryDecompressor
}

View File

@ -0,0 +1,19 @@
package tool;
import compressor.CompressingOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Compresses a single file or stdin.
*/
public class FileCompressor {
public static void main(String... args) throws Exception {
// TODO: Methode implementieren
}
}

View File

@ -0,0 +1,19 @@
package tool;
import compressor.DecompressingInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Decompresses a single file or stdin.
*/
public class FileDecompressor {
public static void main(String... args) throws Exception {
// TODO: Methode implementieren
}
}