make/tools/src/build/tools/charsetmapping/GenerateSBCS.java
Print this page
@@ -32,16 +32,13 @@
import java.util.regex.*;
import java.nio.charset.*;
import static build.tools.charsetmapping.CharsetMapping.*;
public class GenerateSBCS {
- public static void main(String args[]) throws Exception {
- if (args.length < 3) {
- System.err.println("Usage: java GenSBCS srcDir dstDir config");
- System.exit(1);
- }
+ public static void genSBCS(String args[]) throws Exception {
+
Scanner s = new Scanner(new File(args[0], args[2]));
while (s.hasNextLine()) {
String line = s.nextLine();
if (line.startsWith("#") || line.length() == 0)
continue;