You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by im...@apache.org on 2005/01/11 17:14:47 UTC
cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav WebDavFileSystem.java
imario 2005/01/11 08:14:47
Modified: vfs/src/java/org/apache/commons/vfs/provider/bzip2
Bzip2FileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/compressed
CompressedFileFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/local
DefaultLocalFileProvider.java LocalFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/ftp
FtpFileProvider.java FtpFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/gzip
GzipFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/http
HttpFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/jar
JarFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/sftp
SftpFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/smb
SmbFileProvider.java SmbFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/tar
TarFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/url
UrlFileSystem.java
vfs/src/java/org/apache/commons/vfs/provider/webdav
WebDavFileSystem.java
Log:
made the rest of the filesystem classes public and its constructor protected (where possible) for better reusability
Revision Changes Path
1.2 +3 -3 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/bzip2/Bzip2FileSystem.java
Index: Bzip2FileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/bzip2/Bzip2FileSystem.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Bzip2FileSystem.java 16 Jun 2004 18:19:05 -0000 1.1
+++ Bzip2FileSystem.java 11 Jan 2005 16:14:45 -0000 1.2
@@ -25,13 +25,13 @@
/**
* Filesytem to handle compressed files using the bzip2 method
- *
+ *
* @author <a href="mailto:imario@apache.org">Mario Ivankovits</a>
* @version $Revision$ $Date$
*/
public class Bzip2FileSystem extends CompressedFileFileSystem
{
- public Bzip2FileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
+ protected Bzip2FileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
{
super(rootName, parentLayer, fileSystemOptions);
}
1.3 +4 -4 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileSystem.java
Index: CompressedFileFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileSystem.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CompressedFileFileSystem.java 16 Jun 2004 18:19:05 -0000 1.2
+++ CompressedFileFileSystem.java 11 Jan 2005 16:14:45 -0000 1.3
@@ -34,9 +34,9 @@
extends AbstractFileSystem
implements FileSystem
{
- public CompressedFileFileSystem(final FileName rootName,
- final FileObject parentLayer,
- final FileSystemOptions fileSystemOptions)
+ protected CompressedFileFileSystem(final FileName rootName,
+ final FileObject parentLayer,
+ final FileSystemOptions fileSystemOptions)
throws FileSystemException
{
super(rootName, parentLayer, fileSystemOptions);
1.10 +5 -5 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java
Index: DefaultLocalFileProvider.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/local/DefaultLocalFileProvider.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DefaultLocalFileProvider.java 30 Jun 2004 19:06:38 -0000 1.9
+++ DefaultLocalFileProvider.java 11 Jan 2005 16:14:45 -0000 1.10
@@ -1,12 +1,12 @@
/*
* Copyright 2002, 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,7 +36,7 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-public final class DefaultLocalFileProvider
+public class DefaultLocalFileProvider
extends AbstractOriginatingFileProvider
implements LocalFileProvider
{
1.24 +4 -4 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
Index: LocalFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- LocalFileSystem.java 19 May 2004 19:34:06 -0000 1.23
+++ LocalFileSystem.java 11 Jan 2005 16:14:45 -0000 1.24
@@ -1,12 +1,12 @@
/*
* Copyright 2002, 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -31,7 +31,7 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-public final class LocalFileSystem
+public class LocalFileSystem
extends AbstractFileSystem
implements FileSystem
{
1.12 +2 -2 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java
Index: FtpFileProvider.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- FtpFileProvider.java 18 Oct 2004 18:20:39 -0000 1.11
+++ FtpFileProvider.java 11 Jan 2005 16:14:46 -0000 1.12
@@ -34,7 +34,7 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-public final class FtpFileProvider
+public class FtpFileProvider
extends AbstractOriginatingFileProvider
{
public final static String ATTR_FILE_ENTRY_PARSER = "FEP";
1.33 +2 -2 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileSystem.java
Index: FtpFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/ftp/FtpFileSystem.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- FtpFileSystem.java 18 Oct 2004 18:20:39 -0000 1.32
+++ FtpFileSystem.java 11 Jan 2005 16:14:46 -0000 1.33
@@ -34,7 +34,7 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-final class FtpFileSystem
+public class FtpFileSystem
extends AbstractFileSystem
{
private final static Log log = LogFactory.getLog(FtpFileSystem.class);
@@ -47,7 +47,7 @@
// An idle client
private FtpClient idleClient;
- public FtpFileSystem(final GenericFileName rootName, final FtpClient ftpClient, final FileSystemOptions fileSystemOptions)
+ protected FtpFileSystem(final GenericFileName rootName, final FtpClient ftpClient, final FileSystemOptions fileSystemOptions)
{
super(rootName, null, fileSystemOptions);
// hostname = rootName.getHostName();
1.2 +3 -3 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/gzip/GzipFileSystem.java
Index: GzipFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/gzip/GzipFileSystem.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- GzipFileSystem.java 16 Jun 2004 18:19:05 -0000 1.1
+++ GzipFileSystem.java 11 Jan 2005 16:14:46 -0000 1.2
@@ -25,13 +25,13 @@
/**
* Filesytem to handle compressed files using the gzip method
- *
+ *
* @author <a href="mailto:imario@apache.org">Mario Ivankovits</a>
* @version $Revision$ $Date$
*/
public class GzipFileSystem extends CompressedFileFileSystem
{
- public GzipFileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
+ protected GzipFileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
{
super(rootName, parentLayer, fileSystemOptions);
}
1.12 +5 -5 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/http/HttpFileSystem.java
Index: HttpFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/http/HttpFileSystem.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- HttpFileSystem.java 4 Jul 2004 18:45:56 -0000 1.11
+++ HttpFileSystem.java 11 Jan 2005 16:14:46 -0000 1.12
@@ -1,12 +1,12 @@
/*
* Copyright 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -37,7 +37,7 @@
{
private final HttpClient client;
- public HttpFileSystem(final GenericFileName rootName, final HttpClient client, final FileSystemOptions fileSystemOptions)
+ protected HttpFileSystem(final GenericFileName rootName, final HttpClient client, final FileSystemOptions fileSystemOptions)
{
super(rootName, null, fileSystemOptions);
this.client = client;
1.20 +8 -8 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/jar/JarFileSystem.java
Index: JarFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/jar/JarFileSystem.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- JarFileSystem.java 4 Jul 2004 18:45:56 -0000 1.19
+++ JarFileSystem.java 11 Jan 2005 16:14:46 -0000 1.20
@@ -1,12 +1,12 @@
/*
* Copyright 2002, 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -53,14 +53,14 @@
* @author <a href="mailto:brian@mmmanager.org">Brian Olsen</a>
* @version $Revision$ $Date$
*/
-class JarFileSystem
+public class JarFileSystem
extends ZipFileSystem
{
private Attributes attributes;
- public JarFileSystem(final FileName rootName,
- final FileObject file,
- final FileSystemOptions fileSystemOptions) throws FileSystemException
+ protected JarFileSystem(final FileName rootName,
+ final FileObject file,
+ final FileSystemOptions fileSystemOptions) throws FileSystemException
{
super(rootName, file, fileSystemOptions);
}
1.15 +8 -8 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/sftp/SftpFileSystem.java
Index: SftpFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/sftp/SftpFileSystem.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- SftpFileSystem.java 26 Aug 2004 16:40:02 -0000 1.14
+++ SftpFileSystem.java 11 Jan 2005 16:14:46 -0000 1.15
@@ -1,12 +1,12 @@
/*
* Copyright 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,7 +36,7 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-class SftpFileSystem
+public class SftpFileSystem
extends AbstractFileSystem
implements FileSystem
{
@@ -44,9 +44,9 @@
// private final JSch jSch;
private ChannelSftp idleChannel;
- public SftpFileSystem(final GenericFileName rootName,
- final Session session,
- final FileSystemOptions fileSystemOptions)
+ protected SftpFileSystem(final GenericFileName rootName,
+ final Session session,
+ final FileSystemOptions fileSystemOptions)
{
super(rootName, null, fileSystemOptions);
this.session = session;
1.9 +5 -5 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileProvider.java
Index: SmbFileProvider.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileProvider.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- SmbFileProvider.java 17 Jun 2004 19:29:29 -0000 1.8
+++ SmbFileProvider.java 11 Jan 2005 16:14:46 -0000 1.9
@@ -1,12 +1,12 @@
/*
* Copyright 2002, 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -33,7 +33,7 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-public final class SmbFileProvider
+public class SmbFileProvider
extends AbstractOriginatingFileProvider
implements FileProvider
{
1.23 +5 -5 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileSystem.java
Index: SmbFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileSystem.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- SmbFileSystem.java 19 May 2004 19:34:07 -0000 1.22
+++ SmbFileSystem.java 11 Jan 2005 16:14:46 -0000 1.23
@@ -1,12 +1,12 @@
/*
* Copyright 2002, 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -29,11 +29,11 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-class SmbFileSystem
+public class SmbFileSystem
extends AbstractFileSystem
implements FileSystem
{
- public SmbFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions)
+ protected SmbFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions)
{
super(rootName, null, fileSystemOptions);
}
1.2 +7 -7 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/tar/TarFileSystem.java
Index: TarFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/tar/TarFileSystem.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TarFileSystem.java 8 Nov 2004 21:07:44 -0000 1.1
+++ TarFileSystem.java 11 Jan 2005 16:14:46 -0000 1.2
@@ -1,12 +1,12 @@
/*
* Copyright 2002, 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -51,9 +51,9 @@
private final File file;
private TarInputStream tarFile;
- public TarFileSystem(final FileName rootName,
- final FileObject parentLayer,
- final FileSystemOptions fileSystemOptions)
+ protected TarFileSystem(final FileName rootName,
+ final FileObject parentLayer,
+ final FileSystemOptions fileSystemOptions)
throws FileSystemException
{
super(rootName, parentLayer, fileSystemOptions);
1.21 +5 -5 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileSystem.java
Index: UrlFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/url/UrlFileSystem.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- UrlFileSystem.java 20 May 2004 17:40:56 -0000 1.20
+++ UrlFileSystem.java 11 Jan 2005 16:14:46 -0000 1.21
@@ -1,12 +1,12 @@
/*
* Copyright 2002, 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -33,7 +33,7 @@
extends AbstractFileSystem
implements FileSystem
{
- public UrlFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions)
+ protected UrlFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions)
{
super(rootName, null, fileSystemOptions);
}
1.18 +6 -6 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java
Index: WebDavFileSystem.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- WebDavFileSystem.java 27 May 2004 19:09:37 -0000 1.17
+++ WebDavFileSystem.java 11 Jan 2005 16:14:46 -0000 1.18
@@ -1,12 +1,12 @@
/*
* Copyright 2003,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -32,13 +32,13 @@
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
*/
-class WebDavFileSystem
+public class WebDavFileSystem
extends AbstractFileSystem
implements FileSystem
{
private final HttpClient client;
- public WebDavFileSystem(final GenericFileName rootName, final HttpClient client, final FileSystemOptions fileSystemOptions)
+ protected WebDavFileSystem(final GenericFileName rootName, final HttpClient client, final FileSystemOptions fileSystemOptions)
{
super(rootName, null, fileSystemOptions);
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org