org.apache.pdfbox.contentstream.operator.Operator.getOperator()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.apache.pdfbox.contentstream.operator.Operator.getOperator()方法的一些代码示例,展示了Operator.getOperator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operator.getOperator()方法的具体详情如下:
包路径:org.apache.pdfbox.contentstream.operator.Operator
类名称:Operator
方法名:getOperator

Operator.getOperator介绍

[英]This is used to create/cache operators in the system.
[中]这用于在系统中创建/缓存运算符。

代码示例

代码示例来源:origin: apache/pdfbox

/**
 * This is used to handle an operation.
 * 
 * @param operation The operation to perform.
 * @param arguments The list of arguments.
 * @throws IOException If there is an error processing the operation.
 */
public void processOperator(String operation, List<COSBase> arguments) throws IOException
{
  Operator operator = Operator.getOperator(operation);
  processOperator(operator, arguments);
}

代码示例来源:origin: apache/pdfbox

retval = Operator.getOperator(nullString);
  retval = Operator.getOperator(next);
  retval = Operator.getOperator(line);
retval = Operator.getOperator(next);
if( next.equals( "BI" ) )
retval = Operator.getOperator("ID");
  retval = Operator.getOperator(operator);

代码示例来源:origin: stackoverflow.com

final String OP_PLUS = "+";
final String OP_MINUS = "-";

List<Operator> listOperator = new List<>(){ new Plus(), new Minus() };

Operator getOperator(String inputOperator) throws NotSupportedException
{
  for(Operator op : listOperator)
    if(op.getOperator().equals(inputOperator))
      return op;
  throw new NotSupportedException();
}

代码示例来源:origin: com.github.lafa.pdfbox/pdfbox

/**
 * This is used to handle an operation.
 * 
 * @param operation The operation to perform.
 * @param arguments The list of arguments.
 * @throws IOException If there is an error processing the operation.
 */
public void processOperator(String operation, List<COSBase> arguments) throws IOException
{
  Operator operator = Operator.getOperator(operation);
  processOperator(operator, arguments);
}

代码示例来源:origin: org.apache.pdfbox/pdfbox

/**
 * This is used to handle an operation.
 * 
 * @param operation The operation to perform.
 * @param arguments The list of arguments.
 * @throws IOException If there is an error processing the operation.
 */
public void processOperator(String operation, List<COSBase> arguments) throws IOException
{
  Operator operator = Operator.getOperator(operation);
  processOperator(operator, arguments);
}

代码示例来源:origin: stackoverflow.com

.asSubclass(Operator.class)
          .newInstance();
  operators.put(op.getOperator(), op);
} catch (ClassNotFoundException e) {
} catch (InstantiationException e) {

代码示例来源:origin: org.apache.pdfbox/pdfbox

retval = Operator.getOperator(nullString);
  retval = Operator.getOperator(next);
  retval = Operator.getOperator(line);
retval = Operator.getOperator(next);
if( next.equals( "BI" ) )
retval = Operator.getOperator("ID");
  retval = Operator.getOperator(operator);

代码示例来源:origin: com.github.lafa.pdfbox/pdfbox

retval = Operator.getOperator(nullString);
  retval = Operator.getOperator(next);
  retval = Operator.getOperator(line);
retval = Operator.getOperator(next);
if( next.equals( "BI" ) )
retval = Operator.getOperator("ID");
  retval = Operator.getOperator(operator);

相关文章