public void endDirectory(String directoryName) throws IOException { out.write("E\n".getBytes()); out.flush(); readAck(); } };
public void endDirectory(String directoryName) throws IOException { out.write("E\n".getBytes()); out.flush(); readAck(); } };
public void endDirectory(String directoryName) throws IOException { out.write("E\n".getBytes()); out.flush(); readAck(); } };
public void beginDirectory(String directoryName) throws IOException { out.write("D0755 0 ".getBytes()); out.write(directoryName.getBytes()); out.write("\n".getBytes()); out.flush(); readAck(); } public void file(String fileName, int length, InputStream data) throws IOException {
public void beginDirectory(String directoryName) throws IOException { out.write("D0755 0 ".getBytes()); out.write(directoryName.getBytes()); out.write("\n".getBytes()); out.flush(); readAck(); } public void file(String fileName, int length, InputStream data) throws IOException {
public void beginDirectory(String directoryName) throws IOException { out.write("D0755 0 ".getBytes()); out.write(directoryName.getBytes()); out.write("\n".getBytes()); out.flush(); readAck(); } public void file(String fileName, int length, InputStream data) throws IOException {
public void file(String fileName, int length, InputStream data) throws IOException { out.write("C0644 ".getBytes()); out.write(Integer.toString(length).getBytes()); out.write(" ".getBytes()); out.write(fileName.getBytes()); out.write("\n".getBytes()); out.flush(); readAck(); IO.copy(data, out); ack(); readAck(); } public void endDirectory(String directoryName) throws IOException {
public void file(String fileName, int length, InputStream data) throws IOException { out.write("C0644 ".getBytes()); out.write(Integer.toString(length).getBytes()); out.write(" ".getBytes()); out.write(fileName.getBytes()); out.write("\n".getBytes()); out.flush(); readAck(); Utils.copy(data, out); ack(); readAck(); } public void endDirectory(String directoryName) throws IOException {
public void file(String fileName, int length, InputStream data) throws IOException { out.write("C0644 ".getBytes()); out.write(Integer.toString(length).getBytes()); out.write(" ".getBytes()); out.write(fileName.getBytes()); out.write("\n".getBytes()); out.flush(); readAck(); Utils.copy(data, out); ack(); readAck(); } public void endDirectory(String directoryName) throws IOException {