You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by vd...@apache.org on 2003/11/20 10:01:54 UTC

cvs commit: xml-security/src/org/apache/xml/security/utils/resolver ResourceResolverSpi.java

vdkoogh     2003/11/20 01:01:54

  Modified:    src/org/apache/xml/security/utils/resolver
                        ResourceResolverSpi.java
  Log:
  Removed 2 private methods. Their function was moved elsewhere..
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.8       +1 -40     xml-security/src/org/apache/xml/security/utils/resolver/ResourceResolverSpi.java
  
  Index: ResourceResolverSpi.java
  ===================================================================
  RCS file: /home/cvs/xml-security/src/org/apache/xml/security/utils/resolver/ResourceResolverSpi.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ResourceResolverSpi.java	29 Apr 2003 21:36:56 -0000	1.7
  +++ ResourceResolverSpi.java	20 Nov 2003 09:01:54 -0000	1.8
  @@ -267,45 +267,6 @@
      }
   
      /**
  -    * Method makeFilesystemToURI
  -    *
  -    * @param str
  -    *
  -    */
  -   public static String makeFilesystemToURI(String str) {
  -
  -      final String filePrefix = "file:/";
  -
  -      return "";
  -   }
  -
  -   /**
  -    * Method isDosFilename
  -    *
  -    * @param str
  -    *
  -    */
  -   private static boolean isDosFilename(String str) {
  -
  -      if (str.length() >= 4) {
  -
  -         // str =~ /^\W:\/([^/])/ # to speak perl ;-))
  -         //J-
  -         char ch0 = Character.toUpperCase(str.charAt(0));
  -         boolean isDriveLetter     = (('A' <= ch0) && (ch0 <= 'Z'));
  -         boolean isColon           = str.charAt(1) == ':';
  -         boolean isSlashAfterColon = str.charAt(2) == '/';
  -         boolean isOnlyOneSlash    = str.charAt(3) != '/';
  -         boolean isDosFilename = (isDriveLetter && isColon &&
  -                                  isSlashAfterColon && isOnlyOneSlash);
  -         //J+
  -         return isDosFilename;
  -      }
  -
  -      return false;
  -   }
  -
  -   /**
       * Fixes a platform dependent filename to standard URI form.
       *
       * @param str The string to fix.