Jindent - Java Source Code Formatter http://www.jindent.com
 



title

5.6 Formatter


Jindent formatter modules are responsible for the actual formatting or 'pretty printing' process.
Formatter modules are available for several programming languages and can be configured individually to meet all kind of code conventions.



title

5.6.1 Java / SQLJ


The Java / SQLJ formatter module is able to format Java source code up to Java language version 1.5 and Java code containing SQLJ statements.



title
5.6.1.1 Text Encoding

Jindent is able to use different encodings and text styles to read and write source codes.
Therefore it is possible to convert Java files from one encoding standard to another.
For instance from ISO-8859-1 encoding to UTF-16 encoding.

The most common encodings are:

Charset: Description:
US-ASCII Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set
ISO-8859-1ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1
UTF-8Eight-bit UCS Transformation Format
UTF-16BESixteen-bit UCS Transformation Format, big-endian byte order
UTF-16LESixteen-bit UCS Transformation Format, little-endian byte order
UTF-16Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark


Jindent supports all these listed encodings. Of course the most operating systems even know more. For instance the default encoding for west Windows systems is: Cp1252.
For some reasons we cannot provide a full list of all possible encodings, depending on the operating system or the used JRE the encoding names may differ.
Even if Jindent's GUI does not provide your desired encoding type in its pull down list, it is still possible to type desired encoding by hand in the corresponding GUI field. If Jindent will not recognize the entered encoding it will throw an error.

title
5.6.1.1.1 Input

Tabulator size of input source code

Tabulator size of input source code

Sets the expected tabulator size for all input source files.

Jindent needs to know the correct input tabulator size to properly convert tabulator stops to spaces or to tabulator stops with a different size.



Input encoding

Input encoding

Specifies character encoding for all input source files.

If no specific encoding shall be used then it is possible to use system's default encoding.