aboutsummaryrefslogtreecommitdiffstats
path: root/src/codegen
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2010-11-25 21:04:09 +0000
committerVincent Hennebert <vhennebert@apache.org>2010-11-25 21:04:09 +0000
commit55fbf510250ace0c4891060934da0c6bc61beb96 (patch)
tree635bf8ee07b799c49b093924b799452df005e123 /src/codegen
parent6b4369d222468a32396e54b7a081d73d5129f212 (diff)
downloadxmlgraphics-fop-55fbf510250ace0c4891060934da0c6bc61beb96.tar.gz
xmlgraphics-fop-55fbf510250ace0c4891060934da0c6bc61beb96.zip
Another go at removing all trailing whitespace
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1039179 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java28
-rw-r--r--src/codegen/unicode/java/org/apache/fop/util/License.java8
2 files changed, 18 insertions, 18 deletions
diff --git a/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java b/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java
index 263a1c694..467df6b3a 100644
--- a/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java
+++ b/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java
@@ -50,7 +50,7 @@ import org.apache.fop.util.License;
* The methods fromJava and fromTeX are commented out because they are not Java 1.4 compliant.
*/
public final class UnicodeClasses {
-
+
/** directory containing unicode properties files */
public static final String UNICODE_DIR = "http://www.unicode.org/Public/UNIDATA/";
@@ -73,7 +73,7 @@ public final class UnicodeClasses {
w.write("<!-- in 'src/java/org/apache/fop/hyphenation' -->\n");
w.write("<!-- * commit the changed file -->\n");
}
-
+
/**
* Generate classes.xml from Java's compiled-in Unicode Character Database
* @param hexcode whether to prefix each class with the hexcode (only for debugging purposes)
@@ -99,7 +99,7 @@ public final class UnicodeClasses {
ow.write("<classes>\n");
// loop over the first Unicode plane
for (int code = Character.MIN_VALUE; code <= maxChar; ++code) {
-
+
// skip surrogate area
if (code == Character.MIN_SURROGATE) {
code = Character.MAX_SURROGATE;
@@ -114,7 +114,7 @@ public final class UnicodeClasses {
|| Character.getType(code) == Character.OTHER_LETTER)) {
continue;
}
-
+
// skip a number of blocks
Character.UnicodeBlock ubi = Character.UnicodeBlock.of(code);
if (ubi.equals(Character.UnicodeBlock.SUPERSCRIPTS_AND_SUBSCRIPTS)
@@ -146,18 +146,18 @@ public final class UnicodeClasses {
ow.flush();
ow.close();
}
-
-
+
+
/**
* The column numbers in the UCD file
*/
public static final int UNICODE = 0, GENERAL_CATEGORY = 2, SIMPLE_UPPERCASE_MAPPING = 12,
SIMPLE_LOWERCASE_MAPPING = 13, SIMPLE_TITLECASE_MAPPING = 14, NUM_FIELDS = 15;
-
+
/**
* Generate classes.xml from Unicode Character Database files
* @param hexcode whether to prefix each class with the hexcode (only for debugging purposes)
- * @param unidataPath path to the directory with UCD files
+ * @param unidataPath path to the directory with UCD files
* @param outfilePath output file
* @throws IOException if the input files are not found
* @throws URISyntaxException if {@code unidataPath} cannot be converted to a URI
@@ -175,7 +175,7 @@ public final class UnicodeClasses {
throw new FileNotFoundException
("URI with file or http scheme required for UNIDATA input directory");
}
-
+
File f = new File(outfilePath);
if (f.exists()) {
f.delete();
@@ -183,7 +183,7 @@ public final class UnicodeClasses {
f.createNewFile();
FileOutputStream fw = new FileOutputStream(f);
OutputStreamWriter ow = new OutputStreamWriter(fw, "utf-8");
-
+
URI inuri = unidata.resolve("Blocks.txt");
InputStream inis = null;
if (scheme.equals("file")) {
@@ -253,7 +253,7 @@ public final class UnicodeClasses {
if (j < blockNames.length) {
continue;
}
-
+
int uppercode = -1, titlecode = -1;
if (!"".equals(fields[SIMPLE_UPPERCASE_MAPPING])) {
uppercode = Integer.parseInt(fields[SIMPLE_UPPERCASE_MAPPING], 16);
@@ -284,7 +284,7 @@ public final class UnicodeClasses {
/**
* Generate classes.xml from XeTeX's Unicode letters file
* @param hexcode whether to prefix each class with the hexcode (only for debugging purposes)
- * @param lettersPath path to XeTeX's Unicode letters file unicode-letters-XeTeX.tex
+ * @param lettersPath path to XeTeX's Unicode letters file unicode-letters-XeTeX.tex
* @param outfilePath output file
* @throws IOException in case of an I/O exception
*/
@@ -345,7 +345,7 @@ public final class UnicodeClasses {
inbr.close();
}
-
+
/**
* @param args [--hexcode] [--java|--ucd|--tex] outfile [infile]
* @throws IOException if the input file cannot be found
@@ -375,7 +375,7 @@ public final class UnicodeClasses {
if (++i < args.length) {
infile = args[i];
}
-
+
if (type.equals("java") && infile != null) {
System.err.println("Type java does not allow an infile");
System.exit(1);
diff --git a/src/codegen/unicode/java/org/apache/fop/util/License.java b/src/codegen/unicode/java/org/apache/fop/util/License.java
index ea28f6f09..0a9b6d339 100644
--- a/src/codegen/unicode/java/org/apache/fop/util/License.java
+++ b/src/codegen/unicode/java/org/apache/fop/util/License.java
@@ -28,7 +28,7 @@ import java.io.Writer;
* Write the Apache license text in various forms
*/
public final class License {
-
+
private License() {
}
@@ -56,10 +56,10 @@ public final class License {
* The subversion Id keyword line
*/
public static final String ID = "$Id$";
-
+
/**
* Calculate the maximum line length in the Apache license text
- * for use in formatting
+ * for use in formatting
*/
private static int maxLength;
static {
@@ -103,7 +103,7 @@ public final class License {
w.write("\n");
w.write("<!-- " + ID + " -->\n");
}
-
+
/**
* For testing purposes
* @param args optional, --java or --xml