Class stub

This commit is contained in:
Louis Royer 2019-12-12 11:57:02 +01:00
parent 49ece737ea
commit 2f202812c8
5 changed files with 63 additions and 0 deletions

10
src/client/Client.java Normal file
View File

@ -0,0 +1,10 @@
package client;
public class Client {
public Client() {
}
public static void main(String [] args) {
Client c = new Client("client");
}
}

View File

@ -0,0 +1,17 @@
package client;
import exception.NotFound;
public class ClientManagment {
private String baseDirectory;
public ClientManagment(String baseDirectory) {
this.baseDirectory = baseDirectory;
}
public void download(String filename) throws NotFound {
}
public String listDirectory() {
}
}

View File

@ -0,0 +1,2 @@
package exception;
public class NotFound extends Exception {}

12
src/server/Server.java Normal file
View File

@ -0,0 +1,12 @@
package Server;
public class Server {
public Server() {
}
public static void main(String [] args) {
Server s = new Server("server");
}
}

View File

@ -0,0 +1,22 @@
package server;
import exception.NotFound;
import java.util.Vector;
public class ServerManagement {
private Vector<String> fileList;
private String baseDirectory;
public ServerManagement(String baseDirectory) {
this.baseDirectory = baseDirectory;
fileList = new Vector<String>;
initFileList();
}
public void upload(String filename) throws NotFound {
}
public String listDirectory() {
}
}