SourceFormatX

Overview

Features

Why Use It

Formatting Show

Integration

Screenshots

Documentation

FAQs & Tips

Update History

Award Gallery

Testimonials

License Policy

CodeMorph

CodeToHtml

Java Source Code Obfuscation Show


SourceFormatX is not only the multi-language code formatter but also a code obfuscator that can obfuscate your Java and JSP source code for the purposes of source code security and intellectual property protection.

C/C++ Java C# Delphi (Pascal)
PHP JSP JavaScript HTML Components
CORBA IDL


  Java Source Code Obfuscation Examples:     Example 1   |   Example 2

This is Java code obfuscating example, the purpose of it is to show the power of SourceFormatX Java Code Formatter's syntax parse engine.

  /* Before Java Code Obfuscating */

  package demo;

  import java.io.IOException;
  import com.lucene.store.Directory;
  import com.lucene.store.FSDirectory;
  import com.lucene.index.IndexReader;
  import com.lucene.index.Term;

  class DeleteFiles
  {
    public static void main(String[] args)
    {
      try
      {
        Directory directory = FSDirectory.getDirectory("demo index", false);
        IndexReader reader = IndexReader.open(directory);

        for (int i = 0; i < reader.maxDoc(); i++)
          reader.delete(i);

        reader.close();
        directory.close();

      }
      catch (Exception e)
      {
        System.out.println(" caught a " + e.getClass() + "\n with message: " +
          e.getMessage());
      }
    }
  }


  /* After Java Code Obfuscating */

  package demo;import java.io.IOException;import com.lucene.store.Directory;
  import com.lucene.store.FSDirectory;import com.lucene.index.IndexReader;import
  com.lucene.index.Term;class DeleteFiles{public static void main(String[]args){
  try{Directory directory=FSDirectory.getDirectory("demo index",false);
  IndexReader reader=IndexReader.open(directory);for(int i=0;i<reader.maxDoc();i
  ++)reader.delete(i);reader.close();directory.close();}catch(Exception e){
  System.out.println(" caught a "+e.getClass()+"\n with message: "+e.getMessage()
  );}}}

Example 1   |   Example 2

  Download SourceFormatX Java Code Formatter to format and obfuscate all your Java source code files today!