示例#1
0
 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;
 }
示例#2
0
 public boolean loadModel(InputStream in, long size) throws IOException {
   filesize = size;
   gcodes = GCodeFactory.loadModel(in, filesize);
   return gcodes != null;
 }
示例#3
0
 public boolean loadModel(InputStream in) throws IOException {
   gcodes = GCodeFactory.loadModel(in, 0);
   return gcodes != null;
 }
示例#4
0
 public GCodeStore getGcodes() {
   if (gcodes == null) {
     gcodes = GCodeFactory.getGcodeStore(10000);
   }
   return gcodes;
 }
示例#5
0
 public long getReadLines() {
   return GCodeFactory.getReadLines();
 }
示例#6
0
 public long getReadbytes() {
   return GCodeFactory.getReadBytes();
 }