public class OppoIp extends Object implements Closeable
| Constructor and Description |
|---|
OppoIp()
This version of the constructor searches on the local LAN by using the
IP address of the host with last byte replaced by a 0 as broadcast address.
|
OppoIp(boolean verbose) |
OppoIp(InetAddress broadcast,
int timeout,
boolean verbose)
General constructor.
|
OppoIp(String broadcast,
int timeout,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
main(String[] args)
Just for testing.
|
void |
sendCommand(String cmd)
Sends a command to the connected Oppo.
|
public OppoIp(String broadcast, int timeout, boolean verbose) throws IOException, TransformerException
IOExceptionTransformerExceptionpublic OppoIp()
throws IOException,
TransformerException
IOExceptionTransformerExceptionpublic OppoIp(boolean verbose)
throws IOException,
TransformerException
IOExceptionTransformerExceptionpublic OppoIp(InetAddress broadcast, int timeout, boolean verbose) throws IOException, TransformerException
broadcast - Broadcast address for searching for the Oppo.timeout - verbose - IOExceptionTransformerExceptionpublic static void main(String[] args)
args - public void close()
close in interface Closeableclose in interface AutoCloseablepublic void sendCommand(String cmd) throws IOException, TransformerException
cmd - String like "EJT" (for eject).IOExceptionTransformerExceptionCopyright © 2020. All rights reserved.