Java BufferedReader Read loadSystemClassPath()

Here you can find the source of loadSystemClassPath()

Description

load System Class Path

License

Apache License

Declaration

public static void loadSystemClassPath() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.BufferedReader;

import java.io.File;

import java.io.FileReader;

import java.io.IOException;

public class Main {
    private static String syspath;

    public static void loadSystemClassPath() {
        try {/*from  w  w w.  ja  v  a 2s  . c  o  m*/
            File file = new File("../classpath.txt");
            if (!file.exists())
                return;
            BufferedReader bf = new BufferedReader(new FileReader("../classpath.txt"));
            syspath = bf.readLine();
            System.out.println(syspath);
            File pfile = new File(syspath);
            if (!pfile.exists()) {
                bf.close();
                file.delete();
                return;
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. loadSimpleTextFile(File file, int bufferSize)
  2. loadSqlFile(String path)
  3. loadSQLFromFile(String fileName)
  4. loadStream(InputStream is)
  5. loadStreamContent(InputStream stream)
  6. loadTableList(List list, String fileName)
  7. loadTemplate(final String resource)
  8. loadTemplate(String templateUrl)
  9. loadTemplateParametersFile(File f)