Examples of printlnWithHeader()


Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

      FileOutputStream fis = new FileOutputStream(classFile);
      fis.write(bytecode.getArray(),
        bytecode.getOffset(), bytecode.getLength());
      fis.flush();
      if (t!=null) {       
        errorStream.printlnWithHeader(MessageService.getTextMessage(MessageId.CM_WROTE_CLASS_FILE, fullyQualifiedName, classFile, t));
      }
      fis.close();
    } catch (IOException e) {
      if (SanityManager.DEBUG)
        SanityManager.THROWASSERT("Unable to write .class file");
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

            lcc.getExecutionContext().getResultSetStatisticsFactory().getRunTimeStatistics(activation, this, subqueryTrackingArray));

          HeaderPrintWriter istream = lcc.getLogQueryPlan() ? Monitor.getStream() : null;
          if (istream != null)
          {
            istream.printlnWithHeader(LanguageConnectionContext.xidStr +
                          lcc.getTransactionExecute().getTransactionIdString() +
                          "), " +
                          LanguageConnectionContext.lccStr +
                          lcc.getInstanceNumber() +
                          "), " +
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

      try {
        Method theMethod = theClass.getMethod(methodName,  new Class[0]);

        if (!Modifier.isStatic(theMethod.getModifiers())) {
          HeaderPrintWriter hpw = useDefaultStream(header);
          hpw.printlnWithHeader(theMethod.toString() + " is not static");
          return hpw;
        }

        try {
          return makeValueHPW(theMethod, theMethod.invoke((Object) null,
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

      try {
        Field theField = theClass.getField(fieldName);
   
        if (!Modifier.isStatic(theField.getModifiers())) {
          HeaderPrintWriter hpw = useDefaultStream(header);
          hpw.printlnWithHeader(theField.toString() + " is not static");
          return hpw;
        }

        try {
          return makeValueHPW(theField, theField.get((Object) null),
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

       return new BasicHeaderPrintWriter((Writer) value, header, false, name);
   
    HeaderPrintWriter hpw = useDefaultStream(header);

    if (value == null)
      hpw.printlnWithHeader(whereFrom.toString() + "=null");
    else
      hpw.printlnWithHeader(whereFrom.toString() + " instanceof " + value.getClass().getName());

    return hpw;
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

    HeaderPrintWriter hpw = useDefaultStream(header);

    if (value == null)
      hpw.printlnWithHeader(whereFrom.toString() + "=null");
    else
      hpw.printlnWithHeader(whereFrom.toString() + " instanceof " + value.getClass().getName());

    return hpw;
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

  }

  private HeaderPrintWriter useDefaultStream(PrintWriterGetHeader header, Throwable t) {

    HeaderPrintWriter hpw = useDefaultStream(header);
    hpw.printlnWithHeader(t.toString());
    return hpw;
  }

  /*
  ** Priv block code, moved out of the old Java2 version.
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

      FileOutputStream fis = new FileOutputStream(classFile);
      fis.write(bytecode.getArray(),
        bytecode.getOffset(), bytecode.getLength());
      fis.flush();
      if (logMessage) {
        errorStream.printlnWithHeader("Wrote class "+getFullName()+" to file "+classFile.toString()+". Please provide support with the file and the following exception message: "+t);
      }
      fis.close();
    } catch (IOException e) {
      if (SanityManager.DEBUG)
        SanityManager.THROWASSERT("Unable to write .class file");
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

      FileOutputStream fis = new FileOutputStream(classFile);
      fis.write(bytecode.getArray(),
        bytecode.getOffset(), bytecode.getLength());
      fis.flush();
      if (t!=null) {       
        errorStream.printlnWithHeader(MessageService.getTextMessage(MessageId.CM_WROTE_CLASS_FILE, fullyQualifiedName, classFile, t));
      }
      fis.close();
    } catch (IOException e) {
      if (SanityManager.DEBUG)
        SanityManager.THROWASSERT("Unable to write .class file");
View Full Code Here

Examples of org.apache.derby.iapi.services.stream.HeaderPrintWriter.printlnWithHeader()

          rssf.getRunTimeStatistics(activation, this, subqueryTrackingArray));

        HeaderPrintWriter istream = lcc.getLogQueryPlan() ? Monitor.getStream() : null;
        if (istream != null)
        {
          istream.printlnWithHeader(LanguageConnectionContext.xidStr +
                        lcc.getTransactionExecute().getTransactionIdString() +
                        "), " +
                        LanguageConnectionContext.lccStr +
                        lcc.getInstanceNumber() +
                        "), " +
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.