Package org.apache.commons.imaging.icc
Class IccProfileParser
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.icc.IccProfileParser
-
public class IccProfileParser extends BinaryFileParser
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description IccProfileParser()Constructs a new instance with the default, big-endian, byte order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IccProfileInfogetIccProfileInfo(byte[] bytes)IccProfileInfogetIccProfileInfo(java.awt.color.ICC_Profile iccProfile)IccProfileInfogetIccProfileInfo(java.io.File file)IccProfileInfogetIccProfileInfo(ByteSource byteSource)private IccTagTypegetIccTagType(int quad)booleanisSrgb(byte[] bytes)booleanisSrgb(java.awt.color.ICC_Profile iccProfile)booleanisSrgb(java.io.File file)booleanisSrgb(ByteSource byteSource)private IccProfileInforeadIccProfileInfo(java.io.InputStream is)-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Method Detail
-
getIccProfileInfo
public IccProfileInfo getIccProfileInfo(byte[] bytes) throws java.io.IOException
- Throws:
java.io.IOException
-
getIccProfileInfo
public IccProfileInfo getIccProfileInfo(ByteSource byteSource) throws java.io.IOException
- Throws:
java.io.IOException
-
getIccProfileInfo
public IccProfileInfo getIccProfileInfo(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
getIccProfileInfo
public IccProfileInfo getIccProfileInfo(java.awt.color.ICC_Profile iccProfile) throws java.io.IOException
- Throws:
java.io.IOException
-
getIccTagType
private IccTagType getIccTagType(int quad)
-
isSrgb
public boolean isSrgb(byte[] bytes) throws java.io.IOException- Throws:
java.io.IOException
-
isSrgb
public boolean isSrgb(ByteSource byteSource) throws java.io.IOException
- Throws:
java.io.IOException
-
isSrgb
public boolean isSrgb(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
isSrgb
public boolean isSrgb(java.awt.color.ICC_Profile iccProfile) throws java.io.IOException- Throws:
java.io.IOException
-
readIccProfileInfo
private IccProfileInfo readIccProfileInfo(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
-