// Path: client_libs/java/src/jarvis/exceptions/JarvisException.java
// public class JarvisException extends Exception {
//     public JarvisException(String message) {
//         super(message);
//     }
// 
//     public JarvisException(Throwable t) {
//         super(t);
//     }
// 
//     public JarvisException(String message, Throwable t) {
//         super(message, t);
//     }
// }


import java.net.Socket;
import java.net.UnknownHostException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import jarvis.exceptions.JarvisException;
package jarvis;


public class Jarvis {
    private Socket conn;
    private PrintWriter out;
    private BufferedReader server;
    private char[] buffer;
    private int bufsize = 4096;
    private int chunksize = 512;

    /**
     * Initialise Jarvis with a host name and a port number.
     *
     * If the port is not supplied it will default to Jarvis's default port
     * number of 1337.
     *
     * If there is no Jarvis server running, a JarvisException will be thrown.
     */
// Path: client_libs/java/src/jarvis/exceptions/JarvisException.java
// public class JarvisException extends Exception {
//     public JarvisException(String message) {
//         super(message);
//     }
// 
//     public JarvisException(Throwable t) {
//         super(t);
//     }
// 
//     public JarvisException(String message, Throwable t) {
//         super(message, t);
//     }
// }


// Path: client_libs/java/src/jarvis/Jarvis.java
import java.net.Socket;
import java.net.UnknownHostException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import jarvis.exceptions.JarvisException;

package jarvis;


public class Jarvis {
    private Socket conn;
    private PrintWriter out;
    private BufferedReader server;
    private char[] buffer;
    private int bufsize = 4096;
    private int chunksize = 512;

    /**
     * Initialise Jarvis with a host name and a port number.
     *
     * If the port is not supplied it will default to Jarvis's default port
     * number of 1337.
     *
     * If there is no Jarvis server running, a JarvisException will be thrown.
     */
    public Jarvis(String host, int port) throws JarvisException {