jadb/src/se/vidstige/jadb/server/AdbDeviceResponder.java
Daniel Llewellyn 4dd168bb16 Code review changes
Adding the following changes:

* Adding a unit test
* Removing a readToStringFunction
* Adding handler into AdbProtocolHandler to enable testing
*
2019-01-06 19:09:15 +00:00

24 lines
725 B
Java

package se.vidstige.jadb.server;
import se.vidstige.jadb.JadbException;
import se.vidstige.jadb.RemoteFile;
import java.io.*;
import java.util.List;
/**
* Created by vidstige on 20/03/14.
*/
public interface AdbDeviceResponder {
String getSerial();
String getType();
void filePushed(RemoteFile path, int mode, ByteArrayOutputStream buffer) throws JadbException;
void filePulled(RemoteFile path, ByteArrayOutputStream buffer) throws JadbException, IOException;
void shell(String command, DataOutputStream stdout, DataInput stdin) throws IOException;
void enableIpCommand(String ip, DataOutputStream outputStream) throws IOException;
List<RemoteFile> list(String path) throws IOException;
}