package org.simantics.scl.compiler.markdown.inlines; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Paths; import java.util.List; public class PreprocessEntities { private static final Charset UTF8 = Charset.forName("UTF-8"); public static void main(String[] args) throws IOException { List lines = Files.readAllLines(Paths.get("c:/temp/entities.dat"), UTF8); StringBuilder b = new StringBuilder(); for(String line : lines) { String[] ps = line.split(","); byte[] data = new byte[ps.length-1]; for(int i=1;i