public class ReduceJPEGSize extends Object
Usage: java ca.bc.webarts.widgets.ReduceJPEGSize [directory]
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_REDUCTION_PERCENTAGE
The default reduduction size percentage.
|
private static String |
DEFAULT_SAVE_LOCATION
A holder for the directory location to save downloads.
|
private int |
reduceByPercentage
The reduduction size percentage.
|
private static String |
SYSTEM_FILE_SEPERATOR
A holder for the NA Clients System File Separator.
|
Constructor and Description |
---|
ReduceJPEGSize()
The default empty constructor for this class.
|
ReduceJPEGSize(String dirStr)
The main constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
int |
convert(String fileName,
int reductionSizePercent,
int reducedQuality) |
static void |
main(String[] args)
The main entry for this app.
|
private static final String SYSTEM_FILE_SEPERATOR
private static final String DEFAULT_SAVE_LOCATION
private static final int DEFAULT_REDUCTION_PERCENTAGE
private int reduceByPercentage
public ReduceJPEGSize()
public ReduceJPEGSize(String dirStr)
urlStr
- the string representation of the URL to grab.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses