Examples of URLSourceProvider


Examples of Translator.source.URLSourceProvider

public class TranslatorController {

    public static void main(String[] args) throws IOException {
        //initialization
        SourceLoader sourceLoader = new SourceLoader();
        Translator translator = new Translator(new URLSourceProvider());

        System.out.println("Выберите способ загрузки контента:");
        System.out.println("'url' - c интернет ресурса.");
        System.out.println("'file' - c локального файла.");
        System.out.println("'exit' - выход.");
View Full Code Here

Examples of com.geekhub.lessons.lessonFive.sourse.URLSourceProvider

public class TranslatorController {

    public static void main(String[] args) throws IOException {
        SourceLoader sourceLoader = new SourceLoader();
        Translator translator = new Translator(new URLSourceProvider());
        System.out.println("Input source to translate or type 'exit' to exit...");
        Scanner scanner = new Scanner(System.in);
        String command = scanner.next();
        while (!"exit".equals(command)) try {
            String source = sourceLoader.loadSource(command);
View Full Code Here

Examples of lesson05.source.URLSourceProvider

    public static void main(String[] args) throws IOException {

        //initialization

        SourceLoader sourceLoader = new SourceLoader();
        Translator translator = new Translator(new URLSourceProvider());

        Scanner scanner = new Scanner(System.in);
        System.out.println("Type <exit> or enter the path to a file that need to be translated: ");
        String command = scanner.next();
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.