本文整理汇总了Java中gnu.javax.print.ipp.IppException类的典型用法代码示例。如果您正苦于以下问题:Java IppException类的具体用法?Java IppException怎么用?Java IppException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IppException类属于gnu.javax.print.ipp包,在下文中一共展示了IppException类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getPrintServices
点赞 3
import gnu.javax.print.ipp.IppException; //导入依赖的package包/类
/**
* These are all printers and printer classes of the CUPS server.
*
* @return All known print services regardless of supported features,
* or an array of length 0 if none is available.
*/
public PrintService[] getPrintServices()
{
ArrayList result = new ArrayList();
try
{
result.addAll(server.getAllPrinters());
result.addAll(server.getAllClasses());
}
catch (IppException e)
{
// ignore as this method cannot throw exceptions
// if print service discovery fails - bad luck
}
return (PrintService[]) result.toArray(new PrintService[result.size()]);
}
开发者ID:vilie,
项目名称:javify,
代码行数:23,
代码来源:CupsPrintServiceLookup.java
示例2: getPrintServices
点赞 3
import gnu.javax.print.ipp.IppException; //导入依赖的package包/类
/**
* These are all printers and printer classes of the CUPS server.
*
* @return All known print services regardless of supported features,
* or an array of length 0 if none is available.
*/
public PrintService[] getPrintServices()
{
ArrayList result = new ArrayList();
try
{
result.addAll(server.getAllPrinters());
result.addAll(server.getAllClasses());
}
catch (IppException e)
{
// ignore as this method cannot throw exceptions
// if print service discovery fails - bad luck
}
return (PrintService[]) result.toArray(new PrintService[result.size()]);
}
开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:23,
代码来源:CupsPrintServiceLookup.java
示例3: getDefaultPrintService
点赞 2
import gnu.javax.print.ipp.IppException; //导入依赖的package包/类
/**
* This is the printer marked as default in CUPS.
*
* @return The default lookup service or
* <code>null</code> if there is no default.
*/
public PrintService getDefaultPrintService()
{
try
{
return server.getDefaultPrinter();
}
catch (IppException e)
{
// if discovery fails treat as if there is none
return null;
}
}
开发者ID:vilie,
项目名称:javify,
代码行数:19,
代码来源:CupsPrintServiceLookup.java
示例4: getDefaultPrintService
点赞 2
import gnu.javax.print.ipp.IppException; //导入依赖的package包/类
/**
* This is the printer marked as default in CUPS.
*
* @return The default lookup service or
* <code>null</code> if there is no default.
*/
public PrintService getDefaultPrintService()
{
try
{
return server.getDefaultPrinter();
}
catch (IppException e)
{
// if discovery fails treat as if there is none
return null;
}
}
开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:19,
代码来源:CupsPrintServiceLookup.java
示例5: CupsPrintService
点赞 1
import gnu.javax.print.ipp.IppException; //导入依赖的package包/类
/**
* Creates a <code>CupsPrintService</code> object.
*
* @param uri the URI of the IPP printer.
* @param username the user of this print service.
* @param password the password of the user.
*
* @throws IppException if an error during connection occurs.
*/
public CupsPrintService(URI uri, String username, String password)
throws IppException
{
super(uri, username, password);
}
开发者ID:vilie,
项目名称:javify,
代码行数:15,
代码来源:CupsPrintService.java
示例6: CupsPrintService
点赞 1
import gnu.javax.print.ipp.IppException; //导入依赖的package包/类
/**
* Creates a <code>CupsPrintService</code> object.
*
* @param uri the URI of the IPP printer.
* @param username the user of this print service.
* @param password the password of the user.
*
* @throws IppException if an error during connection occurs.
*/
public CupsPrintService(URI uri, String username, String password)
throws IppException
{
super(uri, username, password);
}
开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:15,
代码来源:CupsPrintService.java