You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2003/07/25 10:45:27 UTC

cvs commit: ant/src/main/org/apache/tools/ant/filters/util ChainReaderHelper.java JavaClassHelper.java

peterreilly    2003/07/25 01:45:27

  Modified:    src/main/org/apache/tools/ant/filters StringInputStream.java
               src/main/org/apache/tools/ant/filters/util
                        ChainReaderHelper.java JavaClassHelper.java
  Log:
  checkstyle
  
  Revision  Changes    Path
  1.11      +18 -1     ant/src/main/org/apache/tools/ant/filters/StringInputStream.java
  
  Index: StringInputStream.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/filters/StringInputStream.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- StringInputStream.java	10 Feb 2003 14:13:32 -0000	1.10
  +++ StringInputStream.java	25 Jul 2003 08:45:26 -0000	1.11
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2002-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -125,6 +125,16 @@
           }
       }
   
  +    /**
  +     * Reads from the Stringreader into a byte array
  +     *
  +     * @param b  the byte array to read into
  +     * @param off the offset in the byte array
  +     * @param len the length in the byte array to fill
  +     * @return the actual number read into the byte array, -1 at
  +     *         the end of the stream
  +     * @exception IOException if an error occurs
  +     */
       public synchronized int read(byte[] b, int off, int len)
           throws IOException {
   
  @@ -176,6 +186,10 @@
       }
   
   
  +    /**
  +     * @return   the current number of bytes ready for reading
  +     * @exception IOException if an error occurs
  +     */
       public synchronized int available() throws IOException {
           if (in == null) {
               throw new IOException("Stream Closed");
  @@ -190,6 +204,9 @@
           }
       }
   
  +    /**
  +     * @return false - mark is not supported
  +     */
       public boolean markSupported () {
           return false;   // would be imprecise
       }
  
  
  
  1.18      +12 -0     ant/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java
  
  Index: ChainReaderHelper.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/filters/util/ChainReaderHelper.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ChainReaderHelper.java	18 Jul 2003 14:21:21 -0000	1.17
  +++ ChainReaderHelper.java	25 Jul 2003 08:45:26 -0000	1.18
  @@ -98,6 +98,7 @@
   
       /**
        * Sets the primary reader
  +     * @param rdr the reader object
        */
       public final void setPrimaryReader(Reader rdr) {
           primaryReader = rdr;
  @@ -105,6 +106,7 @@
   
       /**
        * Set the project to work with
  +     * @param project the current project
        */
       public final void setProject(final Project project) {
           this.project = project;
  @@ -112,6 +114,8 @@
   
       /**
        * Get the project
  +     *
  +     * @return the current project
        */
       public final Project getProject() {
           return project;
  @@ -120,6 +124,7 @@
       /**
        * Sets the buffer size to be used.  Defaults to 4096,
        * if this method is not invoked.
  +     * @param size the buffer size to use
        */
       public final void setBufferSize(int size) {
           bufferSize = size;
  @@ -127,6 +132,8 @@
   
       /**
        * Sets the collection of filter reader sets
  +     *
  +     * @param fchain the filter chains collection
        */
       public final void setFilterChains(Vector fchain) {
           filterChains = fchain;
  @@ -134,6 +141,8 @@
   
       /**
        * Assemble the reader
  +     * @return the assembled reader
  +     * @exception BuildException if an error occurs
        */
       public final Reader getAssembledReader() throws BuildException {
           if (primaryReader == null) {
  @@ -249,6 +258,9 @@
       /**
        * Read data from the reader and return the
        * contents as a string.
  +     * @param rdr the reader object
  +     * @return the contents of the file as a string
  +     * @exception IOException if an error occurs
        */
       public final String readFully(Reader rdr)
           throws IOException {
  
  
  
  1.6       +5 -1      ant/src/main/org/apache/tools/ant/filters/util/JavaClassHelper.java
  
  Index: JavaClassHelper.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/filters/util/JavaClassHelper.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JavaClassHelper.java	10 Feb 2003 14:13:33 -0000	1.5
  +++ JavaClassHelper.java	25 Jul 2003 08:45:26 -0000	1.6
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 2002-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -72,6 +72,10 @@
   
       /**
        * Get the constants declared in a file as name=value
  +     *
  +     * @param bytes the class as a array of bytes
  +     * @return a StringBuffer contains the name=value pairs
  +     * @exception IOException if an error occurs
        */
       public static final StringBuffer getConstants(byte[] bytes)
           throws IOException {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org