yyc12345
7c88b3614a
- send message in console if PyBMap fail to load native dynamic library. this is good for user experience. - remove snippet from BMap bindings generator. We now insert generated code manually. - fix C sharp code generation issue in BMap bidnings generator. - add some content for BMapSharp.
32 lines
979 B
Java
32 lines
979 B
Java
//import java.io.FileInputStream;
|
|
import java.io.FileOutputStream;
|
|
//import java.io.InputStreamReader;
|
|
import java.io.OutputStreamWriter;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
public class CommonHelper {
|
|
|
|
// public static InputStreamReader openReader(String filename) throws Exception {
|
|
// FileInputStream fs = new FileInputStream(filename);
|
|
// return new InputStreamReader(fs, StandardCharsets.UTF_8);
|
|
// }
|
|
|
|
public static OutputStreamWriter openWriter(String filename) throws Exception {
|
|
FileOutputStream fs = new FileOutputStream(filename);
|
|
return new OutputStreamWriter(fs, StandardCharsets.UTF_8);
|
|
}
|
|
|
|
// public static void writeSnippet(OutputStreamWriter writer, String snippet_path) throws Exception {
|
|
// // open snippet
|
|
// InputStreamReader reader = openReader(snippet_path);
|
|
// // write into writer
|
|
// reader.transferTo(writer);
|
|
// reader.close();
|
|
// }
|
|
|
|
public static String getDoxygenInOutStr(boolean isInput) {
|
|
return isInput ? "in" : "out";
|
|
}
|
|
|
|
}
|