Treehopper Java API
io.treehopper.Settings Class Reference

Settings used by Treehopper classes. More...

Public Member Functions

int getVid ()
 Get the VID to look for. More...
 
void setVid (int vid)
 Set the VID to look for. More...
 
int getPid ()
 Get the PID to look for. More...
 
void setPid (int pid)
 Set the PID to look for. More...
 
int getBootloaderVid ()
 Get the bootloader VID. More...
 
void setBootloaderVid (int bootloaderVid)
 Set the bootloader VID. More...
 
int getBootloaderPid ()
 Get the bootloader PID. More...
 
void setBootloaderPid (int bootloaderPid)
 Set the bootloader PID. More...
 
boolean shouldThrowExceptions ()
 Gets whether Treehopper should throw exceptions or silently fail. More...
 
void setThrowExceptions (boolean throwExceptions)
 Sets whether Treehopper should throw exceptions or silently fail. More...
 

Detailed Description

Settings used by Treehopper classes.

Member Function Documentation

◆ getBootloaderPid()

int io.treehopper.Settings.getBootloaderPid ( )

Get the bootloader PID.

Returns
the bootloader PID

◆ getBootloaderVid()

int io.treehopper.Settings.getBootloaderVid ( )

Get the bootloader VID.

Returns
the VID of the bootloader

◆ getPid()

int io.treehopper.Settings.getPid ( )

Get the PID to look for.

Returns
the PID

◆ getVid()

int io.treehopper.Settings.getVid ( )

Get the VID to look for.

Returns
the vid

◆ setBootloaderPid()

void io.treehopper.Settings.setBootloaderPid ( int  bootloaderPid)

Set the bootloader PID.

Parameters
bootloaderPidthe bootloader PID

◆ setBootloaderVid()

void io.treehopper.Settings.setBootloaderVid ( int  bootloaderVid)

Set the bootloader VID.

Parameters
bootloaderVidthe VID of the bootloader

◆ setPid()

void io.treehopper.Settings.setPid ( int  pid)

Set the PID to look for.

Parameters
pidthe PID

◆ setThrowExceptions()

void io.treehopper.Settings.setThrowExceptions ( boolean  throwExceptions)

Sets whether Treehopper should throw exceptions or silently fail.

Parameters
throwExceptionswhether to throw exceptions

◆ setVid()

void io.treehopper.Settings.setVid ( int  vid)

Set the VID to look for.

Parameters
vidthe vid to search for

◆ shouldThrowExceptions()

boolean io.treehopper.Settings.shouldThrowExceptions ( )

Gets whether Treehopper should throw exceptions or silently fail.

Returns
whether to throw exceptions

The documentation for this class was generated from the following file: