|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.g11ntoolkit.parser.html.XLIFFFormat
|
+--com.g11ntoolkit.parser.html.XLIFFFile
XLIFF File I/O class
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See License Agreement.
| Nested Class Summary | |
class |
XLIFFFile.XLIFFFileTU
Trnslation Unit class for XLIFF file |
| Nested classes inherited from class com.g11ntoolkit.parser.html.XLIFFFormat |
|
| Field Summary |
| Constructor Summary | |
XLIFFFile()
Create a new XLIFFFile. |
|
| Method Summary | |
protected java.lang.String |
normalizer(char c,
boolean attmode)
Normalizer. |
protected java.lang.String |
normalizer(java.lang.String str,
boolean attmode)
Normalizer. |
void |
read(java.io.InputStream in,
java.lang.String encoding)
Read XLIFF file. |
void |
readSkeleton(java.lang.String file,
java.lang.String encoding)
Read source file for skeleton string |
void |
setSkeleton(short mode,
java.lang.String sklFile,
java.lang.StringBuffer str)
Set skeleton mode and file name. |
void |
write(java.io.OutputStream out,
java.lang.String encoding)
Write out XLIFFFile with encoding |
void |
writeDocType(java.io.OutputStream out,
java.lang.String encoding)
Write out document type of XLIFF file with encoding |
protected void |
writeHeader(java.io.Writer writer,
java.lang.String encoding)
Write header part of XLIFF file. |
void |
writeSkeleton(java.io.OutputStream out,
java.lang.String encoding)
Write out skeleton strings with encoding |
void |
writeTail(java.io.OutputStream out,
java.lang.String encoding)
Write out tailer of XLIFF file with encoding |
| Methods inherited from class com.g11ntoolkit.parser.html.XLIFFFormat |
addNotes, addTransUnit, createTransUnit, getSkeleton, getSklKey, getTransUnit, init, makeSklKey, setDebug, setLanguage, setProduct, setSkeleton, setSklTUID, setSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XLIFFFile()
| Method Detail |
public void setSkeleton(short mode,
java.lang.String sklFile,
java.lang.StringBuffer str)
throws java.lang.Exception
mode - Skeleton modeXLIFFFormat.SKLMODE_EXTERNAL: External
XLIFFFormat.SKLMODE_INTERNAL:Internal text
XLIFFFormat.SKLMODE_BASE64, Internal Base64
sklFile - Skeleton file namestr - Skeleton string
java.lang.Exception
public void read(java.io.InputStream in,
java.lang.String encoding)
throws java.io.IOException,
java.io.UnsupportedEncodingException
in - Input Stream classencoding - Input file encoding (i.e. UTF-8)
java.io.IOException
java.io.UnsupportedEncodingException
public void readSkeleton(java.lang.String file,
java.lang.String encoding)
throws java.lang.Exception
file - Source file nameencoding - Input source file encoding (i.e. UTF-8)
java.lang.Exception
public void write(java.io.OutputStream out,
java.lang.String encoding)
throws java.io.IOException,
java.io.UnsupportedEncodingException
out - Output Stream classencoding - Output encoding (i.e. UTF-8)
java.io.IOException
java.io.UnsupportedEncodingException
public void writeDocType(java.io.OutputStream out,
java.lang.String encoding)
throws java.io.IOException,
java.io.UnsupportedEncodingException
out - Output Stream classencoding - Output encoding (i.e. UTF-8)
java.io.IOException
java.io.UnsupportedEncodingException
public void writeTail(java.io.OutputStream out,
java.lang.String encoding)
throws java.io.IOException,
java.io.UnsupportedEncodingException
out - Output Stream classencoding - Output encoding (i.e. UTF-8)
java.io.IOException
java.io.UnsupportedEncodingException
protected void writeHeader(java.io.Writer writer,
java.lang.String encoding)
throws java.io.IOException
writer - Writer class
java.io.IOException
public void writeSkeleton(java.io.OutputStream out,
java.lang.String encoding)
throws java.io.IOException,
java.io.UnsupportedEncodingException
out - Output Stream classencoding - Output encoding (i.e. UTF-8)
java.io.IOException
java.io.UnsupportedEncodingException
protected java.lang.String normalizer(java.lang.String str,
boolean attmode)
str - Input stringattmode - Escape mode
protected java.lang.String normalizer(char c,
boolean attmode)
c - Input characterattmode - Escape mode
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||