Removed debug output accidentally committed.

Fixed a test.
This commit is contained in:
Harald Kuhr 2011-03-10 16:58:26 +01:00
parent b45f2ac09f
commit 63b5ae9994
2 changed files with 6 additions and 6 deletions

View File

@ -96,9 +96,9 @@ public final class JPEGSegmentUtil {
JPEGSegment segment;
try {
// while (!isImageDone(segment = readSegment(stream, segmentIdentifiers))) {
while (!isImageDone(segment = readSegment(stream, ALL_SEGMENTS))) {
System.err.println("segment: " + segment);
while (!isImageDone(segment = readSegment(stream, segmentIdentifiers))) {
// while (!isImageDone(segment = readSegment(stream, ALL_SEGMENTS))) {
// System.err.println("segment: " + segment);
if (isRequested(segment, segmentIdentifiers)) {
if (segments == Collections.EMPTY_LIST) {

View File

@ -73,8 +73,8 @@ public class JPEGSegmentTest extends ObjectAbstractTestCase {
@Override
protected Object makeObject() {
byte[] bytes = new byte[14];
System.arraycopy("JFIF".getBytes(Charset.forName("ascii")), 0, bytes, 0, 4);
return new JPEGSegment(0xFFE0, bytes);
byte[] bytes = new byte[11];
System.arraycopy("Exif".getBytes(Charset.forName("ascii")), 0, bytes, 0, 4);
return new JPEGSegment(0xFFE1, bytes);
}
}