public class IECompatibleJpegInputStream extends FilterInputStream implements Runnable
in| Constructor and Description |
|---|
IECompatibleJpegInputStream(InputStream in)
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
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
static void |
main(String[] argv) |
static byte[] |
process(byte[] in)
Util method that uses the IECompatibleInputStream to convert a byte array
if the content is not a jpeg the content is not affected
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
run() |
long |
skip(long n) |
mark, markSupported, resetpublic IECompatibleJpegInputStream(InputStream in)
public int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic static byte[] process(byte[] in)
in - the byte arraypublic static void main(String[] argv) throws IOException
IOExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}