// Path: src/main/java/be/bagofwords/virtualfile/VirtualFile.java
// public interface VirtualFile {
// 
//     public VirtualFile getFile(String relativePath);
// 
//     public InputStream createInputStream();
// 
//     public OutputStream createOutputStream();
// 
//     public boolean exists();
// }
// 
// Path: src/main/java/be/bagofwords/db/remote/Protocol.java
// public static final long LONG_OK = Long.MAX_VALUE - 1;


import be.bagofwords.util.SocketConnection;
import be.bagofwords.virtualfile.VirtualFile;
import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static be.bagofwords.db.remote.Protocol.LONG_OK;
package be.bagofwords.virtualfile.remote;




public class RemoteFile implements VirtualFile {

    private String host;
    private int port;
    private File relPath;

    public RemoteFile(String host, int port, File relPath) {
        this.host = host;
// Path: src/main/java/be/bagofwords/virtualfile/VirtualFile.java
// public interface VirtualFile {
// 
//     public VirtualFile getFile(String relativePath);
// 
//     public InputStream createInputStream();
// 
//     public OutputStream createOutputStream();
// 
//     public boolean exists();
// }
// 
// Path: src/main/java/be/bagofwords/db/remote/Protocol.java
// public static final long LONG_OK = Long.MAX_VALUE - 1;


// Path: src/main/java/be/bagofwords/virtualfile/remote/RemoteFile.java
import be.bagofwords.util.SocketConnection;
import be.bagofwords.virtualfile.VirtualFile;
import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static be.bagofwords.db.remote.Protocol.LONG_OK;

package be.bagofwords.virtualfile.remote;




public class RemoteFile implements VirtualFile {

    private String host;
    private int port;
    private File relPath;

    public RemoteFile(String host, int port, File relPath) {
        this.host = host;
        this.port = port;