You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2005/08/28 00:35:46 UTC
svn commit: r240470 - in
/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io:
FileSystemUtils.java FileUtils.java IOUtils.java
Author: scolebourne
Date: Sat Aug 27 15:35:42 2005
New Revision: 240470
URL: http://svn.apache.org/viewcvs?rev=240470&view=rev
Log:
Since tags and minor style changes
Modified:
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileSystemUtils.java
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java
Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileSystemUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileSystemUtils.java?rev=240470&r1=240469&r2=240470&view=diff
==============================================================================
--- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileSystemUtils.java (original)
+++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileSystemUtils.java Sat Aug 27 15:35:42 2005
@@ -30,6 +30,7 @@
* @author Frank W. Zammetti
* @author Stephen Colebourne
* @version $Id$
+ * @since Commons IO 1.1
*/
public class FileSystemUtils {
Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java?rev=240470&r1=240469&r2=240470&view=diff
==============================================================================
--- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java (original)
+++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java Sat Aug 27 15:35:42 2005
@@ -254,8 +254,8 @@
* @param recursive If true all subdirectories are searched, too.
* @return an collection of java.io.File with the matching files
*/
- public static Collection listFiles(File directory, String[] extensions,
- boolean recursive) {
+ public static Collection listFiles(
+ File directory, String[] extensions, boolean recursive) {
IOFileFilter filter;
if (extensions == null) {
filter = TrueFileFilter.INSTANCE;
@@ -347,7 +347,7 @@
* If the input contains null, the output array contains null at the same
* index.
* <p>
- * From version 1.1 this method will decode the URL.
+ * This method will decode the URL.
* Syntax such as <code>file:///my%20docs/file.txt</code> will be
* correctly decoded to <code>/my docs/file.txt</code>.
*
@@ -356,6 +356,7 @@
* if there was a null at that index in the input array
* @throws IllegalArgumentException if any file is not a URL file
* @throws IllegalArgumentException if any file is incorrectly encoded
+ * @since Commons IO 1.1
*/
public static File[] toFiles(URL[] urls) {
if (urls == null || urls.length == 0) {
@@ -536,6 +537,7 @@
* @throws NullPointerException if source or destination is null
* @throws IOException if source or destination is invalid
* @throws IOException if an IO error occurs during copying
+ * @since Commons IO 1.1
*/
public static void copyDirectory(File srcDir, File destDir) throws IOException {
copyDirectory(srcDir, destDir, true);
@@ -558,6 +560,7 @@
* @throws NullPointerException if source or destination is null
* @throws IOException if source or destination is invalid
* @throws IOException if an IO error occurs during copying
+ * @since Commons IO 1.1
*/
public static void copyDirectory(File srcDir, File destDir,
boolean preserveFileDate) throws IOException {
@@ -586,6 +589,7 @@
* @param destDir the validated destination directory, not null
* @param preserveFileDate whether to preserve the file date
* @throws IOException if an error occurs
+ * @since Commons IO 1.1
*/
private static void doCopyDirectory(File srcDir, File destDir, boolean preserveFileDate) throws IOException {
if (destDir.exists()) {
@@ -780,6 +784,7 @@
* @param file the file to read
* @return The file contents or null if read failed.
* @throws IOException in case of an I/O error
+ * @since Commons IO 1.1
*/
public static byte[] readFileToByteArray(File file) throws IOException {
InputStream in = new FileInputStream(file);
@@ -852,6 +857,7 @@
* @param file the file to write to
* @param data the content to write to the file
* @throws IOException in case of an I/O error
+ * @since Commons IO 1.1
*/
public static void writeByteArrayToFile(
File file, byte[] data) throws IOException {
Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java?rev=240470&r1=240469&r2=240470&view=diff
==============================================================================
--- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java (original)
+++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java Sat Aug 27 15:35:42 2005
@@ -85,6 +85,7 @@
* Instances should NOT be constructed in standard programming.
*/
public IOUtils() {
+ super();
}
//-----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org