@@ -0,0 +1,1394 @@
+package imj3.draft;%0A%0Aimport static multij.tools.Tools.baseName;%0A%0Aimport java.io.FileInputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.PrintStream;%0A%0Aimport multij.tools.CommandLineArgumentsParser;%0Aimport multij.tools.IllegalInstantiationException;%0A%0A/**%0A * @author codistmonk (creation 2015-09-02)%0A */%0Apublic final class Bin2LIBSVM %7B%0A%09%0A%09private Bin2LIBSVM() %7B%0A%09%09throw new IllegalInstantiationException();%0A%09%7D%0A%09%0A%09/**%0A%09 * @param commandLineArguments%0A%09 * %3Cbr%3EMust not be null%0A%09 * @throws IOException %0A%09 */%0A%09public static final void main(final String%5B%5D commandLineArguments) throws IOException %7B%0A%09%09final CommandLineArgumentsParser arguments = new CommandLineArgumentsParser(commandLineArguments);%0A%09%09final String binPath = arguments.get(%22bin%22, %22%22);%0A%09%09final int itemSize = arguments.get(%22itemSize%22, 2)%5B0%5D;%0A%09%09final String outPath = arguments.get(%22out%22, baseName(binPath) + %22.txt%22);%0A%09%09final byte%5B%5D item = new byte%5BitemSize%5D;%0A%09%09%0A%09%09try (final InputStream input = new FileInputStream(binPath);%0A%09%09%09%09final PrintStream output = new PrintStream(outPath)) %7B%0A%09%09%09while (input.read(item) == itemSize) %7B%0A%09%09%09%09output.print(0xFF & item%5B0%5D);%0A%09%09%09%09%0A%09%09%09%09for (int i = 1; i %3C itemSize; ++i) %7B%0A%09%09%09%09%09final int value = 0xFF & item%5Bi%5D;%0A%09%09%09%09%09%0A%09%09%09%09%09if (value != 0) %7B%0A%09%09%09%09%09%09output.print(%22 %22);%0A%09%09%09%09%09%09output.print(i);%0A%09%09%09%09%09%09output.print(%22:%22);%0A%09%09%09%09%09%09output.println(value);%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Add tool Bin2LIBSVM.