Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/IO
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18759
Modified Files:
AbstractResource.cs InputStreamResource.cs
Log Message:
SPRNET-511 - UrlResource Exists only returns true for file://
Index: AbstractResource.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/IO/AbstractResource.cs,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** AbstractResource.cs 8 Aug 2007 17:46:55 -0000 1.24
--- AbstractResource.cs 6 Dec 2007 22:08:47 -0000 1.25
***************
*** 286,290 ****
catch (IOException)
{
! return false;
}
}
--- 286,298 ----
catch (IOException)
{
! try
! {
! Stream inputStream = InputStream;
! inputStream.Close();
! return true;
! } catch (Exception)
! {
! return false;
! }
}
}
Index: InputStreamResource.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/IO/InputStreamResource.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** InputStreamResource.cs 8 Aug 2007 17:46:55 -0000 1.9
--- InputStreamResource.cs 6 Dec 2007 22:08:47 -0000 1.10
***************
*** 116,132 ****
}
! /// <summary>
! /// Does this resource represent a handle with an open stream?
! /// </summary>
! /// <remarks>
! /// <p>
! /// Always returns <see langword="true"/> in this implementation.
! /// </p>
! /// </remarks>
! /// <value>
! /// <see langword="true"/> if this resource represents a handle with an
! /// open stream.
! /// </value>
! /// <seealso cref="Spring.Core.IO.IResource.IsOpen"/>
public override bool IsOpen
{
--- 116,122 ----
}
! /// <summary>
! /// This implementation always returns true
! /// </summary>
public override bool IsOpen
{
***************
*** 134,150 ****
}
! /// <summary>
! /// Does this resource actually exist in physical form?
! /// </summary>
! /// <remarks>
! /// <p>
! /// Always returns <see langword="true"/> in this implementation.
! /// </p>
! /// </remarks>
! /// <value>
! /// <see langword="true"/> if this resource actually exists in physical
! /// form (for example on a filesystem).
! /// </value>
! /// <seealso cref="Spring.Core.IO.IResource.Exists"/>
public override bool Exists
{
--- 124,132 ----
}
!
!
! /// <summary>
! /// This implemementation always returns true
! /// </summary>
public override bool Exists
{
|