return isValidJpegHeaderBytes(fileStream); } finally { fileStream.close();
return isValidJpegHeaderBytes(inputStream); } catch (IOException e) { throw new JpegProcessingException("Error reading Jpeg data", e);
    public boolean isJpeg() throws IOException    {        BufferedInputStream fileStream = new BufferedInputStream(new FileInputStream(_file));        try {            return isValidJpegHeaderBytes(fileStream);        } finally {            fileStream.close();        }    }