/**
  * Builds a new page stream transform using the given PDF operator processors (represented by
  * their class) to process the given PDF operators (represented by their operator string), and
  * imposing a default of {@link SimpleOperatorProcessor} for all others.
  *
  * @param pdfOperatorString1 A PDF operator string.
  * @param pdfOperatorProcessor1 A PDF operator processor class for <code>pdfOperatorString1</code>
  *     .
  * @param pdfOperatorString2 A PDF operator string.
  * @param pdfOperatorProcessor2 A PDF operator processor class for <code>pdfOperatorString2</code>
  *     .
  * @throws IOException if any processing error occurs.
  * @see #PageStreamTransform(Properties)
  * @see PropUtil#fromArgs(String, String, String, String)
  * @deprecated Use {@link #PageStreamTransform(OperatorProcessorFactory, String, Class, String,
  *     Class)}.
  */
 public PageStreamTransform(
     String pdfOperatorString1,
     Class pdfOperatorProcessor1,
     String pdfOperatorString2,
     Class pdfOperatorProcessor2)
     throws IOException {
   this(
       PropUtil.fromArgs(
           pdfOperatorString1, pdfOperatorProcessor1.getName(),
           pdfOperatorString2, pdfOperatorProcessor2.getName()));
 }
Exemplo n.º 2
0
  private boolean doFindUrl() throws IOException {

    String url = getParameter(KEY_URL);

    String redir =
        srvURL(
            AdminServletManager.SERVLET_DAEMON_STATUS,
            PropUtil.fromArgs("table", ArchivalUnitStatus.AUS_WITH_URL_TABLE_NAME, "key", url));

    resp.setContentLength(0);
    //     resp.sendRedirect(resp.encodeRedirectURL(redir));
    resp.sendRedirect(redir);
    return false;
  }
 /**
  * Builds a new page stream transform using the given PDF operator processors (represented by
  * their class) to process the given PDF operators (represented by their operator string), and
  * imposing a default of {@link SimpleOperatorProcessor} for all others.
  *
  * @param factory A {@link PdfOperatorProcessor} factory.
  * @param pdfOperatorString1 A PDF operator string.
  * @param pdfOperatorProcessor1 A PDF operator processor class for <code>pdfOperatorString1</code>
  *     .
  * @param pdfOperatorString2 A PDF operator string.
  * @param pdfOperatorProcessor2 A PDF operator processor class for <code>pdfOperatorString2</code>
  *     .
  * @param pdfOperatorString3 A PDF operator string.
  * @param pdfOperatorProcessor3 A PDF operator processor class for <code>pdfOperatorString3</code>
  *     .
  * @throws IOException if any processing error occurs.
  * @see #PageStreamTransform(OperatorProcessorFactory, Properties)
  * @see PropUtil#fromArgs(String, String, String, String, String, String)
  */
 public PageStreamTransform(
     OperatorProcessorFactory factory,
     String pdfOperatorString1,
     Class pdfOperatorProcessor1,
     String pdfOperatorString2,
     Class pdfOperatorProcessor2,
     String pdfOperatorString3,
     Class pdfOperatorProcessor3)
     throws IOException {
   this(
       factory,
       PropUtil.fromArgs(
           pdfOperatorString1, pdfOperatorProcessor1.getName(),
           pdfOperatorString2, pdfOperatorProcessor2.getName(),
           pdfOperatorString3, pdfOperatorProcessor3.getName()));
 }
 /**
  * Builds a new page stream transform using the given PDF operator processor (represented by its
  * class) to process the given PDF operator (represented by its operator string), and imposing a
  * default of {@link SimpleOperatorProcessor} for all others.
  *
  * @param factory A {@link PdfOperatorProcessor} factory.
  * @param pdfOperatorString A PDF operator string.
  * @param pdfOperatorProcessor A PDF operator processor class for <code>pdfOperatorString</code>..
  * @throws IOException if any processing error occurs.
  * @see #PageStreamTransform(OperatorProcessorFactory, Properties)
  * @see PropUtil#fromArgs(String, String)
  */
 public PageStreamTransform(
     OperatorProcessorFactory factory, String pdfOperatorString, Class pdfOperatorProcessor)
     throws IOException {
   this(factory, PropUtil.fromArgs(pdfOperatorString, pdfOperatorProcessor.getName()));
 }