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
IOException
TransformerException
public OppoIp() throws IOException, TransformerException
IOException
TransformerException
public OppoIp(boolean verbose) throws IOException, TransformerException
IOException
TransformerException
public OppoIp(InetAddress broadcast, int timeout, boolean verbose) throws IOException, TransformerException
broadcast
- Broadcast address for searching for the Oppo.timeout
- verbose
- IOException
TransformerException
public static void main(String[] args)
args
- public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void sendCommand(String cmd) throws IOException, TransformerException
cmd
- String like "EJT" (for eject).IOException
TransformerException
Copyright © 2016. All rights reserved.