dlr         01/06/21 18:18:19

  Modified:    src/java/org/apache/turbine/util DataStreamParser.java
  Log:
  Slight changes to Kurt's patch to provide more information, and added
  some whitespace.
  
  Revision  Changes    Path
  1.8       +12 -6     
jakarta-turbine/src/java/org/apache/turbine/util/DataStreamParser.java
  
  Index: DataStreamParser.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/util/DataStreamParser.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DataStreamParser.java     2001/06/22 00:29:56     1.7
  +++ DataStreamParser.java     2001/06/22 01:18:19     1.8
  @@ -87,34 +87,39 @@
    * </pre>
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Sean Legassick</a>
  - * @version $Id: DataStreamParser.java,v 1.7 2001/06/22 00:29:56 jon Exp $
  + * @version $Id: DataStreamParser.java,v 1.8 2001/06/22 01:18:19 dlr Exp $
    */
   public abstract class DataStreamParser implements Iterator
   {
       /**
  +     * Conditional compilation flag.
  +     */
  +    private static final boolean DEBUG = false;
  +
  +    /**
        * The list of column names.
        */
       private List            columnNames;
  +
       /**
        * The stream tokenizer for reading values from the input reader.
        */
       private StreamTokenizer tokenizer;
  +
       /**
        * The parameter parser holding the values of columns for the current line.
        */
       private ValueParser     lineValues;
  +
       /**
        * Indicates whether or not the tokenizer has read anything yet.
        */
       private boolean         neverRead = true;
  +
       /**
        * The character encoding of the input
        */
       private String          characterEncoding;
  -    /**
  -     * Debugging
  -     */
  -    private static final boolean DEBUG = false;
   
       /**
        * Create a new DataStreamParser instance. Requires a Reader to read the
  @@ -243,7 +248,8 @@
                   String colval  = tokenizer.sval;
                   if (DEBUG)
                   {
  -                    Log.debug(colname + "=" + colval);
  +                    Log.debug("DataStreamParser.nextRow(): " +
  +                              colname + '=' + colval);
                   }
                   lineValues.add(colname, colval);
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to