cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation MP3DirectoryGenerator.java
Date Sat, 05 Jul 2003 04:33:57 GMT
joerg       2003/07/04 21:33:57

  Modified:    src/java/org/apache/cocoon/generation
                        MP3DirectoryGenerator.java
  Log:
  minor fix: trim() after test for 0x00
  
  Revision  Changes    Path
  1.3       +4 -4      cocoon-2.1/src/java/org/apache/cocoon/generation/MP3DirectoryGenerator.java
  
  Index: MP3DirectoryGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/generation/MP3DirectoryGenerator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MP3DirectoryGenerator.java	3 Jul 2003 23:34:38 -0000	1.2
  +++ MP3DirectoryGenerator.java	5 Jul 2003 04:33:57 -0000	1.3
  @@ -171,12 +171,12 @@
       }
   
       private String getID3TagValue(byte[] buf, int offset, int length) {
  -        String s = new String(buf, offset, length).trim();
  -        int index = s.indexOf(0x00); 
  +        String s = new String(buf, offset, length);
  +        int index = s.indexOf(0x00);
           if (index != -1) {
               s = s.substring(0, index);
           }
  -        return s;
  +        return s.trim();
       }
   
       private void setID3HeaderAttributes(RandomAccessFile in) throws IOException
  
  
  

Mime
View raw message