/*
 * Created on Aug 31, 2009
 */
package jwbroek.id3.v2;

import java.io.IOException;
import java.io.InputStream;

import jwbroek.id3.ITunesPodcastFrame;

public class ITunesPodcastFrameReader implements FrameReader
{
  private final int headerSize;
  
  public ITunesPodcastFrameReader(final int headerSize)
  {
    this.headerSize = headerSize;
  }
  
  public ITunesPodcastFrame readFrameBody(final int size, final InputStream input)
      throws IOException, UnsupportedEncodingException, MalformedFrameException
  {
    final ITunesPodcastFrame result = new ITunesPodcastFrame(this.headerSize + size);
    final StringBuilder payloadBuilder = new StringBuilder();
    for (int index = 0; index < 4; index++)
    {
      payloadBuilder.append(Integer.toHexString(input.read()));
    }
    result.setPayload(payloadBuilder.toString());
    return result;
  }

}

@@ -52,16 +52,56 @@
 d3.v2;%0A%0A
+import jwbroek.id3.ITunesPodcastFrame;%0A%0A
 import j
@@ -153,48 +153,8 @@
 m;%0A%0A
-import jwbroek.id3.ITunesPodcastFrame;%0A%0A
 publ
@@ -213,11 +213,14 @@
 ader
-%0A%7B%0A
+ %7B%0A%0A  
   pr
@@ -247,19 +247,19 @@
 erSize;%0A
+%0A
   
-%0A
   public
@@ -305,21 +305,23 @@
 derSize)
-%0A 
  %7B%0A
+    
     this
@@ -350,15 +350,17 @@
 ze;%0A
+  
   %7D%0A
+%0A
   
-%0A
   pu
@@ -437,22 +437,16 @@
 m input)
-%0A     
  throws 
@@ -515,13 +515,15 @@
 tion
-%0A 
  %7B%0A
+    
     
@@ -604,24 +604,28 @@
  size);%0A    
+   
+ 
 final String
@@ -670,16 +670,20 @@
 lder();%0A
+    
     for 
@@ -721,15 +721,17 @@
 x++)
+ %7B
 %0A    
-%7B%0A
+  
     
@@ -798,14 +798,22 @@
     
-%7D%0A
+    %7D%0A  
     
+  
 resu
@@ -850,24 +850,28 @@
 oString());%0A
+    
     return r
@@ -877,15 +877,17 @@
 result;%0A
+  
   %7D%0A%0A%7D%0A

Reformat code, remove hardcoded path.