|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfile2xliff4j.Format
public class Format
Class to encapsulate the format file generated along with the XLIFF file that represents a document stored in LingoDoc. (The format file currently maps bx/ex/x tags back to their original HTML, ODF, etc. tags.)
Field Summary | |
---|---|
protected static int |
BLKSIZE
|
Constructor Summary | |
---|---|
Format(java.io.InputStream inStream)
Create a new instance of Format |
|
Format(java.lang.String fileName)
Create a new instance of Format, taking a file name as input |
Method Summary | |
---|---|
java.lang.String |
getReplacement(java.lang.String tagID)
Passed the identifier of a bx, ex (or perhaps some other tag), return the text that the tag identifier maps to in the format file. |
java.lang.String |
getReplacement(java.lang.String tagID,
boolean prependLT)
Passed the identifier of a bx, ex (or perhaps some other tag), return the text that the tag identifier maps to in the format file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int BLKSIZE
Constructor Detail |
---|
public Format(java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException
fileName
- Name of file that contains the format information
java.io.FileNotFoundException
java.io.IOException
public Format(java.io.InputStream inStream) throws java.io.IOException
inStream
- The input stream with the format information
java.io.IOException
Method Detail |
---|
public java.lang.String getReplacement(java.lang.String tagID, boolean prependLT)
tagID
- The identifier of the XLIFF tag who's substitution
value is being requestedprependLT
- true: prepend a '<' value before the value (if the
value's length is greater than 0; false: Return the actual
value from the format file with no modifications.
public java.lang.String getReplacement(java.lang.String tagID)
tagID
- The identifier of the XLIFF tag who's substitution
value is being requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |