Class stub
This commit is contained in:
parent
49ece737ea
commit
2f202812c8
10
src/client/Client.java
Normal file
10
src/client/Client.java
Normal file
@ -0,0 +1,10 @@
|
||||
package client;
|
||||
|
||||
public class Client {
|
||||
public Client() {
|
||||
|
||||
}
|
||||
public static void main(String [] args) {
|
||||
Client c = new Client("client");
|
||||
}
|
||||
}
|
17
src/client/ClientManagement.java
Normal file
17
src/client/ClientManagement.java
Normal 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() {
|
||||
|
||||
}
|
||||
|
||||
}
|
2
src/exception/NotFound.java
Normal file
2
src/exception/NotFound.java
Normal file
@ -0,0 +1,2 @@
|
||||
package exception;
|
||||
public class NotFound extends Exception {}
|
12
src/server/Server.java
Normal file
12
src/server/Server.java
Normal file
@ -0,0 +1,12 @@
|
||||
package Server;
|
||||
|
||||
public class Server {
|
||||
|
||||
public Server() {
|
||||
|
||||
}
|
||||
public static void main(String [] args) {
|
||||
Server s = new Server("server");
|
||||
}
|
||||
|
||||
}
|
22
src/server/ServerManagement.java
Normal file
22
src/server/ServerManagement.java
Normal 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() {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user