- General Information
- Connecting Third-party Systems
- crossConnect for content systems
- crossConnect for External Editing
- Purpose and usage
- Requirements
- Implementation
- Across XLIFF format
- Across-specific Extensions
- <xliff> Element Attributes
- <file> Element Extensions
- <trans-unit> Element Extension
- Paragraph States
- Paragraph State Flags
- <source> and <target> Element Content
- <bpt> Element Attributes
- <ph> Element Attributes
- <x> Element Attributes
- Across-specific Properties
- Analysis Results
- Sample Files
- Across XLIFF - import, export and segmentation
- Context information
- Exporting best matches in Across XLIFF
- Hyperlinks to XLIFF
- Secure file handling with C#
- Secure file handling with JAVA
- Workflow and vendor configuration
- Sample code - Integrated solution
- Across XLIFF format
- Generic File Connector
- Display Texts
- APIs
- APIs - Technology
- crossTank API v1
- crossTank API v2
- crossTerm API v1
- crossTerm API v2
- crossAPI SI
- Requirements
- Function Return Types
- crossAPI SI and Java
- List of Objects in crossAPI SI
- Sample - transferring checkout files via FileManager
- Sample - VBS
- Text Preprocessing API
Secure file handling with C#
How to use the C# vendor assembly
For reading EWU (External Editing Work Unit) files and creating ERU (External Editing Response Unit) files there are the vendor-specific assemblies.
Each vendor gets his own assembly for his Trusted Across Integration Solution which contains the secret encryption keys for reading and writing the files.
IReader
/// <summary>/// The Reader interface./// </summary>publicinterface IReader {/// <summary>/// Opens a file to read an encrypted content from./// </summary>/// <param name="inputFile">/// The input file./// </param>/// <returns>/// The <see cref="Stream"/> stream to read a decrypted content from./// </returns> Stream OpenFile(string inputFile);}
IWriter
/// <summary>/// The Writer interface./// </summary> public interface IWriter{/// <summary>/// Creates a file to write an encrypted content to./// </summary>/// <param name="outputFile">/// The output file./// </param>/// <returns>/// The <see cref="Stream"/> stream to write a content to encrypt./// </returns> Stream CreateFile(string outputFile);}
Factory
To get an instance of an interface there is a factory class
/// <summary>///The factory./// </summary> public static class Factory{/// <summary>/// Creates the reader instance./// </summary>/// <returns>/// The <see cref="IReader"/> reader instance./// </returns>publicstatic IReader CreateReader();/// <summary>/// Creates the writer instance./// </summary>/// <returns>/// The <see cref="IReader"/> writer instance./// </returns>publicstatic IWriter CreateWriter();}