Package com.uic.ase.proj.xbn.output

Examples of com.uic.ase.proj.xbn.output.Outputter


    <P>Create a DSConfig.</P>

    <P>Equal to <CODE><A HREF="~JD~dsc(i,b,b,optr)~EJD~">DSConfig</A>(i_lvlsMaxDepth, b_ignoreDirs, b_filesFirst, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>()))</CODE></P>
   **/
   public DSConfig(int i_lvlsMaxDepth, boolean b_ignoreDirs, boolean b_filesFirst)  {
     this(i_lvlsMaxDepth, b_ignoreDirs, b_filesFirst, (new Outputter()));
   }
View Full Code Here


    <P>Equal to <CODE><A HREF="~JD~dsc(i,b,b,ff,optr)~EJD~">DSConfig</A>(i_lvlsMaxDepth, b_ignoreDirs, b_filesFirst, file_filter, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>()))</CODE></P>

    <P>Note:  To set file_filter to null, use either <CODE>(FileFilter)null</CODE> or use <A HREF="~JD~dsc(i,b,b)~EJD~">this constructor</A> instead.</P>
   **/
   public DSConfig(int i_lvlsMaxDepth, boolean b_ignoreDirs, boolean b_filesFirst, FileFilter file_filter)  {
     this(i_lvlsMaxDepth, b_ignoreDirs, b_filesFirst, file_filter, (new Outputter()));
   }
View Full Code Here

    <P>Create a DirFile.</P>

    <P>Equal to <A HREF="~JD~df(s,optr)~EJD~">DirFile</A>(s_basePath, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>()))</P>
   **/
  public DirFile(String s_basePath)  {
    this(s_basePath, (new Outputter()));
  }
View Full Code Here

    <P>Create a DirFile.</P>

    <P>Equal to <A HREF="~JD~df(s,i,optr)~EJD~">DirFile</A>(s_basePath, i_levelsToAnalyze, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>()))</P>
   **/
  public DirFile(String s_basePath, int i_levelsToAnalyze)  {
    this(s_basePath, i_levelsToAnalyze, (new Outputter()));
  }
View Full Code Here

    <P>Create a DirFile.</P>

    <P>Equal to <A HREF="~JD~df(s,i,ff,optr)~EJD~">DirFile</A>(s_basePath, i_levelsToAnalyze, file_filter, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>())))</P>
   **/
  public DirFile(String s_basePath, int i_levelsToAnalyze, FileFilter file_filter)  {
    this(s_basePath, i_levelsToAnalyze, file_filter, (new Outputter()));
  }
View Full Code Here

    <P>Create a DBConnDirect.</P>

    <P>Equal to <CODE><A HREF="~JD~dbcd(s,optr)~EJD~">DBConnDirect</A>(s_verificationSelect, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>()))</CODE></P>
   **/
  public DBConnDirect(String s_verificationSelect)  {
    this(s_verificationSelect, (new Outputter()));
  }
View Full Code Here

    <P>Create a TParseConfig.</P>

    <P>Equal to <CODE><A HREF="~JD~tpc(gc,b,optr)~EJD~">TParseConfig</A>(gap_config, b_ignoreSurrTxt, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>()))</CODE></P>
   **/
  public TParseConfig(GapConfig gap_config, boolean b_ignoreSurrTxt)  {
    this(gap_config, b_ignoreSurrTxt, (new Outputter()));
  }
View Full Code Here

    <P>Create a TParseConfig.</P>

    <P>Equal to <CODE><A HREF="~JD~tpc(gc,b,usci,optr)~EJD~">TParseConfig</A>(gap_config, b_ignoreSurrTxt, euscu_ignore, (new <A HREF="~JD~optr#optr()~EJD~">Outputter</A>()))</CODE></P>
   **/
  public TParseConfig(GapConfig gap_config, boolean b_ignoreSurrTxt, USCIgnore euscu_ignore)  {
    this(gap_config, b_ignoreSurrTxt, euscu_ignore, (new Outputter()));
  }
View Full Code Here

   **/
  public TemplateDataOrString(String s_name, ForLineRetrieval for_lineRetrieval, TParseConfig tp_config) throws TemplateFormatException  {
    throwAXIfNull(for_lineRetrieval, "for_lineRetrieval", sCNSTR);
    throwAXIfNull(tp_config, "tp_config", sCNSTR);
    sName = s_name;
    Outputter optr_dbg = tp_config.getOptrDebug();

    if(optr_dbg.isOn())  {
      optr_dbg.write("TemplateDataOrString:  Parsing...START");
      optr_dbg.write("\tTemplate name:           '" + getName() + "'");
      optr_dbg.write("[" + tp_config.toString() + "]");
    }

    VWString acsSurroundingText = new VWString();
    StringBuffer sbCurrentSurrText = new StringBuffer(sES);
    AOSLCreator aoslc = new AOSLCreator();

    TLAObjects tlao = new TLAObjects(tp_config);

    while(for_lineRetrieval.hasMoreLines())  {
      StringBuffer sbLine = for_lineRetrieval.getNextLine();
      TemplateLineAnalyzer tla = new TemplateLineAnalyzer(getName(), for_lineRetrieval.getLineNumberPrev(), sbLine, tlao);

      String sFinalSurrTxt = null;
      while(!tla.isDoneAnalyzing())  {
        if(tla.hasAnotherGap())  {
          s_s ss = tla.getNextSurrTxtAndGap();

          if(!tp_config.doIgnoreSurrTxt())  {
            sbCurrentSurrText.append(ss.s1);
            addCurrSurrTextOntoArray(acsSurroundingText, sbCurrentSurrText);
          }

          aoslc.addString(ss.s2);

          if(aoslc.wasLastStringUnique())  {
            //THIS IS PRINTING OUT AFTER THE GAP *FOLLOWING*
            //THE ONE THAT IS UNIQUE.  HMMMMM.
            optr_dbg.write("\t\t\t[ UNIQUE ]");
          }

        }  else  {
          //The end of the line has been reached.  Get the final
          //surrounding text.
          sFinalSurrTxt = tla.getFinalSurrTxt();

        }
      }

      if(!tp_config.doIgnoreSurrTxt())  {
        sbCurrentSurrText.append(sFinalSurrTxt);
      }
    }

    if(aoslc.getCountUnq() < 1)  {
      //There are no gaps, so the FLR contains a plain string.
      sString = sbCurrentSurrText.toString();
      tData = null;

      optr_dbg.write("No gaps found.  isTemplate() equals false.  Use getString().");

    else  {
      //There is at least one gap.  Add the final surrounding
      //text to the array.
      if(!tp_config.doIgnoreSurrTxt())  {
        addCurrSurrTextOntoArray(acsSurroundingText, sbCurrentSurrText);
      }

      sString = null;

      aoslc.lock();
      tData = new TemplateData(getName(),
        aoslc.getAOSLookup(),
        new APString(acsSurroundingText.getAOString()),
        tlao.sTagStart, tlao.sTagEnd);

      sName = null;

      if(optr_dbg.isOn())  {
        optr_dbg.write(tData.getAOSLookup().getUSAPUnique().getLength() + " unique gaps found.  isTemplate() equals true.  Use getTemplateData().");
      }
    }

    optr_dbg.write("TemplateDataOrString:  Parsing...END");
  }
View Full Code Here

    if(msg_format == null)  {
      throwAX(s_callingClsFnc + ":  msg_format is null.");
    }

    if(!o_writer.isActive())  {
      return (new Outputter());
    }

    return (new Outputter(o_writer, (new OConfig(msg_format, true))));
  }
View Full Code Here

TOP

Related Classes of com.uic.ase.proj.xbn.output.Outputter

Copyright © 2018 www.massapicom. 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.