Examples of FileReader


Examples of Dependencies.PR1.FileReader

        if (aux.length() <= 0) {
            ponerAnalizarFallido("El conjunto de instrucciones está vacío");
        }
        else {
            FileReader fr = new FileReader("src" + File.separator + "Palabras reservadas.txt");

            String[] palabrasReservadas = null;
            try {
                palabrasReservadas = fr.palabrasReservadas();
            }
            catch (Exception e) {
                ponerAnalizarFallido("No se encuentra directorio con palabras reservadas.");
            }
            LexicalAnalyzer al = new LexicalAnalyzer(palabrasReservadas);
View Full Code Here

Examples of Readers.FileReader

     * @throws BiffException
     * @throws Exception
     */
    public void importData(String dataFilePath)throws FileNotFoundException, IOException, BiffException, Exception{
        dataFilePath = dataFilePath.toLowerCase();
        FileReader fileReader=null;
        if(dataFilePath.endsWith("csv")){
            BufferedReader in=null;
            in = new BufferedReader(new java.io.FileReader(dataFilePath));
            fileReader = new CSVReader(in);
        }
        if(dataFilePath.endsWith("xls")){
            fileReader = new XLSReader(new File(dataFilePath));
        }
        if(dataFilePath.endsWith("wss")){
            fileReader = new WSSReader(new File(dataFilePath));
        }
        if (fileReader!=null)
            data = fileReader.readData();
        else throw new Exception("Usupported File Extension");
        dataImported = true;


    }
View Full Code Here

Examples of Utils.FileReader

            Password pcPass=new Password(mwcMain);
            pcPass.setVisible(true);
            if(pcPass.getPassword()!=null)
            {
                mwcMain.CloseDatabase();
                Profile prfMain=(new FileReader(fleOpened)).read(pcPass.getPassword());
                if(prfMain!=null)
                {
                    prfMain.resetModifyed();
                    mwcMain.setProfile(prfMain);
                    mwcMain.setOpenedFile(fleOpened);
View Full Code Here

Examples of ch.epfl.lbd.io.readers.FileReader

public class TestFileReader extends Tester{

  @Test
  public void run() throws Exception {
    super.run();
    Reader reader = new FileReader(new File("src/assets/test.txt"));
    String value;
    reader.open();
    value = (String)reader.read()[0];
    while(value != null){
      logger.info(value);
      Assert.assertTrue(value.contains("this is the "));
      value = (String)reader.read()[0];
    }
  }
View Full Code Here

Examples of com.cuubez.visualizer.scanner.reader.FileReader

public class ConfigurationScanner extends FileScanner {

    public InputStream scan(String applicationPath) throws IOException {

        URL resource = findResources(applicationPath);
        FileReader itr = getFileReader(resource, new XmlFileFilter());


        return itr.next();

    }
View Full Code Here

Examples of com.gwtmobile.phonegap.client.FileMgr.FileReader

                    (evt.getType().equals("error") ? ("Error: " + evt.getTarget().getError().getCode() + "<br/>") : "")
                    text.getHTML());
              }
            };
            text.setText("");
            FileReader reader = FileMgr.newFileReader();
            reader.onLoad(callback);
            reader.onLoadStart(callback);
            reader.onLoadEnd(callback);
            reader.onProgress(callback);
            reader.onAbort(callback);
            reader.onError(callback);
            reader.readAsDataURL(file);
          }
          @Override
          public void onError(FileError error) {
            console("error:" + error.getCode());
          }
View Full Code Here

Examples of com.itstherules.io.FileReader

    extraData = null;
  }
 
  public FlvHeader(IOHelper ioh) {
    this.ioh = ioh;
    FileReader fh = ioh.getFileReader();
    fh.setDebug(ioh.isDebug());
    signature = fh.readString(3);
    version = fh.readUint(1);
    int typeFlags = fh.readUint(1);
    containsAudio = (typeFlags & 4) == 1;
    containsVideo = (typeFlags & 1) == 1;
    dataOffset = fh.readUint(4);
    if (dataOffset - 9 > 0) extraData = fh.readString(dataOffset - 9);
    else extraData = "";
  }
View Full Code Here

Examples of com.sleepycat.je.log.FileReader

        envConfig.setReadOnly(true);
        Environment env = new Environment(envHome, envConfig);
        EnvironmentImpl envImpl = DbInternal.getEnvironmentImpl(env);

        try {
            FileReader reader;
            if (vlsnDump) {
                out.println("Dump VLSNIndex LNs");
                reader = new VLSNIndexReader(env, out, startLsn, endLsn);
            } else if (repGroupDump) {
                out.println("Dump RepGroup LNs");
                reader = new RepGroupReader(env, out, startLsn, endLsn);
            } else if (verifyStream) {
                out.println("Replication stream: check that vlsns ascend");
                reader = new VerifyReader(envImpl, out, startLsn, endLsn);
            } else {
                out.println("No action specified.");
                return;
            }

            while (reader.readNextEntry()) {
            }

            if ((!vlsnDump) && (!repGroupDump)) {
                ((VerifyReader) reader).displayLast();
                VLSNIndex.verifyDb(env, out, verbose);
View Full Code Here

Examples of com.stuffwithstuff.magpie.util.FileReader

  @Def("(is File) close()")
  @Doc("Closes the file.")
  public static class Close implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      if (left.getValue() instanceof FileReader) {
        FileReader reader = (FileReader)left.getValue();
        reader.close();
      } else {
        FileWriter writer = (FileWriter)left.getValue();
        writer.close();
      }
      return context.nothing();
View Full Code Here

Examples of jFileLib.text.FileReader

      return readFile(false);
    }
   
    public boolean readFile(boolean toLowerCase)
    {
      FileReader reader = new FileReader(getFilePath());
     
        HashMap<String, HashMap<String, String> > newSections = new HashMap<String, HashMap<String, String> >();
        List<String> lines = reader.getFileContent();
       
        int size = lines.size();
       
      if(size == 0)
            return false;
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.