jadb/src/se/vidstige/jadb/server/AdbDeviceResponder.java
2018-12-25 00:12:51 -06:00

26 lines
745 B
Java

package se.vidstige.jadb.server;
import se.vidstige.jadb.JadbException;
import se.vidstige.jadb.RemoteFile;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataOutputStream;
import java.io.IOException;
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;
List<RemoteFile> list(String path) throws IOException;
}