code:     private void init(InputStream is) {
          if (is == null) {
              return;
          }
          Properties props = new Properties();
          try {
              props.load(is);
          } catch (IOException e) {
          } finally {
              if (is != null) {
                  try {
                      is.close();
                  } catch (IOException e) {
                      //swallow
                  }
              }
          }
  
          // set parameters for Tesseract
          setTesseractPath(
                  getProp(props, "tesseractPath", getTesseractPath()));
          setTessdataPath(
                  getProp(props, "tessdataPath", getTessdataPath()));
          setLanguage(
                  getProp(props, "language", getLanguage()));
          setPageSegMode(
                  getProp(props, "pageSegMode", getPageSegMode()));
          setMinFileSizeToOcr(
                  getProp(props, "minFileSizeToOcr", getMinFileSizeToOcr()));
          setMaxFileSizeToOcr(
                  getProp(props, "maxFileSizeToOcr", getMaxFileSizeToOcr()));
          setTimeout(
                  getProp(props, "timeout", getTimeout()));
          setOutputType(getProp(props, "outputType", getOutputType().toString()));
          setPreserveInterwordSpacing(getProp(props, "preserveInterwordSpacing", false));
  
          // set parameters for ImageMagick
          setEnableImageProcessing(
                  getProp(props, "enableImageProcessing", isEnableImageProcessing()));
          setImageMagickPath(
                  getProp(props, "ImageMagickPath", getImageMagickPath()));
          setDensity(
                  getProp(props, "density", getDensity()));
          setDepth(
                  getProp(props, "depth", getDepth()));
          setColorspace(
                  getProp(props, "colorspace", getColorspace()));
          setFilter(
                  getProp(props, "filter", getFilter()));
          setResize(
                  getProp(props, "resize", getResize()));
          setApplyRotation(
          		getProp(props, "applyRotation", getApplyRotation()));
  
          loadOtherTesseractConfig(props);
      }
  
      /**
       * @see #setTesseractPath(String tesseractPath)
       */
  