Search in sources :

Example 16 with CtagsReader

use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.

the class LuaXrefTest method getTagsDefinitions.

private Definitions getTagsDefinitions() throws IOException {
    InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/lua/sampletags");
    assertNotNull("though sampletags luaould stream,", res);
    BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
    CtagsReader rdr = new CtagsReader();
    String line;
    while ((line = in.readLine()) != null) {
        rdr.readLine(line);
    }
    return rdr.getDefinitions();
}
Also used : InputStreamReader(java.io.InputStreamReader) InputStream(java.io.InputStream) BufferedReader(java.io.BufferedReader) CtagsReader(org.opensolaris.opengrok.analysis.CtagsReader)

Example 17 with CtagsReader

use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.

the class PascalXrefTest method getTagsDefinitions.

private Definitions getTagsDefinitions() throws IOException {
    InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/pascal/sampletags");
    assertNotNull("though sampletags should stream,", res);
    BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
    CtagsReader rdr = new CtagsReader();
    String line;
    while ((line = in.readLine()) != null) {
        rdr.readLine(line);
    }
    return rdr.getDefinitions();
}
Also used : InputStreamReader(java.io.InputStreamReader) InputStream(java.io.InputStream) BufferedReader(java.io.BufferedReader) CtagsReader(org.opensolaris.opengrok.analysis.CtagsReader)

Example 18 with CtagsReader

use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.

the class PhpXrefTest method getTagsDefinitions.

private Definitions getTagsDefinitions() throws IOException {
    InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/php/sampletags");
    assertNotNull("though sampletags should stream,", res);
    BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
    CtagsReader rdr = new CtagsReader();
    String line;
    while ((line = in.readLine()) != null) {
        rdr.readLine(line);
    }
    return rdr.getDefinitions();
}
Also used : InputStreamReader(java.io.InputStreamReader) FileInputStream(java.io.FileInputStream) InputStream(java.io.InputStream) BufferedReader(java.io.BufferedReader) CtagsReader(org.opensolaris.opengrok.analysis.CtagsReader)

Example 19 with CtagsReader

use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.

the class PythonXrefTest method getTagsDefinitions.

private Definitions getTagsDefinitions() throws IOException {
    InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/python/sampletags");
    assertNotNull("though sampletags should stream,", res);
    BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
    CtagsReader rdr = new CtagsReader();
    String line;
    while ((line = in.readLine()) != null) {
        rdr.readLine(line);
    }
    return rdr.getDefinitions();
}
Also used : InputStreamReader(java.io.InputStreamReader) InputStream(java.io.InputStream) BufferedReader(java.io.BufferedReader) CtagsReader(org.opensolaris.opengrok.analysis.CtagsReader)

Example 20 with CtagsReader

use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.

the class ScalaXrefTest method getTagsDefinitions.

private Definitions getTagsDefinitions() throws IOException {
    InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/scala/sampletags");
    assertNotNull("though sampletags should stream,", res);
    BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
    CtagsReader rdr = new CtagsReader();
    String line;
    while ((line = in.readLine()) != null) {
        rdr.readLine(line);
    }
    return rdr.getDefinitions();
}
Also used : InputStreamReader(java.io.InputStreamReader) InputStream(java.io.InputStream) BufferedReader(java.io.BufferedReader) CtagsReader(org.opensolaris.opengrok.analysis.CtagsReader)

Aggregations

BufferedReader (java.io.BufferedReader)29 InputStream (java.io.InputStream)29 InputStreamReader (java.io.InputStreamReader)29 CtagsReader (org.opensolaris.opengrok.analysis.CtagsReader)29 BufferedInputStream (java.io.BufferedInputStream)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 StreamSource (org.opensolaris.opengrok.analysis.StreamSource)1