/** * Constructor which directly instantiates the DataInputStream containing the * model contents. * * @param dis * The DataInputStream containing the model information. */ public BinaryGISModelReader(DataInputStream dis) { super(new BinaryFileDataReader(dis)); } }
/** * Constructor which directly instantiates the DataInputStream containing * the model contents. * * @param dis The DataInputStream containing the model information. */ public BinaryPerceptronModelReader(DataInputStream dis) { super(new BinaryFileDataReader(dis)); }
/** * Constructor which directly instantiates the DataInputStream containing the * model contents. * * @param dis * The DataInputStream containing the model information. */ public BinaryQNModelReader(DataInputStream dis) { super(new BinaryFileDataReader(dis)); } }
/** * Constructor which directly instantiates the DataInputStream containing * the model contents. * * @param dis The DataInputStream containing the model information. */ public BinaryPerceptronModelReader(DataInputStream dis) { super(new BinaryFileDataReader(dis)); }
/** * Constructor which directly instantiates the DataInputStream containing the * model contents. * * @param dis * The DataInputStream containing the model information. */ public BinaryQNModelReader(DataInputStream dis) { super(new BinaryFileDataReader(dis)); } }
/** * Constructor which directly instantiates the DataInputStream containing the * model contents. * * @param dis * The DataInputStream containing the model information. */ public BinaryGISModelReader(DataInputStream dis) { super(new BinaryFileDataReader(dis)); } }
@Override public AbstractModel create(InputStream in) throws IOException, InvalidFormatException { return new PooledGenericModelReader(new BinaryFileDataReader(in)).getModel(); }
@Override public AbstractModel create(InputStream in) throws IOException, InvalidFormatException { return new PooledGenericModelReader(new BinaryFileDataReader(in)).getModel(); }
public MaxentModelReaderWrapper(InputStream inputStream) { super(new BinaryFileDataReader(inputStream)); reader = new GISModelReader(super.dataReader); }
public AbstractModelReader(File f) throws IOException { String filename = f.getName(); InputStream input; // handle the zipped/not zipped distinction if (filename.endsWith(".gz")) { input = new GZIPInputStream(new FileInputStream(f)); filename = filename.substring(0,filename.length()-3); } else { input = new FileInputStream(f); } // handle the different formats if (filename.endsWith(".bin")) { this.dataReader = new BinaryFileDataReader(input); } else { // filename ends with ".txt" this.dataReader = new PlainTextFileDataReader(input); } }
public AbstractModelReader(File f) throws IOException { String filename = f.getName(); InputStream input; // handle the zipped/not zipped distinction if (filename.endsWith(".gz")) { input = new GZIPInputStream(new FileInputStream(f)); filename = filename.substring(0,filename.length()-3); } else { input = new FileInputStream(f); } // handle the different formats if (filename.endsWith(".bin")) { this.dataReader = new BinaryFileDataReader(input); } else { // filename ends with ".txt" this.dataReader = new PlainTextFileDataReader(input); } }