You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/10/24 02:25:35 UTC
svn commit: r1535231 -
/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App2Segment.java
Author: ggregory
Date: Thu Oct 24 00:25:34 2013
New Revision: 1535231
URL: http://svn.apache.org/r1535231
Log:
The static field JpegConstants.icc_profile_label should be accessed directly.
Modified:
commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App2Segment.java
Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App2Segment.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App2Segment.java?rev=1535231&r1=1535230&r2=1535231&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App2Segment.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App2Segment.java Thu Oct 24 00:25:34 2013
@@ -22,7 +22,7 @@ import java.io.InputStream;
import org.apache.commons.imaging.ImageReadException;
import org.apache.commons.imaging.common.BinaryFileParser;
-import org.apache.commons.imaging.formats.jpeg.JpegImageParser;
+import org.apache.commons.imaging.formats.jpeg.JpegConstants;
public class App2Segment extends AppnSegment implements Comparable<App2Segment> {
public final byte icc_bytes[];
@@ -38,16 +38,16 @@ public class App2Segment extends AppnSeg
super(marker, marker_length, is2);
if (BinaryFileParser.startsWith(getSegmentData(),
- JpegImageParser.icc_profile_label)) {
+ JpegConstants.icc_profile_label)) {
final InputStream is = new ByteArrayInputStream(getSegmentData());
- readAndVerifyBytes(is, JpegImageParser.icc_profile_label,
+ readAndVerifyBytes(is, JpegConstants.icc_profile_label,
"Not a Valid App2 Segment: missing ICC Profile label");
cur_marker = readByte("cur_marker", is, "Not a valid App2 Marker");
num_markers = readByte("num_markers", is, "Not a valid App2 Marker");
- marker_length -= JpegImageParser.icc_profile_label.size();
+ marker_length -= JpegConstants.icc_profile_label.size();
marker_length -= (1 + 1);
icc_bytes = readBytes("App2 Data", is, marker_length,