Examples of addFile()


Examples of org.fnlp.ml.types.Dictionary.addFile()

   * @throws 
   */
  public static void main(String[] args) throws Exception {
    CWSTagger tag = new CWSTagger("./models/seg.m");
    Dictionary dict=new Dictionary();
    dict.addFile("./models/dict.txt");
    tag.setDictionary(dict);
    ArrayList<String> str = MyCollection.loadList("./testcase/test case seg.txt",null);
    for(String s:str){     
      String t = tag.tag(s);
//      t = tag.tag(t);
View Full Code Here

Examples of org.gephi.desktop.mrufiles.api.MostRecentFiles.addFile()

                return;
            }

            //MRU
            MostRecentFiles mostRecentFiles = Lookup.getDefault().lookup(MostRecentFiles.class);
            mostRecentFiles.addFile(fileObject.getPath());

            ImporterUI ui = controller.getUI(importer);
            if (ui != null) {
                String title = NbBundle.getMessage(DesktopImportControllerUI.class, "DesktopImportControllerUI.file.ui.dialog.title", ui.getDisplayName());
                JPanel panel = ui.getPanel();
View Full Code Here

Examples of org.hibernate.cfg.AnnotationConfiguration.addFile()

            String filename = files[i];
            if ( filename.endsWith(".jar") ) {
                cfg.addJar( new File(filename) );
            }
            else {
                cfg.addFile(filename);
            }
        }
        return cfg;
    }
View Full Code Here

Examples of org.hibernate.cfg.reveng.OverrideRepository.addFile()

    if(revengFiles!=null) {
      OverrideRepository or = new OverrideRepository();
     
      String[] fileNames = revengFiles.list();
      for (int i = 0; i < fileNames.length; i++) {
        or.addFile(new File(fileNames[i]) );
      }
      strategy = or.getReverseEngineeringStrategy(defaultStrategy);     
    }
   
    if(reverseEngineeringStrategyClass!=null) {
View Full Code Here

Examples of org.hxzon.pcap.PcapHandler.addFile()

                if (option == JFileChooser.APPROVE_OPTION) {
                    filePath = chooser.getSelectedFile().getAbsolutePath();
                    prefs.put("openFile", filePath);
                    PcapHandler handler = new PcapHandler();
                    handler.addListener(new PacketHandlerListener(DisplayFrame.this));
                    handler.addFile(filePath);
                    handler.run();
                }
            }

        };
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.metadata.PackageType.addFile()

                  pkgMeta.setSystemRequirements(sysReqs);
               }
               else if (childElement.equals("file"))
               {
                  InstallFileType file = processFiles(pkgMeta, xmlStreamReader);
                  pkgMeta.addFile(file);
               }
               else if (childElement.equals("pre-install"))
               {
                  PreInstallType preInstall = processPreInstall(pkgMeta, xmlStreamReader);
                  pkgMeta.setPreInstall(preInstall);
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.metadata.impl.PackageImpl.addFile()

                  pkgMeta.setSystemRequirements(sysReqs);
               }
               else if (childElement.equals("file"))
               {
                  InstallFileType file = processFiles(pkgMeta, xmlStreamReader);
                  pkgMeta.addFile(file);
               }
               else if (childElement.equals("pre-install"))
               {
                  PreInstallType preInstall = processPreInstall(pkgMeta, xmlStreamReader);
                  pkgMeta.setPreInstall(preInstall);
View Full Code Here

Examples of org.jitterbit.application.filestore.DefaultFileStore.addFile()

        DefaultFileStore store = new DefaultFileStore(new File("C:\\project\\temp\\myFileStore")); //$NON-NLS-1$
        store.deleteAll(false);
        store = new DefaultFileStore(new File("C:\\project\\temp\\myFileStore"));
        FileCollisionResolver resolver = new FileCollisionResolverImpl(null);
        store.report(System.out);
        store.addFile("abc\\123\\nisse.txt", "hihi", resolver);
        store.addFile("abc\\123\\nisse2.txt", "hihi2", resolver); //$NON-NLS-1$ //$NON-NLS-2$
        store.addFile("abc\\123\\nisse.txt", "hihi3", resolver);
        store.deleteAll(false);
    }
View Full Code Here

Examples of org.jitterbit.application.filestore.FileStore.addFile()

            if (isFileFromFileStore(file, path)) {
                return;
            }
            FileCollisionResolver cr = FileCollisionResolver.REPLACE_EXISTING;
            if (ZipUtils.isLikelyZipped(file)) {
                files.addFile(file, path, cr);
            } else {
                byte[] compressedFile = ZipUtils.deflateFileContents(file);
                files.addFile(path, compressedFile, cr);
            }
        } catch (IOException e) {
View Full Code Here

Examples of org.jitterbit.integration.filetransfer.client.ServerFileFolder.addFile()

                        folder = new ServerFileFolder(folderPath);
                        folderMap.put(folderPath, folder);
                    }
                    ServerFile structureFile = ServerFile.fromPathAndHash(parts[1], file.getMD5());
                    structureFile.setLastModified(file.getModifiedTime());
                    folder.addFile(structureFile);
                }
            }
            int nFolders = folderMap.size();
            ServerFileFolder[] returnFolders = new ServerFileFolder[nFolders];
            int iFolderIndex = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.