Package org.livesub.input.parsers

Examples of org.livesub.input.parsers.Parser


        } catch (UnsupportedEncodingException ex) {
            Logger.getLogger(CaptionsParser.class.getName()).log(Level.SEVERE, null, ex);
        }
       
        DoubleLinkedList<Caption> subs = new DoubleLinkedList<Caption>();
        Parser parser = null;
       
        if(file.getName().toLowerCase().endsWith(".srt")) {
            parser = new SrtParser();
        } else if(file.getName().toLowerCase().endsWith(".sub")) {
            parser = new SubParser();
        }
       
        if(parser != null) {
            subs = parser.read(br);
        }
       
        return subs;
    }
View Full Code Here

TOP

Related Classes of org.livesub.input.parsers.Parser

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.