package clucene;
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.25
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class FileReader extends Reader {
  private long swigCPtr;

  protected FileReader(long cPtr, boolean cMemoryOwn) {
    super(CLjavaJNI.SWIGFileReaderUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(FileReader obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      CLjavaJNI.delete_FileReader(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public FileReader(String fname, String encoding_scheme, int cachelen, int cachebuff) {
    this(CLjavaJNI.new_FileReader__SWIG_0(fname, encoding_scheme, cachelen, cachebuff), true);
  }

  public FileReader(String fname, String encoding_scheme, int cachelen) {
    this(CLjavaJNI.new_FileReader__SWIG_1(fname, encoding_scheme, cachelen), true);
  }

  public FileReader(String fname, String encoding_scheme) {
    this(CLjavaJNI.new_FileReader__SWIG_2(fname, encoding_scheme), true);
  }

  public FileReader(String fname) {
    this(CLjavaJNI.new_FileReader__SWIG_3(fname), true);
  }

}
