Examples of openFile()


Examples of domain.FileControllerDomain.openFile()

    * @return BufferedWriter des d'on es pot afegir contingut al fitxer de text.
    * @throws -
    */
     public BufferedWriter getFileW() {
            FileControllerDomain fCD = new FileControllerDomain();
            _fc = fCD.openFile();
            /*
             * LA FUNCIO DE SOBRE S'HAURIA D'INVOCAR AL CONTROLADOR DE DOMINI
                PROPI DE CADA SUBGRUP, HE POSAT EL DE PRESENTACIO PER COMODITAT
             */
            File fitxer = _fc.getSelectedFile();
View Full Code Here

Examples of domain.FileControllerDomain.openFile()

    public String open() {

    FileControllerDomain fCntrl = new FileControllerDomain();
    JTextArea aux = new JTextArea();
    try {
      fCntrl.openFile(aux);
    }
    catch(Exception e) {
    }
    return aux.getText();
View Full Code Here

Examples of jadx.gui.ui.MainWindow.openFile()

          window.setVisible(true);
          window.setLocationRelativeTo(null);
          window.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);

          if (jadxArgs.getInput().isEmpty()) {
            window.openFile();
          } else {
            window.openFile(jadxArgs.getInput().get(0));
          }
        }
      });
View Full Code Here

Examples of jmt.engine.dataAnalysis.measureOutputs.VerboseCSVMeasureOutputReader.openFile()

    VerboseCSVMeasureOutputReader reader = new VerboseCSVMeasureOutputReader(measureFile, measureDefinition.getLogDecimalSeparator(),measureDefinition.getLogCsvDelimiter());
    statistics = new SampleStatistics();
   
    // Skips header.
    updateProgress(0.0);
    reader.openFile(start > 1 ? start : 1);
    try {
      long lastUpdateTime = System.currentTimeMillis();
      while(reader.hasMoreLines()) {
        reader.readLine();
        statistics.putNewSample(reader.getParsedSample(), reader.getParsedWeight());
View Full Code Here

Examples of no.ugland.utransprod.util.DesktopUtil.openFile()

        try {
            String fileName = (String) fileNameSelectionList.getSelection();
            File showFile = fileName != null ? new File(attachmentDir.getAbsolutePath() + "/" + fileName)
                    : null;
            DesktopUtil desktopUtil=new DesktopUtil();
            desktopUtil.openFile(showFile, window);
        } catch (DesktopException e) {
            throw new ProTransRuntimeException(e.getMessage());
        }

    }
View Full Code Here

Examples of org.apache.lucene.store.Directory.openFile()

    if (hasDeletions(si))
      deletedDocs = new BitVector(directory(), segment + ".del");

    // make sure that all index files have been read or are kept open
    // so that if an index update removes them we'll still have them
    freqStream = cfsDir.openFile(segment + ".frq");
    proxStream = cfsDir.openFile(segment + ".prx");
    openNorms(cfsDir);
  }

  protected final synchronized void doClose() throws IOException {
View Full Code Here

Examples of org.apache.lucene.store.Directory.openFile()

      deletedDocs = new BitVector(directory(), segment + ".del");

    // make sure that all index files have been read or are kept open
    // so that if an index update removes them we'll still have them
    freqStream = cfsDir.openFile(segment + ".frq");
    proxStream = cfsDir.openFile(segment + ".prx");
    openNorms(cfsDir);
  }

  protected final synchronized void doClose() throws IOException {
    if (deletedDocsDirty || normsDirty) {
View Full Code Here

Examples of org.apache.lucene.store.Directory.openFile()

      FieldInfo fi = fieldInfos.fieldInfo(i);
      if (fi.isIndexed) {
        String fileName = segment + ".f" + fi.number;
        // look first for re-written file, then in compound format
        Directory d = directory().fileExists(fileName) ? directory() : cfsDir;
        norms.put(fi.name, new Norm(d.openFile(fileName)));
      }
    }
  }

  private final void closeNorms() throws IOException {
View Full Code Here

Examples of org.apache.lucene.store.Directory.openFile()

      String name = i + ".dat";
      int length = gen.nextInt() & LENGTH_MASK;
      byte b = (byte)(gen.nextInt() & 0x7F);
      //System.out.println("reading " + name + " with " + length + " of " + b);

      InputStream file = store.openFile(name);

      if (file.length() != length)
  throw new Exception("length incorrect");

      for (int j = 0; j < length; j++)
View Full Code Here

Examples of org.deben.Utils.FileManager.openFile()

            // clear the textArea  
            textArea.setText(null);
            // load the new file
            FileManager manager = new FileManager();
            textArea.append(manager.openFile(directoriesMap.get("hex")));

            if (_logger.isInfoEnabled()) {
                _logger.info("Open: " + directoriesMap.get("hex"));
            }
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.