/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* ident "%Z%%M% %I% %E% SMI"
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Test
* Command line front end to Printer class
*
* Takes one argument - the name of a test file
* The format of the file is:
* Required:
* action=[add,delete,modify,view,list]
*
* Optional:
* printername=
* printertype=
* printserver=
* comment=
* device=
* notify=
* protocol=
* destination=
* extensions=
* default_printer=[true,false]
* banner=
* enable=[true,false]
* accept=[true,false]
* file_contents=[space seperated list]
* user_allow_list=[space seperated list]
* user_deny_list=[space seperated list]
* nameservice=[system,nis]
* nshost=
* user=
* passwd=
* locale=
*
*/
public class Test {
int i;
} else {
}
try {
}
}
catch (Exception e)
{
}
o = o.concat("\n");
}
}
}
}
}
}
}
}
}
boolean default_printer = false;
boolean enable = false;
boolean accept = false;
default_printer = true;
}
}
enable = true;
}
}
accept = true;
}
}
//
// Done parsing. Let's do the work.
//
try {
}
catch (Exception e)
{
}
}
try {
}
catch (Exception e) {
}
p.setComment(comment);
p.setProtocol(protocol);
try {
}
catch (Exception e)
{
}
} else {
}
try {
p.getPrinterDetails();
}
catch (Exception e)
{
}
printView(p);
try {
p.addRemotePrinter();
} else {
p.addLocalPrinter();
}
}
catch (Exception e)
{
}
try {
p.modifyPrinter();
}
catch (Exception e)
{
}
try {
p.deletePrinter();
}
catch (Exception e)
{
}
} else {
}
}
{
int i = -1;
int j = -1;
if (i != -1) {
if (j != -1) {
}
}
return (result);
}
{
return;
return;
}
}
}
{
int i;
arr = p.getFileContents();
} else {
}
}
arr = p.getUserAllowList();
} else {
}
}
arr = p.getUserDenyList();
} else {
}
}
}
}