| java.lang.Object java.io.InputStream java.io.FilterInputStream org.mmbase.util.IECompatibleJpegInputStream
IECompatibleJpegInputStream | public class IECompatibleJpegInputStream extends FilterInputStream implements Runnable(Code) | | IECompatibleJpegInputStream removes additional information left by PhotoShop 7 in jpegs
, this information may crash Internet Exploder. that's why you need to remove it.
With PS 7, Adobe decided by default to embed XML-encoded "preview" data into JPEG files,
using a feature of the JPEG format that permits embedding of arbitrarily-named "profiles".
In theory, these files are valid according to the JPEG specifications.
However they break many applications, including Quark and, significantly,
various versions of Internet Explorer on various platforms.
since: MMBase 1.7 author: Kees Jongenburger version: $Id: IECompatibleJpegInputStream.java,v 1.8 2006/06/27 14:36:38 johannes Exp $ |
Method Summary | |
public int | available() | public void | close() | public static void | main(String[] argv) | public static byte[] | process(byte[] in) | public int | read() | public int | read(byte[] b, int off, int len) | public int | read(byte[] b) | public void | run() | public long | skip(long n) |
IECompatibleJpegInputStream | public IECompatibleJpegInputStream(InputStream in)(Code) | | create a new InputStream that parse the content of a jpeg file and removes application headers
if the content is not a jpeg the content remains unaffected
|
process | public static byte[] process(byte[] in)(Code) | | Util method that uses the IECompatibleInputStream to convert a byte array
if the content is not a jpeg the content is not affected
Parameters: in - the byte array the converted (ie compatible) jpeg |
|
|