public boolean loadModel() throws IOException { FileInputStream fread = new FileInputStream(filename); File f = new File(filename); filesize = f.length(); System.out.println("Filesize:" + filesize); gcodes = GCodeFactory.loadModel(fread, filesize); return gcodes != null; }
public boolean loadModel(InputStream in, long size) throws IOException { filesize = size; gcodes = GCodeFactory.loadModel(in, filesize); return gcodes != null; }
public boolean loadModel(InputStream in) throws IOException { gcodes = GCodeFactory.loadModel(in, 0); return gcodes != null; }