|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SkeletonMerger
Interface for implementations that merge temporary skeleton files with original native files and create the final skeleton file. (Substitute stream for file in the above to describe the Java implementation.)
Method Summary | |
---|---|
void |
merge(java.io.InputStream tSkelInStream,
java.io.InputStream nativeInStream,
java.io.OutputStream skeletonOutStream,
java.nio.charset.Charset encoding)
Merge a temporary skeleton input stream with the original native input stream to yield the final skeleton that can be used to export XLIFF documents and yield a document in the original native format, but in a different language. |
void |
merge(java.io.InputStream tSkelInStream,
java.io.InputStream nativeInStream,
java.io.OutputStream skeletonOutStream,
java.nio.charset.Charset encoding,
int maxTuDepth)
Variant of the merge method above that adds an argument that receives the maximum TU depth. |
void |
setProperty(java.lang.String property,
java.lang.Object value)
Set a format-specific property that might affect the way that the merger process is conducted. |
Method Detail |
---|
void merge(java.io.InputStream tSkelInStream, java.io.InputStream nativeInStream, java.io.OutputStream skeletonOutStream, java.nio.charset.Charset encoding) throws java.lang.IllegalArgumentException, java.io.IOException
Note: Depending on the native format, the meaning of temporary skeleton (if one exists) may vary. In fact, it is possible that for some native formats, there is no temporary skeleton.
tSkelInStream
- The temporary or intermediate skeletonnativeInStream
- The original-format file's input stream (or a
substitute)skeletonOutStream
- Where the final skeleton is written toencoding
- The character encoding of the native input stream, if
applicable.
java.util.IllegalArgumentException
- if an argument is bogus or non-existent
java.io.IOException
- if an I/O error occurs.
java.lang.IllegalArgumentException
void merge(java.io.InputStream tSkelInStream, java.io.InputStream nativeInStream, java.io.OutputStream skeletonOutStream, java.nio.charset.Charset encoding, int maxTuDepth) throws java.lang.IllegalArgumentException, java.io.IOException
tSkelInStream
- The temporary or intermediate skeletonnativeInStream
- The original-format file's input stream (or a
substitute)skeletonOutStream
- Where the final skeleton is written toencoding
- The character encoding of the native input stream, if
applicable.maxTuDepth
- The maximum depth to which TUs are imbedded within
other TUs.
java.util.IllegalArgumentException
- if an argument is bogus or non-existent
java.io.IOException
- if an I/O error occurs.
java.lang.IllegalArgumentException
void setProperty(java.lang.String property, java.lang.Object value) throws ConversionException
property
- The name of the propertyvalue
- The value of the property
ConversionException
- If the property or value can't be recognized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |