Examples of writeln()


Examples of org.apache.xmlgraphics.ps.PSGenerator.writeln()

        g2d.writeClip(imclip);

        //Prepare correct transformation
        AffineTransform trans = g2d.getTransform();
        gen.concatMatrix(trans);
        gen.writeln(gen.formatDouble(x) + " "
                  + gen.formatDouble(y) + " moveto ");
        gen.writeln("1 -1 scale");
 
        StringBuffer sb = new StringBuffer("(");
        escapeText(s, sb);
View Full Code Here

Examples of org.apache.xmlgraphics.ps.PSGenerator.writeln()

        //Prepare correct transformation
        AffineTransform trans = g2d.getTransform();
        gen.concatMatrix(trans);
        gen.writeln(gen.formatDouble(x) + " "
                  + gen.formatDouble(y) + " moveto ");
        gen.writeln("1 -1 scale");
 
        StringBuffer sb = new StringBuffer("(");
        escapeText(s, sb);
        sb.append(") t ");
View Full Code Here

Examples of org.apache.xmlgraphics.ps.PSGenerator.writeln()

 
        StringBuffer sb = new StringBuffer("(");
        escapeText(s, sb);
        sb.append(") t ");

        gen.writeln(sb.toString());
       
        gen.restoreGraphicsState();       
    }

    private void escapeText(final String text, StringBuffer target) {
View Full Code Here

Examples of org.apache.xmlgraphics.ps.PSGenerator.writeln()

    private void establishCurrentFont() throws IOException {
        if ((currentFontName != this.font.getFontName())
                || (currentFontSize != this.font.getFontSize())) {
            PSGenerator gen = getPSGenerator();
            gen.writeln(this.font.getFontName() + " "
                    + gen.formatDouble(font.getFontSize() / 1000f) + " F");
            currentFontName = this.font.getFontName();
            currentFontSize = this.font.getFontSize();
        }
    }
View Full Code Here

Examples of org.ejbca.util.IPatternLogger.writeln()

        transactionLogger.writeln();
        auditLogger.paramPut(IAuditLogger.STATUS, OCSPRespGenerator.INTERNAL_ERROR);
      }
      byte[] respBytes = ocspresp.getEncoded();
      auditLogger.paramPut(IAuditLogger.OCSPRESPONSE, new String (Hex.encode(respBytes)));
            auditLogger.writeln();
      auditLogger.flush();
      transactionLogger.flush();
      if (mDoSaferLogging){
        // See if the Errorhandler has found any problems
        if (hasErrorHandlerFailedSince(startTime)) {
View Full Code Here

Examples of org.ejbca.util.IPatternLogger.writeln()

      // The most likely reason is that the user already existed.
            throw EjbcaWSHelper.getEjbcaException(e, logger, ErrorCode.USER_ALREADY_EXISTS, Level.INFO);
        } catch (RuntimeException e) {  // ClassCastException, EJBException, ...
            throw EjbcaWSHelper.getInternalException(e, logger);
    } finally {
        logger.writeln();
            logger.flush();
        }
  }

  /**
 
View Full Code Here

Examples of org.ejbca.util.IPatternLogger.writeln()

          logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), e.toString());
          throw e;
        } catch (RuntimeException e) {  // ClassCastException, EJBException ...
          throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
          logger.writeln();
          logger.flush();
        }
    return retval;
  }
View Full Code Here

Examples of org.ejbca.util.IPatternLogger.writeln()

        }
      }
        } catch (RuntimeException e) {  // EJBException ...
            throw EjbcaWSHelper.getInternalException(e, logger);
    } finally {
            logger.writeln();
            logger.flush();
        }
    return retval;
  }
View Full Code Here

Examples of org.ejbca.util.IPatternLogger.writeln()

    } catch (CertificateEncodingException e) {
            throw EjbcaWSHelper.getInternalException(e, logger);
        } catch (RuntimeException e) {  // EJBException ...
            throw EjbcaWSHelper.getInternalException(e, logger);
        } finally {
            logger.writeln();
            logger.flush();
        }
    if (log.isTraceEnabled()) {
      log.trace("<getLastCertChain: "+username);
    }
View Full Code Here

Examples of org.ejbca.util.IPatternLogger.writeln()

            logger.paramPut(TransactionTags.ERROR_MESSAGE.toString(), t.toString());
            throw t;
        } catch (RuntimeException e) {  // ClassCastException, EJBException ...
            throw EjbcaWSHelper.getInternalException(e, logger);
      } finally {
          logger.writeln();
          logger.flush();
      }
  }
 
  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.