mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 19:15:29 -04:00
Removed debug output accidentally committed.
Fixed a test.
This commit is contained in:
parent
b45f2ac09f
commit
63b5ae9994
@ -96,9 +96,9 @@ public final class JPEGSegmentUtil {
|
|||||||
|
|
||||||
JPEGSegment segment;
|
JPEGSegment segment;
|
||||||
try {
|
try {
|
||||||
// while (!isImageDone(segment = readSegment(stream, segmentIdentifiers))) {
|
while (!isImageDone(segment = readSegment(stream, segmentIdentifiers))) {
|
||||||
while (!isImageDone(segment = readSegment(stream, ALL_SEGMENTS))) {
|
// while (!isImageDone(segment = readSegment(stream, ALL_SEGMENTS))) {
|
||||||
System.err.println("segment: " + segment);
|
// System.err.println("segment: " + segment);
|
||||||
|
|
||||||
if (isRequested(segment, segmentIdentifiers)) {
|
if (isRequested(segment, segmentIdentifiers)) {
|
||||||
if (segments == Collections.EMPTY_LIST) {
|
if (segments == Collections.EMPTY_LIST) {
|
||||||
|
@ -73,8 +73,8 @@ public class JPEGSegmentTest extends ObjectAbstractTestCase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Object makeObject() {
|
protected Object makeObject() {
|
||||||
byte[] bytes = new byte[14];
|
byte[] bytes = new byte[11];
|
||||||
System.arraycopy("JFIF".getBytes(Charset.forName("ascii")), 0, bytes, 0, 4);
|
System.arraycopy("Exif".getBytes(Charset.forName("ascii")), 0, bytes, 0, 4);
|
||||||
return new JPEGSegment(0xFFE0, bytes);
|
return new JPEGSegment(0xFFE1, bytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user