Package es.upv.simulator

Examples of es.upv.simulator.Tokenizer


        nMuestras = 0;
        posMuestra = 0.0F;
        velozMuestreo = 6000F;
        try
        {
            Tokenizer tok = new Tokenizer(fMuestra);
            tok.whitespaceChars(58, 255);
            tok.wordChars(48, 57);
            valorMax = tok.readFloat();
            valorMin = tok.readFloat();
            nMuestras = tok.readInt();
            velozMuestreo = tok.readInt();
            int longitud = nMuestras * 2;
            byte buf[] = new byte[longitud];
            fMuestra.skip(1L);
            int num = fMuestra.read(buf, 0, longitud);
            if(num >= 0)
View Full Code Here


    public void listarDirectorio()
    {
        try
        {
            Tokenizer dir = new Tokenizer((new URL(this.dir + "directorio.txt")).openStream());
            listArchivos.removeAll();
            do
            {
                if(dir.buscarArchivo(".sig") != null)
                {
                    listArchivos.add(((StreamTokenizer) (dir)).sval);
                }
            } while(((StreamTokenizer) (dir)).ttype != -1);
        }
View Full Code Here

TOP

Related Classes of es.upv.simulator.Tokenizer

Copyright © 2018 www.massapicom. 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.