Examples of readFile()


Examples of fr.lip6.jkernelmachines.io.FvecImporter.readFile()

      File f = new File("resources/testwrite.fvec");
     
      assertEquals(4+4*10, f.length());
     
     
      l = fvecimp.readFile("resources/testwrite.fvec");
      assertEquals(10, l.get(0).length);
      for(int i = 0 ; i < 10 ; i++)
        assertEquals(i, l.get(0)[i], 1e-7);
     
      f.delete();
View Full Code Here

Examples of fr.soleil.comete.swing.util.CfFileReader.readFile()

     */
    protected String loadSettings(String filename) {
        CfFileReader f = new CfFileReader();

        // Read and browse the file
        if (!f.readFile(filename)) {
            return "Failed to read " + filename;
        }
        lastConfig = filename;

        return applySettings(f);
View Full Code Here

Examples of jSimMacs.logic.handler.DataHandler.readFile()

   */
  public File readFile(JSimMutuableTreeNode node) {
    File file = null;
    try {
      DataHandler handler = createDataHandler(node.getProject());
      file = handler.readFile(node.getPathString());
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return file;
View Full Code Here

Examples of jimm.datavision.Report.readFile()

            report.setDatabase(dvDb);
            */

            Debug.logInfo("before reading file", module);
            report.readFile(context.getRealPath(page)); // Must be after password

            /* NO support for param file yet... need to pull in page params or something
             if (there_are_params_in_report) {
             // This must come after reading the report file
             report.setParameterXMLFile(param_xml_file_name);
View Full Code Here

Examples of mykeynote.misc.CommonFunctions.readFile()

  }
 
 
  public ArrayList<String> readFile(File file) throws FileNotFoundException, IOException{
    CommonFunctions common = new CommonFunctions();
    return common.readFile(file);
  }
}
View Full Code Here

Examples of net.sourceforge.marathon.util.FileHandler.readFile()

        updateView();
    }

    public void openFile(IEditor editor, File file) throws IOException {
        FileHandler fileHandler = (FileHandler) editor.getData("filehandler");
        String script = fileHandler.readFile(file);
        if (script != null) {
            editor.setText(script);
            editor.setMode(fileHandler.getMode(fileHandler.getCurrentFile().getName()));
            editor.setData("filename", fileHandler.getCurrentFile().getName());
            editor.setCaretLine(0);
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.xml.XMLFileIO.readFile()

    private MapTag loadMapImpl(String mapID, String originID) {
        String completeID = new String(originID + "/" + mapID);
        String filename = new String(mapPath + "/" + completeID);
        try {
            XMLFileIO mapLoader = new XMLFileIO();
            XMLData d = mapLoader.readFile(filename);
            if (d == null)
                return null;
            if (d instanceof MapTag) {
                maps.put(completeID, d);
                return (MapTag) d;
View Full Code Here

Examples of org.apache.flink.api.java.ExecutionEnvironment.readFile()

  @Override
  protected void testProgram() throws Exception {
    ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
   
    DataSet<Record> initialInput = env.readFile(new PointInFormat(), this.dataPath).setParallelism(1);
   
    IterativeDataSet<Record> iteration = initialInput.iterate(2);
   
    DataSet<Record> result = iteration.union(iteration).map(new IdentityMapper());
   
View Full Code Here

Examples of org.apache.poi.POIDataSamples.readFile()

    assertEquals("ringin.wav", sound.getSoundName());
    assertEquals(".WAV", sound.getSoundType());
    assertNotNull(sound.getSoundData());

    byte[] ref_data = slTests.readFile("ringin.wav");
    assertArrayEquals(ref_data, sound.getSoundData());
  }
}
View Full Code Here

Examples of org.cipotato.intimap.mappop.FrameworkMap.readFile()

 
  public void testCorrectMarkerPlacements(){
    testAnyNewMarkerAdded();
    FrameworkMap fwm = new FrameworkMap();
    fwm.readFile(path+"\\barleyframe.txt");
    fwm.setDatabase();
    String[] list = mappopAdd.correctMarkerPlacements(mappopAdd.getPlacedMarkers(), fwm);
    ListUtils.print("False position assignments in MapPop in lines:",list);
    assertEquals(true,list.length==3);
  }
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.