Examples of FileManager


Examples of ca.nengo.io.FileManager

   *            File to be saved in
   * @throws IOException
   *             if model cannot be saved to file
   */
  public void saveModel(File file) throws IOException {
    FileManager fm = new FileManager();

    fm.save(this.getModel(), file);
    new TransientStatusMessage(this.getFullName() + " was saved to " + file.toString(), 2500);
  }
View Full Code Here

Examples of com.baidu.ueditor.hunter.FileManager

       
      case ActionMap.LIST_IMAGE:
      case ActionMap.LIST_FILE:
        conf = configManager.getConfig( actionCode );
        int start = this.getStartIndex();
        state = new FileManager( conf ).listFile( start );
        break;
       
    }
   
    return state.toJSONString();
View Full Code Here

Examples of com.dragome.compiler.utils.FileManager

    //    System.out.println("finished!");
    //
    //    System.out.println((char) 27 + "[01;31m;This text is red." + (char) 27 + "[00;00m");
    //    System.out.println((char) 27 + "[01;32m;This text is green." + (char) 27 + "[00;00m");

    fileManager= new FileManager(classpath, classpathFilter);
    //  Project.singleton= null; //TODO revisar esto, impide cacheo!!
    Project project= Project.createSingleton(getCacheFile());
    assembly.setProject(project);
    assembly.setClasspathFilter(classpathFilter);
    generator= new DragomeJavaScriptGenerator(project);
View Full Code Here

Examples of com.fasterxml.storemate.store.file.FileManager

        final SCONFIG config = dwConfig.getServiceConfig();
       
        _managed = new ArrayList<StartAndStoppable>();

        StoredEntryConverter<K,E,L> entryConverter = constructEntryConverter(config, environment);
        FileManager files = constructFileManager(config);

        _serviceStuff = constructServiceStuff(config, _timeMaster,
               entryConverter, files);
        if (_testMode) {
            _serviceStuff.markAsTest();
View Full Code Here

Examples of com.google.dart.engine.internal.index.file.FileManager

  public static IndexStore newFileIndexStore(File directory) {
    StringCodec stringCodec = new StringCodec();
    ContextCodec contextCodec = new ContextCodec();
    ElementCodec elementCodec = new ElementCodec(stringCodec);
    RelationshipCodec relationshipCodec = new RelationshipCodec(stringCodec);
    FileManager fileManager = new SeparateFileManager(directory);
    NodeManager nodeManager = new FileNodeManager(
        fileManager,
        AnalysisEngine.getInstance().getLogger(),
        stringCodec,
        contextCodec,
View Full Code Here

Examples of com.hp.hpl.jena.util.FileManager

        indexDir = FSDirectory.open(dir);
        if (!dir.isDirectory()) {

            // load the skos model from the given file
            FileManager fileManager = new FileManager();
            fileManager.addLocatorFile();
            fileManager.addLocatorURL();
            fileManager.addLocatorClassLoader(SKOSEngineImpl.class.getClassLoader());

            if (getExtension(filenameOrURI).equals("zip")) {
                fileManager.addLocatorZip(filenameOrURI);
                filenameOrURI = getBaseName(filenameOrURI);
            }

            skosModel = fileManager.loadModel(filenameOrURI);
            entailSKOSModel();
            indexSKOSModel();
        }

        searcher = new IndexSearcher(DirectoryReader.open(indexDir));
View Full Code Here

Examples of com.hp.hpl.jena.util.FileManager

        if (configPath == null) {
            return null;
        }

        // Make a temporary file manager to look for the metadata file
        FileManager fm = new FileManager();
        fm.addLocatorFile();
        fm.addLocatorURL();
        fm.addLocatorClassLoader( fm.getClass().getClassLoader() );

        try {
            String uri = null ;
            InputStream in = null ;

            StringTokenizer pathElems = new StringTokenizer( configPath, FileManager.PATH_DELIMITER );
            while (in == null && pathElems.hasMoreTokens()) {
                uri = pathElems.nextToken();
                in = fm.openNoMap( uri );
            }

            if (in != null) {
                String syntax = FileUtils.guessLang(uri);
                Model model = ModelFactory.createDefaultModel() ;
View Full Code Here

Examples of com.intellij.psi.impl.file.impl.FileManager

  protected HaxeExpressionCodeFragmentImpl clone() {
    final HaxeExpressionCodeFragmentImpl clone = (HaxeExpressionCodeFragmentImpl)cloneImpl((FileElement)calcTreeElement().clone());
    clone.myPhysical = myPhysical;
    clone.myOriginalFile = this;
    FileManager fileManager = ((PsiManagerEx)getManager()).getFileManager();
    SingleRootFileViewProvider cloneViewProvider =
      (SingleRootFileViewProvider)fileManager.createFileViewProvider(new LightVirtualFile(getName(), getLanguage(), getText()), myPhysical);
    clone.myViewProvider = cloneViewProvider;
    cloneViewProvider.forceCachedPsi(clone);
    clone.init(getContentElementType(), getContentElementType());
    return clone;
  }
View Full Code Here

Examples of com.nijikokun.bukkit.Permissions.FileManager

        this.load(this.defaultWorld, this.config);
    }

    public void load(String world, Configuration config) {
        if (!(new File(this.directory + File.pathSeparator + world + ".yml").exists())) {
            FileManager file = new FileManager(this.directory.getPath() + File.separator, world + ".yml", true);
        }

        config.load();

        this.Worlds.add(world);
View Full Code Here

Examples of com.opensymphony.xwork2.FileManager

     * Gets the version used to export the packages. it tries to get it from MANIFEST.MF, or the file name
     */
    protected String getVersion(URL url) {
        if ("jar".equals(url.getProtocol())) {
            try {
                FileManager fileManager = ServletActionContext.getContext().getInstance(FileManagerFactory.class).getFileManager();
                JarFile jarFile = new JarFile(new File(fileManager.normalizeToFileProtocol(url).toURI()));
                Manifest manifest = jarFile.getManifest();
                if (manifest != null) {
                    String version = manifest.getMainAttributes().getValue("Bundle-Version");
                    if (StringUtils.isNotBlank(version)) {
                        return getVersionFromString(version);
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.