package com.dpforge.droidgif.decoder2;

import android.util.Log;

import java.io.IOException;

class CommentExtension extends DecoderReader {
	CommentExtension() {
	}

	@Override
	void read(final BinaryStream stream) throws IOException, DecoderException {
		final SubBlocksInputStream subStream = new SubBlocksInputStream(stream);
		int b;
		final StringBuilder builder = new StringBuilder();
		while ((b = subStream.read()) != -1) {
			builder.append((char) (b & 0xFF));
		}
		Log.i("COMMENT", builder.toString());
	}
}

@@ -37,34 +37,8 @@
 2;%0A%0A
-import android.util.Log;%0A%0A
 impo
@@ -61,16 +61,16 @@
 eption;%0A
+
 %0Aclass C
@@ -229,263 +229,49 @@
 %7B%0A%09%09
-final SubBlocksInputStream subStream = new SubBlocksInputStream(stream);%0A%09%09int b;%0A%09%09final StringBuilder builder = new StringBuilder();%0A%09%09while ((b = subStream.read()) != -1) %7B%0A%09%09%09builder.append((char) (b & 0xFF));%0A%09%09%7D%0A%09%09Log.i(%22COMMENT%22, builder.toString()
+new SubBlocksInputStream(stream).skipAll(
 );%0A%09

comment extension fix