summaryrefslogtreecommitdiff
path: root/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java')
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java46
1 files changed, 23 insertions, 23 deletions
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java
index 4c79cd113f6f..d66b21ce90f3 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
/*
* SDFWriter.java
*
- *
+ *
*/
package com.sun.star.tooling.converter;
@@ -35,8 +35,8 @@ import java.io.*;
import java.util.Map;
/**
- * Write data to a SDFFile
- *
+ * Write data to a SDFFile
+ *
* @author Christian Schmidt 2005
*
*/
@@ -57,7 +57,7 @@ public class SDFWriter extends DataWriter {
* an array of the SDF files column names if the source and the target language is in
*/
final static String[] outLineNames= {"BlockNr","Project","SourceFile","Dummy","ResType","GID","LID","HID","Platform","Width","SourceLanguageID","SourceText","SourceHText","SourceQText","SourceTitle","TargetLanguageID","TargetText","TargetHText","TargetQText","TargetTitle","TimeStamp"};
-
+
/**
* A Map holding the source language line content
*/
@@ -80,31 +80,31 @@ public class SDFWriter extends DataWriter {
* The language to translate to
*/
private String targetLanguage;
-
+
// private boolean SourceIsFirst=false;
-
-
-
-
+
+
+
+
/**
* Create a new Instance of SDFWriter
- *
+ *
* @param bos BufferedWriter to write to
* @param charset the charset to use to write
* @throws java.io.UnsupportedEncodingException
*/
public SDFWriter(BufferedOutputStream bos,String charset) throws java.io.UnsupportedEncodingException {
super(bos,charset);
-
+
}
-
+
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataWriter#writeData()
*/
public final void writeData() throws java.io.IOException {
-
+
StringBuffer buffer=new StringBuffer("");
-
+
// get the values of the found fields
//create the two sdf lines
@@ -120,7 +120,7 @@ public class SDFWriter extends DataWriter {
// so close it with lf
buffer.append(lineEnd);
Converter.countLine();
- }
+ }
}
// is there a target line with anything in the strings?
if (!(outData.get("TargetLanguageID")==null||((outData.get("TargetTitle").equals("")&&outData.get("TargetText").equals("")&&outData.get("TargetHText").equals("")&&outData.get("TargetQText").equals(""))))){
@@ -136,13 +136,13 @@ public class SDFWriter extends DataWriter {
//so close it with lf
buffer.append(lineEnd);
Converter.countLine();
- }
+ }
}
}
this.write(buffer.toString());
-
+
}
-
+
/* (non-Javadoc)
@@ -150,14 +150,14 @@ public class SDFWriter extends DataWriter {
*/
protected void writeData(Map[] data) throws IOException {
// TODO redesign DataHandler in the way that this is not nessesary any more
-
+
}
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataWriter#getDataFrom(com.sun.star.tooling.converter.DataHandler)
*/
protected void getDataFrom(DataHandler handler) throws IOException {
-
+
handler.putDataTo(this.outData);
}
@@ -165,8 +165,8 @@ public class SDFWriter extends DataWriter {
* @see com.sun.star.tooling.converter.DataWriter#getDatafrom(com.sun.star.tooling.converter.DataHandler)
*/
protected void getDatafrom(DataHandler handler) throws IOException {
-
+
handler.putDataTo(this.outData);
-
+
}
}