-
-
Method Summary
Modifier and Type Method Description AdbInputStreamopenInputStream()AdbOutputStreamopenOutputStream()intread(Array<byte> bytes, int offset, int length)Read bytes from the ADB daemon. voidwrite(Array<byte> bytes, int offset, int length)Sends a WRTE packet with a given byte array payload. voidflush()voidclose()Closes the stream. booleanisClosed()Returns whether the stream is closed or not intavailable()Returns an estimate of available data. -
-
Method Detail
-
openInputStream
AdbInputStream openInputStream()
-
openOutputStream
AdbOutputStream openOutputStream()
-
write
void write(Array<byte> bytes, int offset, int length)
Sends a WRTE packet with a given byte array payload. It does not flush the stream.
- Parameters:
bytes- Payload in the form of a byte array
-
flush
void flush()
-
close
void close()
Closes the stream. This sends a close message to the peer.
-
isClosed
boolean isClosed()
Returns whether the stream is closed or not
-
available
int available()
Returns an estimate of available data.
-
-
-
-