|
l10n converter | ||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.sun.star.tooling.converter.XLIFFReader
public class XLIFFReader
Parse the given file and extract the content needed.
This Reader understands the parts of the
xliff spezification used to translate
the strings in Star-Office and Open-Office.
The given file is parsed and the content is stored in a HashMap with those keys:
"BlockNr" originally coming from reading the sdf file, contains 'block nr in sdf file'+'-'+'hash value of the sdf id fields'.
"Project" first column in sdf file format.
"SourceFile" second column in sdf file format.
"Dummy" third column in sdf file format.
"ResType" 4. column in sdf file format.
"GID" 5. column in sdf file format.
"LID" 6. column in sdf file format.
"HID" 7. column in sdf file format.
"Platform" 8. column in sdf file format.
"Width", 9. column in sdf file format.
"SourceLanguageID" 10. column in sdf file format(in the line with the source language).
"SourceText" 11. column in sdf file format(in the line with the source language).
"SourceHText" 12. column in sdf file format(in the line with the source language).
"SourceQText" 13. column in sdf file format(in the line with the source language).
"SourceTitle" 14. column in sdf file format(in the line with the source language).
"TargetLanguageID" 10. column in sdf file format (in the line with the target language).
"TargetText" 11. column in sdf file format (in the line with the target language).
"TargetHText" 12. column in sdf file format (in the line with the target language).
"TargetQText" 13. column in sdf file format (in the line with the target language).
"TargetTitle", 14. column in sdf file format (in the line with the target language).
"TimeStamp" 15. column in sdf file format.
| コンストラクタの概要 | |
|---|---|
XLIFFReader(DataHandler handler,
DataWriter target)
Create a new Instance of XLIFFReader |
|
XLIFFReader(DataHandler handler,
DataWriter target,
boolean doBlockCompleteCheck)
Create a new Instance of XLIFFReader |
|
| メソッドの概要 | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
(non-Javadoc) |
void |
endDocument()
(non-Javadoc) |
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
(non-Javadoc) |
void |
error(org.xml.sax.SAXParseException e)
(non-Javadoc) |
void |
fatalError(org.xml.sax.SAXParseException e)
(non-Javadoc) |
void |
initData()
delete and initialize the data content |
boolean |
isComplete()
complete means all depending parts have been found esp. all res types that belong to the same SDF Line |
void |
moveData()
put the data in an Map in the format that DataHandler can handle it |
void |
showData()
Put the Data to the DataHandler tell the Writer to write it |
void |
startDocument()
(non-Javadoc) |
void |
startElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
(non-Javadoc) |
void |
warning(org.xml.sax.SAXParseException e)
(non-Javadoc) |
| クラス org.xml.sax.helpers.DefaultHandler から継承されたメソッド |
|---|
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public XLIFFReader(DataHandler handler,
DataWriter target)
throws java.io.IOException
handler - the DataHandler to usetarget - the target used
java.io.IOException
public XLIFFReader(DataHandler handler,
DataWriter target,
boolean doBlockCompleteCheck)
throws java.io.IOException
handler - the DataHandler to usetarget - the target useddoBlockCompleteCheck - indicates whether every single transunit should be returned or the whole block data is to be collected
java.io.IOException| メソッドの詳細 |
|---|
public void characters(char[] ch,
int start,
int length)
org.xml.sax.ContentHandler 内の charactersorg.xml.sax.helpers.DefaultHandler 内の charactersContentHandler.characters(char[], int, int)public void endDocument()
org.xml.sax.ContentHandler 内の endDocumentorg.xml.sax.helpers.DefaultHandler 内の endDocumentContentHandler.endDocument()
public void endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler 内の endElementorg.xml.sax.helpers.DefaultHandler 内の endElementorg.xml.sax.SAXExceptionContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
org.xml.sax.ErrorHandler 内の errororg.xml.sax.helpers.DefaultHandler 内の errororg.xml.sax.SAXParseExceptionErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
org.xml.sax.ErrorHandler 内の fatalErrororg.xml.sax.helpers.DefaultHandler 内の fatalErrororg.xml.sax.SAXParseExceptionErrorHandler.fatalError(org.xml.sax.SAXParseException)public void initData()
public final boolean isComplete()
public final void moveData()
public void showData()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void startDocument()
org.xml.sax.ContentHandler 内の startDocumentorg.xml.sax.helpers.DefaultHandler 内の startDocumentContentHandler.startDocument()
public void startElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
org.xml.sax.ContentHandler 内の startElementorg.xml.sax.helpers.DefaultHandler 内の startElementorg.xml.sax.SAXExceptionContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
org.xml.sax.ErrorHandler 内の warningorg.xml.sax.helpers.DefaultHandler 内の warningorg.xml.sax.SAXParseExceptionErrorHandler.warning(org.xml.sax.SAXParseException)
|
l10n converter | ||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||