Documentation Index
Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
Use this file to discover all available pages before exploring further.
파일 쓰기 스트림을 위한 인터페이스입니다. 이 인터페이스와 모든 메서드는 클라이언트 측에서 구현됩니다.
| 이름 | 설명 |
|---|
| Close | 파일을 메모리에 쓰는 작업을 마칩니다. |
| Open | 지정한 파일을 메모리에 쓰기 시작합니다. |
| Write | 데이터의 일부를 파일 작성 스트림에 씁니다. |
FRDocument 객체의 ExportToMemory 메서드는 이 인터페이스에 대한 포인터를 입력 매개변수로 전달받습니다.
public class FileWriter : FREngine.IFileWriter
{
public FileWriter( string _resultsPath )
{
resultsPath = _resultsPath;
}
public void Open( string fileName, ref int bufferSize )
{
string resultsFilePath = resultsPath + fileName;
stream = new FileStream( resultsFilePath, FileMode.Create );
}
public void Write( byte[] data )
{
stream.Write( data, 0, data.Length);
}
public void Close()
{
stream.Close();
}
private string resultsPath;
private FileStream stream;
}
Linux에서는 엔진 객체가 별도 프로세스 서버로 로드된 경우 이 인터페이스가 작동하지 않습니다.
IReadStream